473,508 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
Apr 2 '08 #1
1 1406
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" <da*****************@revilloc.REMOVETHIS.comwrot e in message
news:uf*************@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
Apr 2 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1392
by: Stephanie | last post by:
I'm a newby and I have a quick question. I have set up this procedure to run as a job. I can create a block and have it populate the table, but I need to be alerted via email when the table is...
2
1847
by: Alex | last post by:
Example uploaded to: http://www.clickatus.com/ajax/ BTW - This is for FIREFOX, won't work in IE. I don't know why but when it is executed the browser still in loading state... Even though...
5
3824
by: noddy | last post by:
The full code relating to this question can be found at http://marc.info/?l=php-general&m=112198633625636&w=2 It describes a bare bones way of making an AJAX request. It works fine for me except...
7
2041
by: newlearner | last post by:
hi, On a test page i try to insert some values thru post method but the values which i send is not replaced in the url which i specify. I get the code found in the page and not the updated one. ...
7
1382
by: tader | last post by:
so i got this kind of ajax script function browserio_tipas() { var tipas; if (window.ActiveXObject) { tipas = new ActiveXObject("Microsoft.XMLHTTP"); } else if...
1
2172
by: nekha | last post by:
how to send alert message to another member now iam in online using scripts
5
2258
by: MC | last post by:
Hi, I am googling for a script and can't seem to find code to do this. I can probably write code to save but reloading is an issue. I want to, using ajax, send all form data back to a server...
10
2291
dmjpro
by: dmjpro | last post by:
function synchronous_ajax(){ var ajax = null; if(typeof ActiveXObject!='undefined') ajax = new ActiveXObject("Microsoft.XMLHTTP"); else if(typeof XMLHttpRequest!='undefined') ajax = new...
3
1800
by: Alexander111 | last post by:
I set Tomcat to be run on 80 port and have an jsp that returns html. Why doesn't it work? It doesn't even turn on alert 2. What's matter. Please, tell me. <html> <head> <script...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7324
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7382
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7042
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7495
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.