Hi,
I have an asp placeholder in a page and another UserControl containing UltraChart. Next I call Server.Execute to get the chart's html which I set to my placeholder's innerHTML. While setting the innerHTML, I am getting javascript error. The javascript error is "Expected ')'". This error is repeated for each onmouseXXX code that is generated by the chart. One such line is:
<area onmouseout="if(typeof(fdf6ec3a-d4cb-429c-a7d5-702ea3cce4e4_Chart1_pRcEv)!='undefined')fdf6ec3a-d4cb-429c-a7d5-702ea3cce4e4_Chart1_pRcEv(event, this,1,3,'MOUSE_OUT','17');" onclick="if(typeof(fdf6ec3a-d4cb-429c-a7d5-702ea3cce4e4_Chart1_pRcEv)!='undefined')fdf6ec3a-d4cb-429c-a7d5-702ea3cce4e4_Chart1_pRcEv(event, this,1,3,'MOUSE_CLICKED','17');" onmouseover="if(typeof(fdf6ec3a-d4cb-429c-a7d5-702ea3cce4e4_Chart1_pRcEv)!='undefined')fdf6ec3a-d4cb-429c-a7d5-702ea3cce4e4_Chart1_pRcEv(event, this,1,3,'MOUSE_OVER','17');" coords="241,81,371,92,372,93,240,82" shape="poly" />
When I remove these lines and then set the remaining innerHTML, there is no javascript error then.
This problem only occurs when I am setting chart's innerHTML. On another separate page where I have only one chart, there are no issues. Also in this case, ChartDataClicked event is not getting fired and no tooltips are shown.
Please let me know what I am missing. If you want, I will try to create a sample project for this.
Thanks.
Hello Sandeep,
Thanks for the update. I am following up to see if you need any further help with this matter. If the issue is still present let me know about the functionality you described in details and how it is implemented.
Hope this helps.
Thanks,
Bhadresh
Hi Bhadresh,
Thanks for the help. I figured out the problem - I had to replace all the onmousexxx calls in javascript by "BLOCKED SCRIPTonmouse". After this chage, the error went.
But now we are looking at other related issue - the HTML received by call to Server.Execute returns only HTML but not the javascript functions emitted by Infragistics chart. I believe these include setting tooltip behavior. So we may have to find some alternative here.
Thanks a lot.
Thanks for details provided. I am not certain whether the error you described is off the asp placeholder or chart. In order to look in to this let me know about the functionality you described in details and how it is implemented. Here is a link from our website that will give you more details on WebChart client side events:
<http://help.infragistics.com/NetAdvantage/ASPNET/2010.3/CLR4.0/?page=WebChart_Client_Side_Events_CSOM.html>