CHUVASH.eu

CHunky Universe of Vigouros Astonishing SHarepoint :)

javascript load callback for UpdatePanel

Using asp:UpdatePanel isn’t so easy with jQuery(document).ready() or jQuery(window).load(). The jQuery selectors can’t find elements which are not shown in the beginning. All other elements which are loaded dynamically are difficult to catch. I found a solution in forums.asp.net. A user called germanz creates an jQuery event listener AjaxReady, he uses the ASP.NET built-in PageRequestManager. If there only few usages of it it can be invoked directly from a PageRequestManager instance:

$(document).ready(function () {
	var prm = Sys.WebForms.PageRequestManager.getInstance();
	prm.add_endRequest(initTxtNextContact);
});
About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

SharePoint Dragons

Nikander & Margriet on SharePoint

The Zuul Cat Idea Brewery

Where ideas on software development and entrepreneurship brew.

Paul J. Swider

Smooth Sailing with SharePoint

Mai Omar Desouki - Avid SharePointer

Infusionite Software Consultant

Alexander Ahrens

MCPD | SharePoint | Web Development | JavaScript | .NET

Cameron Dwyer | SharePoint, Outlook, OnePlaceMail

OnePlaceMail, SharePoint, Outlook & Life's Other Little Wonders

.:paul.tavares:.

Me and My doings!

Share SharePoint Points

By Mohit Vashishtha

Jimmy Janlén "Den Scrummande Konsulten"

Erfarenheter, synpunkter och raljerande om Scrum från Jimmy Janlén

Virtualize SharePoint and SharePoint Virtualization

SharePoint 2010, Design, Customization and Configuration

SPJoel

SharePoint for everyone

SharePointRyan.com

Ryan Dennis (MCTS, MCPD, MCITP) is a SharePoint Solutions Architect focusing on SharePoint Architecture, PowerShell Automation and General Enhancements

SharePoint 2020

The Vision for a Future of Clarity

Aharoni in Unicode, ya mama

Treacle tarts for great justice

... And All That JS

JavaScript, Web Apps and SharePoint

blksthl

Mostly what I know about SharePoint - CommunicoCuspis

SharePointDiver

SharePoint på ren svenska

Me & My SharePoint Design

© Christian Stahl - All about SharePoint branding & customizations

SC Vinod's Blog

Just another WordPress.com weblog

Follow

Get every new post delivered to your Inbox.

Join 80 other followers

%d bloggers like this: