AJAX send a JS Alert

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David

    AJAX send a JS Alert

    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.FOCUSPortals.com - Local franchises available


  • Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

    #2
    Re: AJAX send a JS Alert

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

    see PageRequestMana ger methods:

    add_beginReques t(BeginRequestH andler);
    add_endRequest( EndRequestHandl er);

    --
    I hope this helps,
    Steve C. Orr,
    MCSD, MVP, CSM, ASPInsider
    HALOJP menyediakan link slot gacor terbaru yang gampang JP dengan scatter deras, RTP tinggi, pola maxwin akurat, dan peluang menang besar setiap hari.





    "David" <david.colliver .NEWS@revilloc. REMOVETHIS.comw rote in message
    news:ufsZf3KlIH A.980@TK2MSFTNG P06.phx.gbl...
    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.FOCUSPortals.com - Local franchises available
    >

    Comment

    Working...