Does anyone know if there’s an equivalent to window.onload that I can run in an AJAX call. I’ve got a script where I need to measure the width of the content to create a controller - unfortunately if the images haven’t loaded the width is totally wrong.
Any ideas?
Cheers,
Jon
Try
$(window).load(function(){
// Ajax Code Here
});
That doesn’t seem to work. When I added that it didn’t execute the functions that it was supposed to.
The code i posted is the exact same thing as writing
window.onload = function(){
// Code Here
}
Try
$(document).ready(function(){
// Ajax Code Here
});