Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-20-2002, 03:49 PM   PM User | #1
angel2be
New to the CF scene

 
Join Date: Jun 2002
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
angel2be is an unknown quantity at this point
Question window.prompt

I have a piece of code that checks a form and has a prompt that passes back information if submitted to continue in the process. The problem is that the prompt box flashes and then disappears and I can't access it. It is as if the cancel button is being it. Any ideas?

TIA

if (theForm.asset_status_cd.options[theForm.asset_status_cd.selectedIndex].value=="WFD")
{
var theResponse = window.prompt("Choosing this status code will close all requests, are you sure you want to do this? Input space provided for reason of withdraw.","");

if ((theResponse != "") && (theResponse != null))
{
theForm.myreason.value = theResponse;
return(true);
}
}
angel2be is offline   Reply With Quote
Old 06-20-2002, 04:42 PM   PM User | #2
angel2be
New to the CF scene

 
Join Date: Jun 2002
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
angel2be is an unknown quantity at this point
it works on the actual site on three other machines here, but one is IE 6 and one is IE 5.0 and one is Netscape 6.2; my machine is IE 5.5, maybe a browser issue?
angel2be is offline   Reply With Quote
Old 06-21-2002, 12:10 AM   PM User | #3
whammy
Senior Coder

 
Join Date: Jun 2002
Location: 41° 8' 52" N -95° 53' 31" W
Posts: 3,660
Thanks: 0
Thanked 0 Times in 0 Posts
whammy is an unknown quantity at this point
Do you really need a "reason for withdraw"? If not I'd just use Confirm() instead of Prompt().

__________________
Former ASP Forum Moderator - I'm back!

If you can teach yourself how to learn, you can learn anything. ;)
whammy is offline   Reply With Quote
Old 06-21-2002, 01:57 PM   PM User | #4
angel2be
New to the CF scene

 
Join Date: Jun 2002
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
angel2be is an unknown quantity at this point
I don't need the reason, upper management thinks they do. I found that the problem was a popup killer I was running on my machine. Somehow that popup window was in my blacklist and everytime it came up the killer would close it. When I disable the killer it works like a champ.

Thanks
angel2be is offline   Reply With Quote
Old 06-22-2002, 01:13 AM   PM User | #5
whammy
Senior Coder

 
Join Date: Jun 2002
Location: 41° 8' 52" N -95° 53' 31" W
Posts: 3,660
Thanks: 0
Thanked 0 Times in 0 Posts
whammy is an unknown quantity at this point
Heheh... I like your response "Upper management thinks they do".

(italics added by me).

__________________
Former ASP Forum Moderator - I'm back!

If you can teach yourself how to learn, you can learn anything. ;)
whammy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:02 PM.


Advertisement
Log in to turn off these ads.