473,379 Members | 1,367 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

IE Prompt

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
1 3914
<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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Hank | last post by:
Hi, does anyone know how to change the foreground color of the command prompt through python? For example if i was printing out an error message, I would like it to be red where the normal...
12
by: zhi | last post by:
Really confused, when I use keyword style argument as following: >>> input(prompt="hello") Traceback (most recent call last): File "<pyshell#52>", line 1, in -toplevel- input(prompt="hello")...
13
by: JSE | last post by:
Hello everyone. here's what we have in an html file. <form ..... <input type=button name="comment" onclick=" prompt('enter comment',' ' )" > Is there anyway to get the value...
2
by: WStoreyII | last post by:
how do i change the default directory and prompt fo the the .net command prompt for example when i load it i wish the directory to already be desktop and the prompt to be Cmd: thanks ...
7
by: Petesman | last post by:
I am trying to make a prompt that will ask the user for some input... If I just use var input = prompt("dafa") everything works fine but the box is put in the top left corner of the window. I need...
4
by: glenn | last post by:
I keep reading all sorts of books on VS that keep telling me to click on Tools/Visual Studio Command prompt to run this program or that program. However, I do not have such a menu choice. Where is...
3
by: J.P. Cummins | last post by:
In my ASP.NET application, I wish to have a page for administrators to edit items in a list. Preferably, I would like to use the javascript prompt for the 'rename' function, and a javascript alert...
5
by: hcross | last post by:
This project is a web based html and Javascript site. I am working on mac at the moment. This script works except for attempting to open new window once complete. As you can see, i am new to...
4
by: Peter Nimmo | last post by:
Hi, I am writting a windows application that I want to be able to act as if it where a Console application in certain circumstances, such as error logging. Whilst I have nearly got it, it...
4
by: ARC | last post by:
Hello all, I didn't use to have this problem in Access 97, but in 2007 (and maybe other versions of access after 97), if you have a form that has a subform, and you click the close button, you...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

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.