If you only want something to load once, you can use the "pageinit" event.
Here's an example of some code with "pageinit":
$(document).delegate("#yourPage", "pageinit", function(event) { alert( "ALERT!"); });
The code above would not run if you visited the page again.
No comments:
Post a Comment