AJAX send a JS Alert

Discussion in 'ASP .Net' started by David, Apr 2, 2008.

  1. David

    David Guest

    Hi all,

    I am using AJAX in my app.

    I have a button that is updating the database, but when I click the button,
    I am not getting any feedback (normal (no ajax) would post back the page,
    which is a sort of feedback). What I would like to do is to pop-up a
    javascript alert to the client when the AJAX responds, but I cannot see how
    to do that.

    Any ideas would be appreciated.

    --
    Best regards,
    Dave Colliver.
    http://www.AshfieldFOCUS.com
    ~~
    http://www.FOCUSPortals.com - Local franchises available
     
    David, Apr 2, 2008
    #1
    1. Advertising

  2. You could display such a message with a JavaScript alert upon the AJAX
    EndRequest method.

    see PageRequestManager methods:

    add_beginRequest(BeginRequestHandler);
    add_endRequest(EndRequestHandler);

    --
    I hope this helps,
    Steve C. Orr,
    MCSD, MVP, CSM, ASPInsider
    http://SteveOrr.net
    http://iPhonePlaza.net



    "David" <> wrote in message
    news:...
    > Hi all,
    >
    > I am using AJAX in my app.
    >
    > I have a button that is updating the database, but when I click the
    > button, I am not getting any feedback (normal (no ajax) would post back
    > the page, which is a sort of feedback). What I would like to do is to
    > pop-up a javascript alert to the client when the AJAX responds, but I
    > cannot see how to do that.
    >
    > Any ideas would be appreciated.
    >
    > --
    > Best regards,
    > Dave Colliver.
    > http://www.AshfieldFOCUS.com
    > ~~
    > http://www.FOCUSPortals.com - Local franchises available
    >
     
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider], Apr 2, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kenneth Keeley

    Send A System Alert to a User

    Kenneth Keeley, Sep 29, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    431
    Matt J
    Sep 29, 2005
  2. minnie
    Replies:
    1
    Views:
    726
    Andrew Thompson
    Dec 13, 2006
  3. Mersh
    Replies:
    0
    Views:
    507
    Mersh
    Mar 13, 2007
  4. Ganesh
    Replies:
    0
    Views:
    565
    Ganesh
    Jun 29, 2007
  5. Jeremy
    Replies:
    3
    Views:
    545
    Jeremy
    Sep 18, 2007
Loading...

Share This Page