This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > April 2004 > form confirmation window in a pop up
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
form confirmation window in a pop up
|
|
|
| I'm trying to open the confirmation page of a submit form in a pop up
window.
Unsuccessfully...
Any behavior, extension, code, tip?
| |
|
|
|
| I don't understand that quesion...
it's an html page with the form, and a PHP document with the confirmation
page telling "ok" all uploaded in a linux hosting (apache).
it is working badly but working at http://www.killersites.com.ar now.
If you take a look at the smal email field at bottom of page when you press
"ok" button
it opens a new window saying "form sent ok" (or something), but I want that
window 400 x 140 px and no bars...
when I used the open window behaviour a error apeared...
Where should I specify that or how to make the confirmation window to appear
in a pop up?
"Murray *TMM*" <forums@HAHAgreat-web-sights.com> escribió en el mensaje
news:c6brfr$fb3$1@forums.macromedia.com...
> What server scripting are you using?
>
> --
> Murray --- ICQ 71997575
> Team Macromedia Volunteer for Dreamweaver MX
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
> news://forums.macromedia.com/macromedia.dreamweaver - THE BEST WAY TO GET
> ANSWERS
> ==================
> http://www.dreamweavermx-templates.com - Template Triage!
> http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
> http://www.dwfaq.com - DW FAQs, Tutorials & Resources
> http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
> ==================
>
> "zero" <repyl@newsgroup.please> wrote in message
> news:c6br7b$etd$1@forums.macromedia.com...
>
>
| |
| matt_12511 2004-04-23, 10:28 pm |
| This is the form header for what you want.
<form method="POST" name="tester" action="amapage1.html" target="_blank" >
Matt
| |
|
|
> I'm trying to open the confirmation page of a submit form in a pop up
> window.
> Unsuccessfully...
>
> Any behavior, extension, code, tip?
>
>
an older post on creating a popup and putting form results into it-- the
code isn't specific to your page- modify as needed for it to work with what
you have.
1)change the form tags to add a target:
<form action="server_side_script.whatever" target="thenewwindowname"
method="POST">
{this will direct the script's results to the new window we make down below}
2)add a behavior to the submit button to create the popup.
Select the submit button, and add Open Browser Window behavior, triggered
onClick
Set the window's parameters/chrome as wanted.
NAME this new window in the dialog box, and have the target attribute in the
form's action use this window name. In the form's action above, i used
"thenewwindowname" so i'd name this popup window thenewwindowname.
<input type="submit" value="send the stuff"
onClick="MM_openBrWindow('fillerpage.html','thenewwindowname','toolbar=yes,s
crollbars=yes,resizable=yes','100','100','true')>
{this creates the 100x100 window. We don't want to put
server_side_script.whatever as the source, that would load the script
without sending any data and nothing
would be processed. The form results will fill this window in a second, but
for now have to put a page into it or it will give errors. So we stick a
dummy page we name fillerpage.html in it till the script returns it's
results.}
3)create and upload the empty fillerpage.html
You can put any "wait a second" message and graphic into it.
It will show for the fraction of a second between the new window popping
open------- and the script returning the processed info page.
So-- when the submit button is pressed--
1)the data is submitted to the script for processing
2)a new popup is created named "thenewwindowname" 100x100 with
fillerpage.html in it.
3)the script returns it's results to the popup window
4) It degrades gracefully if the visitor has javascript turned off- the form
results will open in a new fullsized normal browser window.
| |
|
| Thank you! I will try.
"Alan" <dont_mail_me_period@macromedia.com> escribió en el mensaje
news:BCAF1304.187C36%dont_mail_me_period@macromedia.com...
>
>
>
> an older post on creating a popup and putting form results into it-- the
> code isn't specific to your page- modify as needed for it to work with
what
> you have.
>
>
> 1)change the form tags to add a target:
> <form action="server_side_script.whatever" target="thenewwindowname"
> method="POST">
>
> {this will direct the script's results to the new window we make down
below}
>
> 2)add a behavior to the submit button to create the popup.
> Select the submit button, and add Open Browser Window behavior, triggered
> onClick
> Set the window's parameters/chrome as wanted.
> NAME this new window in the dialog box, and have the target attribute in
the
> form's action use this window name. In the form's action above, i used
> "thenewwindowname" so i'd name this popup window thenewwindowname.
>
> <input type="submit" value="send the stuff"
>
onClick="MM_openBrWindow('fillerpage.html','thenewwindowname','toolbar=yes,s
> crollbars=yes,resizable=yes','100','100','true')>
>
> {this creates the 100x100 window. We don't want to put
> server_side_script.whatever as the source, that would load the script
> without sending any data and nothing
> would be processed. The form results will fill this window in a second,
but
> for now have to put a page into it or it will give errors. So we stick a
> dummy page we name fillerpage.html in it till the script returns it's
> results.}
>
> 3)create and upload the empty fillerpage.html
> You can put any "wait a second" message and graphic into it.
> It will show for the fraction of a second between the new window popping
> open------- and the script returning the processed info page.
>
> So-- when the submit button is pressed--
> 1)the data is submitted to the script for processing
> 2)a new popup is created named "thenewwindowname" 100x100 with
> fillerpage.html in it.
> 3)the script returns it's results to the popup window
> 4) It degrades gracefully if the visitor has javascript turned off- the
form
> results will open in a new fullsized normal browser window.
>
>
| |
|
| It works if you click the button. If you press enter opens a new window
without the required
size... is there a way to make it work ok wheter they press enter or click?
"Alan" <dont_mail_me_period@macromedia.com> escribió en el mensaje
news:BCAF1304.187C36%dont_mail_me_period@macromedia.com...
>
>
>
> an older post on creating a popup and putting form results into it-- the
> code isn't specific to your page- modify as needed for it to work with
what
> you have.
>
>
> 1)change the form tags to add a target:
> <form action="server_side_script.whatever" target="thenewwindowname"
> method="POST">
>
> {this will direct the script's results to the new window we make down
below}
>
> 2)add a behavior to the submit button to create the popup.
> Select the submit button, and add Open Browser Window behavior, triggered
> onClick
> Set the window's parameters/chrome as wanted.
> NAME this new window in the dialog box, and have the target attribute in
the
> form's action use this window name. In the form's action above, i used
> "thenewwindowname" so i'd name this popup window thenewwindowname.
>
> <input type="submit" value="send the stuff"
>
onClick="MM_openBrWindow('fillerpage.html','thenewwindowname','toolbar=yes,s
> crollbars=yes,resizable=yes','100','100','true')>
>
> {this creates the 100x100 window. We don't want to put
> server_side_script.whatever as the source, that would load the script
> without sending any data and nothing
> would be processed. The form results will fill this window in a second,
but
> for now have to put a page into it or it will give errors. So we stick a
> dummy page we name fillerpage.html in it till the script returns it's
> results.}
>
> 3)create and upload the empty fillerpage.html
> You can put any "wait a second" message and graphic into it.
> It will show for the fraction of a second between the new window popping
> open------- and the script returning the processed info page.
>
> So-- when the submit button is pressed--
> 1)the data is submitted to the script for processing
> 2)a new popup is created named "thenewwindowname" 100x100 with
> fillerpage.html in it.
> 3)the script returns it's results to the popup window
> 4) It degrades gracefully if the visitor has javascript turned off- the
form
> results will open in a new fullsized normal browser window.
>
>
| |
|
| as a guess, try with the onClick on the form tag, instead of the submit
button. I don't see it as a problem that it doesn't work with the enter
key. Depending on what has focus when they press the enter key- different
things will happen.
> It works if you click the button. If you press enter opens a new window
> without the required
> size... is there a way to make it work ok wheter they press enter or click?
| |
|
| Thank again! I've tried moving it to the form tag. It's the same.
People normaly type and press enter because leaving the keyboard and taking
the mouse
to manually click the button "submit" takes longer.
Is there anyway to make it work with the enter key?
"Alan" <dont_mail_me_period@macromedia.com> escribió en el mensaje
news:BCB2BB89.188792%dont_mail_me_period@macromedia.com...
> as a guess, try with the onClick on the form tag, instead of the submit
> button. I don't see it as a problem that it doesn't work with the enter
> key. Depending on what has focus when they press the enter key- different
> things will happen.
>
click?[color=darkred]
>
| |
|
| I did but didn't work. The problem is that if they press enter the window
with specified sizes will not open,
instead a _blank will open...
"Alan" <dont_mail_me_period@macromedia.com> escribió en el mensaje
news:BCB2BB89.188792%dont_mail_me_period@macromedia.com...
> as a guess, try with the onClick on the form tag, instead of the submit
> button. I don't see it as a problem that it doesn't work with the enter
> key. Depending on what has focus when they press the enter key- different
> things will happen.
>
click?[color=darkred]
>
| |
|
| it didn't work..
"Alan" <dont_mail_me_period@macromedia.com> escribió en el mensaje
news:BCB2BB89.188792%dont_mail_me_period@macromedia.com...
> as a guess, try with the onClick on the form tag, instead of the submit
> button. I don't see it as a problem that it doesn't work with the enter
> key. Depending on what has focus when they press the enter key- different
> things will happen.
>
click?[color=darkred]
>
| |
|
| suggestion- go search for javascript that either disables the enter key in
the form, or directly acts on the submit button if the enter key is pressed.
http://developer.irt.org/script/form.htm
what's happening is the enter key is acting on the opening form tag, and not
"clicking" the submit button, so the onClick of the submit button isn't
doing anything..
> it didn't work..
>
> "Alan" <dont_mail_me_period@macromedia.com> escribió en el mensaje
> news:BCB2BB89.188792%dont_mail_me_period@macromedia.com...
> click?
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|