loading content before displaying
Hi
I'm fairly new to JQuery and am trying to get my menus to load all the images before it tries to fade in.
I am passing categoryid to an external php page which gets the relevant data from the database, and then displays it in the right div element.
My Code so far:
<script>
function loadContent(id) {
$("#leftmenu").load("query_left.php?category="+id+"").fadeIn("slow");
$("#rightmenu").load("query_right.php?category="+id+"").fadeIn("slow");
}
</script>
At the moment, this code seems to load the content fine, but when it starts to fade you can still see some of the buttons trying to load.
My question is? Is there an easy way to do this?
Thanks for any help?