...

View Full Version : Popups =/



JoWiGo
03-18-2005, 05:07 PM
Hey, I know I'm new to the site and everything, but I hope that wont interfere with the quality of responce I get here...

Anyways, here goes.

I have a website, and want to make a popup on exit, but not a normal popup. I know how to use the onUnload command, but I don't know how to get this type of popup.

Think of an alert box, the standard message box. I want to have that, but with two fields in it; e-mail and name. I have seen it done and know that it is possible, but I don't know HOW it was done. Any hints or suggestions? Thanks in advance...

-Josh

JoWiGo
03-19-2005, 05:26 AM
Really? No one can help me here? Can anyone point me somewhere that can?
-Josh

Philip M
03-19-2005, 08:44 AM
You cannot expect a response after only 19 minutes. People are not queuing up to attend to your needs.

<script>
a="email";
b="name";
c=a + " " +b;
alert (c);
</script>

Is that what you require?

JoWiGo
03-19-2005, 04:00 PM
I had only mentioned that as my post had slipped into somewhere in the second page, and usually on most boards when it gets there it get's lost somewhere. If it is not the same on this board, my full apologies.

No, that is not what I need. I need an alert box, whitch has fields in it where you can enter information. I am not trying to display the e-mail and name, I am trying to make a place where they enter this information into the alert box.

I just need a way to place a text input in an alert box. I have seen it done before, but never since that original page. If anyone has any knowledge on this, please let me know.

Then again, if I'm just speaking crazy, let me know too :p.

Philip M
03-19-2005, 05:24 PM
An alert box means what it says - it opens up a dialogue box containing a read-only message. The only response is OK.
A prompt box requests information to be entered by the user, but only one variable at a time. Responses are OK and Cancel.
Are you in fact seeking to make some sort of pop-up window which has a form with HTML textbox(es) in? If so there are many examples in this forum - try search. But why only when the page is closed?

JoWiGo
03-20-2005, 05:09 PM
Ignore the on close part, let's get this part sorted out first.

I was saying it looked like an alert box, i don't know what it was called. But I want to be able to put a form (2 text inputs) into a prompt box, alert box, whatever it looks like.

I have come across another example. As I logged onto my computer this morning my MSN messenger logged in and a popup came up asking me to upgrade to the newest version. It had 2 radio buttons (yes and no) and a check box (don't remind me for a week) on it, with 2 different confirmation buttons (submit, tell me more).

Picture something like this if you will:



|---------------------------------------------|
| (Java-script application) X|
|---------------------------------------------|
| My text here |
| |
| Name: [INPUT BOX=================] |
| |
| Email: [INPUT BOX=================] |
| |
| [submit] [no thanks] |
|---------------------------------------------|


Something like that above. NOT a pop-up with another webpage inside of it, but a gray background, blue title bared, (javascript application) titled alert box, prompt-box, message box, whatever.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum