HighDots Forums  

Pop-Up Window w/ Email Form

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Pop-Up Window w/ Email Form in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
cms0003
 
Posts: n/a

Default Pop-Up Window w/ Email Form - 07-25-2004 , 10:15 PM






Background:
I want to build a pop-up window with an email form. When a user clicks on the
"Contact Us" button, a pop-up window will appear with an email form. I have
saved my pop-up window as "Feedback.html" When the user clicks "submit", the
information will be sent via PHP (through sendmail.php) to my email account.
My response page (sendmail.php) will then tell the user that the email was sent.

First, I do not want the pop-up window to open "onload". How do make a link
on my site that will trigger the pop-up window.

Secondly, I have tried putting the pop-up window together through the "open
browser window" behavior, but when I test the page locally...for some reason,
the window does not fully load...and my cursor continously blinks. What might
I be doing wrong?

Also, how do I resize my PHP page (sendmail.php) so that is it appears in the
same window as my initial form (feedback.html).

Any help would be greatly appreciated. Thank you.

Colin
http://www.aa5design.com


Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Pop-Up Window w/ Email Form - 07-26-2004 , 07:24 AM






Quote:
First, I do not want the pop-up window to open "onload". How do make a
link
on my site that will trigger the pop-up window.

<a href="popup.html" target="_blank" onClick="MM_openBrowserWindow(...);
return false">Click this</a>

Quote:
Secondly, I have tried putting the pop-up window together through the
"open
browser window" behavior, but when I test the page locally...for some
reason,
the window does not fully load...and my cursor continously blinks. What
might
I be doing wrong?
No idea. Show me the code in the popup page, please.

By the way, attachments are discouraged for this and other Macromedia
forums, and to make matters worse, they do not carry forward from the
webforums into the NNTP forums, which is where most of the people who post
answers are visiting. If you want to broadcast your code so that everyone
can see it, the only real way is a) to paste it into a reply (not great if
there is lots of code), or b) to upload it somewhere and post a URI to it.

Be aware that if you paste voluminous quantities of code into a reply, the
code may get truncated when transferring to the NNTP forum. This can be
quite confusing to both poster, and reader. The best bet would be to upload
the page and post a URI.


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
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
==================

"cms0003" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Background:
I want to build a pop-up window with an email form. When a user clicks
on the
"Contact Us" button, a pop-up window will appear with an email form. I
have
saved my pop-up window as "Feedback.html" When the user clicks "submit",
the
information will be sent via PHP (through sendmail.php) to my email
account.
My response page (sendmail.php) will then tell the user that the email was
sent.

First, I do not want the pop-up window to open "onload". How do make a
link
on my site that will trigger the pop-up window.

Secondly, I have tried putting the pop-up window together through the
"open
browser window" behavior, but when I test the page locally...for some
reason,
the window does not fully load...and my cursor continously blinks. What
might
I be doing wrong?

Also, how do I resize my PHP page (sendmail.php) so that is it appears in
the
same window as my initial form (feedback.html).

Any help would be greatly appreciated. Thank you.

Colin
http://www.aa5design.com




Reply With Quote
  #3  
Old   
Gary White
 
Posts: n/a

Default Re: Pop-Up Window w/ Email Form - 07-26-2004 , 09:51 AM



Murray *TMM* wrote:

Quote:
a href="popup.html" target="_blank" onClick="MM_openBrowserWindow(...);
return false">Click this</a

YEAH!!! A convert! ;-)


Gary


Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Pop-Up Window w/ Email Form - 07-26-2004 , 12:05 PM



8)

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
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
==================

"Gary White" <reply (AT) newsgroup (DOT) please> wrote

Quote:
Murray *TMM* wrote:

a href="popup.html" target="_blank" onClick="MM_openBrowserWindow(...);
return false">Click this</a


YEAH!!! A convert! ;-)


Gary



Reply With Quote
  #5  
Old   
cms0003
 
Posts: n/a

Default Re: Pop-Up Window w/ Email Form - 07-27-2004 , 12:36 AM



Here is the coding for my pop-up. For some reason, this does not fully load.
Where am I going wrong?

<area shape="rect" coords="67,190,163,205" href="javascript:;"
onClick="MM_openBrWindow('feedback.htm','LPalm','w idth=500,height=400')">


Reply With Quote
  #6  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: Pop-Up Window w/ Email Form - 07-27-2004 , 08:06 AM



Quote:
For some reason, this does not fully load.
What happens? Can you show me the code in feedback.htm?

Change your code as follows -

<area shape="rect" coords="67,190,163,205" href="feedback.htm"
onClick="MM_openBrWindow('feedback.htm','LPalm','w idth=500,height=400');
return false" target="_blank">

so that your page will still be functional even when javascript is not.


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
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
==================

"cms0003" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Here is the coding for my pop-up.
Where am I going wrong?

area shape="rect" coords="67,190,163,205" href="javascript:;"
onClick="MM_openBrWindow('feedback.htm','LPalm','w idth=500,height=400')"




Reply With Quote
  #7  
Old   
Gary White
 
Posts: n/a

Default Re: Pop-Up Window w/ Email Form - 07-28-2004 , 11:39 AM



cms0003 wrote:

Quote:
Here is the entire code for feedback.html. Once I click on the link in
"contact_us.html". This page does not fully load. The cursor just continues
to blink. I want to be able to fill out this form, and once submitted, I want
the "sendmail.php" response pape to appear in the same pop-up window. Thank
you for your help.

body onLoad="MM_openBrWindow('feedback.htm','LPalm','wi dth=425,height=350')"
One problem is that the page will be trying to continuously open itself
in new browser windows indefinitely. Change the above line to:

<body>


Gary


Reply With Quote
  #8  
Old   
cms0003
 
Posts: n/a

Default Re: Pop-Up Window w/ Email Form - 07-28-2004 , 06:34 PM



What do you mean when you say
"change the above line to

<body>"


Do I need to delete this entirely?:

Quote:
body
onLoad="MM_openBrWindow('feedback.htm','LPalm','wi dth=425,height=350')"

and add

<body>

Then my entire javascript behavior is gone.....Do you mean to edit only part
of?"
Quote:
body
onLoad="MM_openBrWindow('feedback.htm','LPalm','wi dth=425,height=350')"



Reply With Quote
  #9  
Old   
Gary White
 
Posts: n/a

Default Re: Pop-Up Window w/ Email Form - 07-28-2004 , 10:06 PM



cms0003 wrote:

Quote:
Do I need to delete this entirely?:

body
onLoad="MM_openBrWindow('feedback.htm','LPalm','wi dth=425,height=350')"

and add

body

Yes.



Quote:
Then my entire javascript behavior is gone.....Do you mean to edit only part
of?"
That JavaScript tells the browser to open a new window containing the
same page. That window will also be told to open a new window containing
the same page. That window will also be told to open a new window
containing the same page and on and on to infinity, or the operating
system crashes, whichever comes first.


Gary


Reply With Quote
  #10  
Old   
cms0003
 
Posts: n/a

Default Re: Pop-Up Window w/ Email Form - 08-01-2004 , 08:41 PM



Now I'm even more confused.

What javascript code should I use for this then? Once again.....
On the contact_us.html page, there is a link that (when clicked) opens
feedback.html in a pop-up window. Feedback.html is an email form that (when
submitted), sends the info. through sendmail.php to my email account.

Can someone please post the correct code for a link to a pop-up window? Thank
you.

cms0003



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.