Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequestHandler);
- function endRequestHandler(sender, args) {
- //--check to see if the sender should cause the "Saved" message to display
- //--use JQuery Fadeout effect to make the "Saved Message" display on the screen
- // temporarily
- }
- //--Get an instance of the PageRequestManager so we can
- // designate an end-request handler
- var prm = Sys.WebForms.PageRequestManager.getInstance();
- //--designed the displayFadeoutMessage as the end request handler
- prm.add_endRequest(displayFadeoutMessage);
- function displayFadeoutMessage() {
- //--if there is a message to display then show it
- if ($("#ctl00_hfSaveMessageText").attr("value") != "") {
- //--add a span to the placeholder span and then fade it out
- // over 4.5 seconds
- $("#mpSaveSpot").append("<span id='spanFadeoutMessage' style='background-color:#ddd;'>" + $("#ctl00_hfSaveMessageText").attr("value") + "</span>").fadeOut(4500, function() {
- //--once the message is faded out then clear the message hidden
- // field and clear out the message span
- $("#ctl00_hfSaveMessageText").attr("value", "");
- $("#mpSaveSpot").empty();
- });
- }
- }
Add Comment
Please, Sign In to add comment