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-comment-%27alert%27-out%21-tp21715465s27240p21715465.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to