Hi Guys,
Here is my problem: when user clicks on a menu item, the content of a <div> is redirected to another html page which also runs some JQuery functions.
but the strange thing is that when the menu item is clicked for the first time, only parts of the JQueries run and the page is not fully functional. When user clicks on the same menu item immediately for the second time the html page comes up with more functions running but again it's not complete. Only when user clicks on the menu item for the third time, the page is fully functional.
I use the following to load the html page:
$("#PicturesGallery").click(function () {
$("#PicsDIV").load('../index.html');
});
I'd appreciate it if you could give me some help...thanks
it has already been wraped inside a $(document).ready() function
Here is my problem: when user clicks on a menu item, the content of a <div> is redirected to another html page which also runs some JQuery functions.
but the strange thing is that when the menu item is clicked for the first time, only parts of the JQueries run and the page is not fully functional. When user clicks on the same menu item immediately for the second time the html page comes up with more functions running but again it's not complete. Only when user clicks on the menu item for the third time, the page is fully functional.
I use the following to load the html page:
$("#PicturesGallery").click(function () {
$("#PicsDIV").load('../index.html');
});
I'd appreciate it if you could give me some help...thanks
it has already been wraped inside a $(document).ready() function