Ensuring your AJAX control on the client-side loads after the DOM - Load functions

Most JavaScript frameworks include a means of ensuring that a developer's code is not loaded until after the HTML DOM has been fully loaded. It is actually quite a feat to achieve this in all of the major browsers (most difficult in IE...obviously...snicker). All of the JavaScript that drives the AJAX Control Framework is written not with any JavaScript framework, but with native JavaScript syntax. As such, I've implemented a means of ensuring that your custom control's JavaScript doesn't execute until after your control has been loaded into the DOM.

To do this I took a leaf out of the book of Matthias Miller, Dean Edwards, and John Resig. Major cudos to all 3 of them for their genius. Following their example, as outlined here http://blog.outofhanwell.com/2006/06/08/the-windowonload-problem-revisited/) the AJAX Control Framework ensures you that you won't have

Last edited May 2, 2010 at 1:25 PM by peanutbutterlou, version 2


No comments yet.