Welcome to MSDN Blogs Sign in | Join | Help

Syndication

News

AJAX Client Side "OnLoad" event

One of the neat things I came across while working on my current project is an ajax shortcut for hooking in to the Sys.Application.load event on the client. As it turns out you can declare simply declare a pageLoad function which AJAX will automatically call. Further details can be found here in the AJAX documentation.

function pageLoad(sender, args)
{
     //called on Sys.Application.load
}
 
function pageUnload(sender, args)
{
     //called on Sys.Application.unload
}
Note: You can also do the same for the Sys.Application.unload event.

Published Tuesday, February 12, 2008 7:17 PM by RobJ

Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# BioSensorAB » AJAX Client Side “OnLoad” event @ Tuesday, February 12, 2008 2:51 PM

PingBack from http://www.biosensorab.org/2008/02/12/ajax-client-side-onload-event/

BioSensorAB » AJAX Client Side “OnLoad” event

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement  
Page view tracker