JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 15th, 2003, 07:33 AM
RJDavison RJDavison is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 11 RJDavison User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Java form redirection.

I've produced a standard form within dreamweaver and using the PHP Mail() command, got this to send the contents to my inbox.

Sorted.

The problem comes in trying to code it in such a way that it redirects to a thankyou page after the form is submitted. Ive tried using PHP to no success, so im turing to Java Script to try and help out.

I'm using the folowing to redirec. Its a bit of HTML with a cut and pasted onblur = "doVerify()" bit. The java script then calls the command.

<BR />
<INPUT TYPE = "submit" onblur = "doVerify()" NAME = "submit" VALUE = "Submit Form"/>
<BR />
<script language="JavaScript">
function doVerify()
{
location.href = "http://www.turkeybrain.co.uk/thanks.htm"
}
</script>

Now this script works fine on my Apple Mac running OSX 10.3, but refuses to work on my PC running XP. Not having a clue about javascript im a little unsure where the error lies and how it runs on each different platform.

Any assistance would be greatly appreciated.

Reply With Quote
  #2  
Old December 15th, 2003, 08:29 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
Send a message via ICQ to dhouston
What have you done in the PHP code? What's the error?

Reply With Quote
  #3  
Old December 15th, 2003, 08:48 AM
RJDavison RJDavison is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 11 RJDavison User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Java redirection

The PHP/HTML code is all as my other post under the PHP forum which you have kindly replied to.

The Java Script is just another attempt at trying to get it to work.

Reply With Quote
  #4  
Old December 15th, 2003, 01:39 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,240 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 18
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
Moving to the appropriate forums... Please note, Java and JavaScript are not the same.

Thanks!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Java form redirection.


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap