By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,822 Members | 975 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,822 IT Pros & Developers. It's quick & easy.

IE Prompt

P: n/a
General Problem:
Since IE7 decided to mess with the prompt function we've had an
interesting problem to solve. We just want to ask the user for a name
but we would like it to have a modal implementation (not let the user
go anywhere until they click ok or cancel).

A script that I found (IEPrompt):
I found a script that basically does what we want. It grays out the
whole screen, places a div in the middle of the screen and waits for
user input. It is IEPrompt. You can see this script here:
http://www.hunlock.com/blogs/Working...ug,_er_feature.

Problem with the IEPrompt script:
The problem with this script is that it doesn't work correctly in IE6
mostly. We want the prompt to display in the middle of the screen no
matter how much of the screen they've scrolled down or whatever. In
IE6, the prompt only displays in what would be the middle of the
screen if you were scrolled to the top of the page and it doesn't gray
out any more than what would be a whole page if you were scrolled to
the top.

Main question:
Anyways, I've tried tweaking it a little bit and I can't get anything
to work. We need it to work in Firefox, IE6, and IE7. I don't care
if I fix this script or not, I just want something to work nicely.
Does anyone know of anything that we could use to solve this problem?

Thanks for your help.

Feb 22 '07 #1
Share this Question
Share on Google+
1 Reply

P: n/a
<ro***************@gmail.comwrote in message
news:11**********************@t69g2000cwt.googlegr oups.com...
General Problem:
Since IE7 decided to mess with the prompt function we've had an
interesting problem to solve. We just want to ask the user for a name
but we would like it to have a modal implementation (not let the user
go anywhere until they click ok or cancel).

A script that I found (IEPrompt):
I found a script that basically does what we want. It grays out the
whole screen, places a div in the middle of the screen and waits for
user input. It is IEPrompt. You can see this script here:
http://www.hunlock.com/blogs/Working...ug,_er_feature.

Problem with the IEPrompt script:
The problem with this script is that it doesn't work correctly in IE6
mostly. We want the prompt to display in the middle of the screen no
matter how much of the screen they've scrolled down or whatever. In
IE6, the prompt only displays in what would be the middle of the
screen if you were scrolled to the top of the page and it doesn't gray
out any more than what would be a whole page if you were scrolled to
the top.
The modified version works just fine in Internet Explorer 6 and "pops" up in the middle of
the current viewport.
Main question:
Anyways, I've tried tweaking it a little bit and I can't get anything
to work. We need it to work in Firefox, IE6, and IE7. I don't care
if I fix this script or not, I just want something to work nicely.
Does anyone know of anything that we could use to solve this problem?
Try asking the author. He is very helpful and knowledgeable - especially about his own
creations.

-Lost
Feb 22 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.