Launch javascript function when Ajax process returns data

Last post 08-28-2008 4:06 PM by phfle1. 2 replies.

Sort Posts:

  • Launch javascript function when Ajax process returns data

    10-23-2007, 4:11 PM
    • Member
      17 point Member
    • phfle1
    • Member since 09-28-2007, 1:06 PM
    • Posts 79

    Hi,

    I'm working with VS2005, vb.net, asp.net.

    I need to change the page cursor when some Ajax processing is complete. I tried page.clientScript.registerStartupScript but it seems to launch the function only on the load event.

    The cursor part is ok, but I can't get the event.
    Is there an event I can add my javascript to in ajax?

    Thanks

  • Re: Launch javascript function when Ajax process returns data

    10-23-2007, 8:04 PM
    Answer
    • Star
      13,605 point Star
    • gt1329a
    • Member since 06-24-2002, 12:53 AM
    • Atlanta
    • Posts 2,248
    • ASPInsiders
      TrustedFriends-MVPs
    You can handle EndRequest to do that.  I have an example on my blog that includes handling EndRequest to change the mouse cursor.
    Encosia - ASP.NET, jQuery, AJAX, and more.

    Latest article: Emulate ASP.NET validation groups with jQuery validation
  • Re: Launch javascript function when Ajax process returns data

    08-28-2008, 4:06 PM
    • Member
      17 point Member
    • phfle1
    • Member since 09-28-2007, 1:06 PM
    • Posts 79

     THanks by the way

Page 1 of 1 (3 items)