Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1100
Javascript error for each WebGauge on page -
posted

I'm building a status panel user control that has (among other things) 5 WebGauge controls on it.

When I display 1 of my status panels, I get 5 Errors in Javascript, when I display 2 panels- 10 errors.

 

here's what Firebug complains about:

missing ; before statement
try{ var octl00_ContentPlaceHolder1_Pre...pRate", ],[],[],[]]);}catch(e){window.st ...
Here is the javascript (entire line) in question...
<script type='text/javascript'>
//<![CDATA[

 try{ var octl00_ContentPlaceHolder1_PressPanel:1004449700_ugImpRate = ig_CreateWebGauge([["ctl00%24ContentPlaceHolder1%24PressPanel%3a1004449700%24ugImpRate", "ctl00_ContentPlaceHolder1_PressPanel%3a1004449700_ugImpRate", ],[],[],[]]);}catch(e){window.status="Can't init script for WebGauge";}

//]]>
</script>
This is javascript that IG is creating for me :) - Does it indicate anything obvious that I might be doing wrong?

Parents
No Data
Reply
  • 28496
    Offline posted

    i think it is breaking because of the variable assignment to octl00_ContentPlaceHolder1_PressPanel:1004449700_ugImpRate. the colon in that variable name could be a problem. do you know how the colon gets in there? could it be this status panel of yours?

Children
No Data