Ok..here is one for the javascript AND CF experts on the list.
I have a form with three fields: Name, Message,Email.
A Submit Button, and a Reset Button.
This is what I want to happen:
User fills in Name, Message, and email.
When they click on Submit,the Current Window returns to the Website's Index
page.
A New Window then pops up.
This New Window will contain code to send the Name, Message, and Email via
CFMAIL to a particular address. [completed]
It should not have a Button bar, status bar, or scroll bars.
It will also display text of the message, the name sent to, and the IP
address that was logged.[completed]
What I am having difficulty with, is getting that window behaviour to work
right.
Clicking Submit on MainWindow, having that window then spawn ChildWindow AND
redirect to the homepage of the website.
AND having Childwindow be a "dialog" window without scroll bars, status bar,
or button bar, and still retain the formfields passed to it by the form so
that these can be processed in the childwindow's cfm script.
A simple OnSubmit action in the Form tag does not work, because although it
DOES open the new window, this new window does not have the formfields
passed from the previous form :-\
I was wondering..can you pass URL fields using the OnSubmit for the Form?
So can I say something like
OnSubmit="window.open('sendpage.cfm?form.Name&form.message&form.email',statu
sbar='no',scrollbar ='no')" etc. etc. ?
hmm...you know I have a feeling that might work, but I'm not in the office
to try it!
=)
Anyways, if anyone can help with this sort of window behaviour it would be
most appreciated.
My knowledge of javascript is: Novice.
:-)
If it is necessary to see an example of what I would like to do, in order to
help me figure this out, then I'll post a URL ;-P
Thanks!
-Gel
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.