AJAX send a JS Alert

AJAX send a JS Alert

am 02.04.2008 12:39:06 von david

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

Re: AJAX send a JS Alert

am 02.04.2008 21:12:28 von Steve

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:ufsZf3KlIHA.980@TK2MSFTNGP06.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.AshfieldFOCUS.com
> ~~
> http://www.FOCUSPortals.com - Local franchises available
>