i use gpgraph library for charts drawing. i need to dinamicaly create graphs, so i use jquery for it.
Look at this script please
$("#graph").click(function(u)
{
var f = 502; //just for example
$("#graph_content").html('<img src="mygraph.php?value1='+f+'" />');
$("#graph_content").slideDown(600);
u.stopPropagation();
});
in mygraph.php i generate the image of graphic, depend on value1.
but i need to slideDown() the div with image after it loads. in my case while it loads an image, it allready slides down a div, so i lose effect i wanted.
i can’t imagine how can i use load method here?
maybe you will help me:)
Thanks
or this should also work:
If the #graph_content element is empty.