c# - Javascript event like window.onload for subsequent loads -
we have function changes iframe height @ window.onload event can adjust page contents. problem after clicking in asp:menu height restored default , window.onload event doesnt fire...so need event fire in subsequent loads (tried window.unload didnt trigger)
the resize function cant called on asp:menu click because window wouldnt have finished loading height calculation fail...
any ideas??
asp.net ajax exposes client event model. execute code after content refreshed, use bind pageloaded
event:
sys.webforms.pagerequestmanager.getinstance().add_pageloaded(pageloadedfunction);
learn more of asp.net ajax javascript events here: http://msdn.microsoft.com/en-us/library/bb386417.aspx
Comments
Post a Comment