[jQuery] Re: Document ready function and the browser forward/back button

2009-05-07 Thread Jordon Bedwell
Are you using window.onLoad or DOMContentLoaded. If you are worried about them pressing the back button then use window.onLoad because it waits till everything is done loading, not till the DOM content is ready to be manipulated. It shouldn't hurt anything if they press the back button, unless

[jQuery] Re: Document ready function and the browser forward/back button

2009-05-07 Thread Dragon-Fly999
I'm using the JQuery document ready function. I have something like the following on the top of my page. script type=text/javascript $(function() { $('#type').attr('disabled', true); }); /script I only want the function to get executed when the page is loaded from the web server (but