[jQuery] Jquery Ajax load function
Hi all
I want to load some url without refreshing the page in my project.
I am using jquery for it. It is working but just once.
When I cliked it twice its not working.
code is like that
<script>
function test(){
$("#main").load("compare.do");
}
</script>
<div id="main">
Test
</div>
in jquery ajax example http://docs.jquery.com/Ajax/load#urldatacallback
there is some note;
Note: Keep in mind that Internet Explorer caches the loaded file, so
you should pass some extra random GET parameter to prevent caching if
you plan to call this function more than once
how can I prevent caching? mabe it solves my problem..
Thanks