Regarding the issue of form tag
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Regarding the issue of form tag Expand / Collapse
Author
Message
Posted 9/27/2007 6:44:45 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/29/2007 5:02:14 AM
Posts: 5, Visits: 10
Hi,

  I am having the fallowing requeirement :

             <form runat="server>

                <form></form>

                  <%=GetChartsData()%>                 

            <asp:Button id="btn" runat="server" onclick="btn_Click" />

             </form>

      But when i am clicking the button it is not calling the btn_Click event.

Please could you tell me what may be the issue.

Post #2523
Posted 9/30/2007 2:34:24 PM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: Today @ 5:03:15 AM
Posts: 2,183, Visits: 514
What does GetChartsData return?

Thanks,
Pallav Nadhani
FusionCharts Team
Post #2548
Posted 10/14/2007 3:55:14 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Today @ 5:05:35 AM
Posts: 870, Visits: 1,383
Hi,

try removing the nested <form></form> once..and you will see that the button is working....
I fgure out that you might be using this as suggested by Adobe's http://www.adobe.com/go/kb400730, but trust me you can use the other way around... registering  after the chart is rendered:

<script language="java script">
if(!document.embeds[chartId])
      window[chartId]=document.getElementById(chartId); //or else document.forms[formName/formIndex][chartId]
</script>

You may need to modify the FusionCharts.js 's a code part :

infosoftglobal.FusionChartsUtil.getChartObject = function(id)
{
//  if (window.document[id]) {
//     return window.document[id];
//  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1) {
    if (document.embeds && document.embeds[id])
      return document.embeds[id];
  } else {
    return document.getElementById(id);
  }
}

This works...

Regards,

Sudipto Choudhury
FusionCharts Team

Post #2709
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 5:49am


Execution: 0.141.