logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > Javascript and JS frameworks
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 02-06-2009, 07:16 PM   #1
urbanrays
 
Join Date: Dec 2008
Posts: 212
Default Thank you pop up window

Hi

I have created a form and the submit buttom has this code

<input type="hidden" name="hdwemail" id="hdwemail"
value="contact+urbanrays.co.uk" />

<input type="hidden" name="hdwok" id="hdwok" value="commercialthanks.htm" />

I would like a small window to open just saying thanks we will contact you shortly, I have tried to use body onload but I know there is no way of getting rid of the address bar etc. it just creates a specific size and position.

Have tried using java on the submit button but then it goes pear shaped and does not post the form.

Do I have to place some code in the php script("CALLING DAVIDJ COME IN DAVIDJ") or is there a way I can do this with java.

Thanks for any help
urbanrays is offline   Reply With Quote
Old 02-06-2009, 08:19 PM   #2
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

Neither PHP or Java does this.
Look in the behaviors panel there should be a JavaScript pop-up behavior there. Load it on onload.
domedia is offline   Reply With Quote
Old 02-06-2009, 11:10 PM   #3
urbanrays
 
Join Date: Dec 2008
Posts: 212
Default

this does not seem to work as it opens a blank htm window and then the pop up appears.

Thanks again for your help
urbanrays is offline   Reply With Quote
Old 02-06-2009, 11:40 PM   #4
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

You're not doing it right. Why are you opening a blank page?
domedia is offline   Reply With Quote
Old 02-07-2009, 02:04 AM   #5
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,175
Default

is the form action to another page? if so could you not just let the form be directed to that then on load it will pop up an alert window?
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 02-07-2009, 08:36 AM   #6
urbanrays
 
Join Date: Dec 2008
Posts: 212
Default

Sorted thanks
urbanrays is offline   Reply With Quote
Old 02-07-2009, 09:11 AM   #7
urbanrays
 
Join Date: Dec 2008
Posts: 212
Default

Sorry I am not sorted, I have got the message popping up now but the trouble is that the php page is now oppening in the bgd.

Thanks for any help again people
urbanrays is offline   Reply With Quote
Old 02-07-2009, 09:43 AM   #8
urbanrays
 
Join Date: Dec 2008
Posts: 212
Default

sorry all done school boy errors AGAIN
urbanrays is offline   Reply With Quote
Old 02-07-2009, 09:53 AM   #9
Corrosive
Corrosive's Avatar
 
Join Date: Feb 2008
Location: Bristol, England
Posts: 7,103
Default

Quote:
Originally Posted by urbanrays View Post
sorry all done school boy errors AGAIN
You know the first sign of madness is talking to yourself

Glad you got it sorted Chris. Checked your site yesterday. Looking top class fella, great job.
Corrosive is offline   Reply With Quote
Old 02-07-2009, 12:54 PM   #10
urbanrays
 
Join Date: Dec 2008
Posts: 212
Default

cheers mate,
Im not to happy with it I seen it on another pc the other day and I didnt think the blue and black worked together, and I tested the site for accessablity (cant remember the site name) and it got hammered.

So i am just in the process of doing this one, I know it needs cleaning up abit but I feel its a lot cleaner
http://www.urbanrays.co.uk/index2.htm

But I aint finishing the site till I have sorted the commercial site out its doing my head in one thing left and no one has answered my post, its the problem on the input cells going from name to company

http://www.urbanrays.co.uk/commercial.htm

Its on the contact page (obviously) cant give you the full address as I am using tabbed pages

Speak soon
urbanrays is offline   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

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

Forum Jump


All times are GMT. The time now is 04:05 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com