473,569 Members | 2,799 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Alert box doesn't wait

I've got some code then I call an alert and then some more code. On IE
the second lot of code doesn't execute until the I click "ok" on the
alert (which is what I want) but in MZ and FF the second lot of code
executes even though the alert has not yet been dismissed.

Is there a way to get MZ and FF to wait?
Andrew Poulos
Jul 23 '05 #1
1 2000
Andrew Poulos wrote:
I've got some code then I call an alert and then some more code. On IE
the second lot of code doesn't execute until the I click "ok" on the
alert (which is what I want) but in MZ and FF the second lot of code
executes even though the alert has not yet been dismissed.

Is there a way to get MZ and FF to wait?


Found the problem: the alert call was inside a setTimeout call.

Andrew Poulos
Jul 23 '05 #2

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

Similar topics

1
1850
by: Bouke Woudstra | last post by:
Hi, I'm a bit stuck with this python script. It's aim is to encode all flac files to wav and then to mp3. The only problem I have is to preserve the tags. The code works when there's just one flac file in a directory but fails for more. I can't see why the for loop fails here (flactags). The error thrown is: UnboundLocalError: local...
8
1793
by: Dan Williams | last post by:
We have an employee table that contains bank details and are experiencing problems with account numbers being erased and lost. In order to track down why this is happening (either due to our application code or SQL replication) we'd like to be able to prevent certain columns from being deleted if they already contain some data. Is it...
11
4568
by: Alistair Saldanha | last post by:
I'm looking for the event that is fired by Internet Explorer to an "alert": <SCRIPT> Alert("You already have a session open") </SCRIPT> The event would be webBrowser.Document.???? Much appreciate any help you can give me. Thanks,
2
1832
by: Captain Dondo | last post by:
There's javascript alert, and confirm... I'm looking for something like a 'message', just a window that pops up and goes away after a bit. I've got a slow machine (an embedded PC) that generates flash movies. It takes about 30 seconds to make one of these movies. Plus it takes the browser about 15 seconds to get the new page. So I'd...
3
1667
by: sarah.ali1 | last post by:
I had an alert statement in my code for debugging purposes. However if I try to remove the line of code with the alert statement in it ( alert('message') ), I get an error in my code! Any ideas?
1
5895
by: gabrielk43 | last post by:
My question is this: I use Flex Builder 2 and actionscript 2. Suppose that I have created a simple alert window like that: var alertWindow:Alert = Alert.Show(message);. What if I want to close it before user gives an input, let's say 2 seconds after I have opened it? Is there a way to send to this window a CloseEvent? Or do I have to wait ...
1
1695
by: kaj28121980 | last post by:
I have a typical senario. My Web component provides action for database backup and restore. while user wants to backup or restore database the user is logged out and redirected to the login page and the webserver (basically an application server JBoss) shuts down. In the login page there is an ajax call which checks when the server is again fully...
24
8196
by: Jeremy J Starcher | last post by:
While reading c.l.j, I've noticed that some people prefer and indeed even recommend the use of "window.alert()" over "alert()". I can't find any technical reason to make this distinction, and seems to have a (tiny) amount overhead since window itself points to the global object, hence, a circular reference. (From everything I am reading,...
8
2498
by: knkk | last post by:
Instead of an id getting its innerHTML changed, the entire page is getting refreshed with this function of mine (you may want to look just at the end of the function where there's an alert): function morerating(ratingform, checkflag, loc) { var f = document.forms; var rating_done_flag = 0; var params = ""; if (checkflag == true)...
0
7697
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8120
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7672
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.