Try using: $(document).ready(function() { document.getElementById('ip_details_graph').setParam ('values.value.max', '100'); });
On Jan 28, 1:28 pm, RR_QQ <rquiu...@leasethis.com> wrote: > Ok so I am using amcharts and I am trying to change a setting dynamically. > The following codes (when placed at the top of the document) works > PERFECTLY: > > $(window).load(function() { > alert('TEST'); > > document.getElementById('ip_details_graph').setParam('values.value.max', > '100'); > > }); > > HOWEVER when I comment out the 'alert': > > $(window).load(function() { > //alert('TEST'); > > document.getElementById('ip_details_graph').setParam('values.value.max', > '100'); > > }); > > Not only does the setting change NOT take place I also get this: > > document.getElementById('ip_details_graph').setParam is not a function > > WHAT GIVES!? I need to run that code after the amchart has finished loading > but I just not sure how to do that! Maybe thats what the problem is. The ID > of the SWF object is 'ip_details_graph' > > THANKS!! > -- > View this message in > context:http://www.nabble.com/Jquery-call-works-with-%27alert%27-but-no-if-i-... > Sent from the jQuery General Discussion mailing list archive at Nabble.com.