Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 5th, 2004, 09:27 AM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Javascript validation no longer runs under SSL

I've a form on my website (www.penmarlampark.co.uk) which had some Javascript validation. This is hosted on a Linux Server by 1 and 1.

I've just added SSL and the validation code no-longer runs.

Why is this and how do I get round it?

Many thanks for any help

Marcus

 
Old December 6th, 2004, 06:33 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Do you mean client side code no longer runs when the url is https://...?
Can you show a small sample?


--

Joe (Microsoft MVP - XML)
 
Old December 6th, 2004, 08:04 AM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes - that's exactly the problem, when I use https:// the Form validation code (onsubmit) either does not trigger or does not run for some reason - consequently you can now submit the for with no / or incorrect data.

You can see the form and the code at www.penmarlampark.co.uk/bookingform.htm

Thanks

Marcus

 
Old December 6th, 2004, 08:26 AM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Major apologies - it's not the SSL - somehow I manage to srew up the code at the same time

All now solved

Thanks for looking anyway

Marcus

 
Old December 6th, 2004, 08:47 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Well I thought it was strange, but with computers you never know :)

Glad it's sorted.

Regards



--

Joe (Microsoft MVP - XML)





Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript datetime validation Hannibal Javascript 1 December 5th, 2007 06:39 AM
Javascript whit SSL? NeoNmaN Javascript 0 February 14th, 2007 07:50 AM
Javascript, SSL, and Back Button jdhemphill Javascript How-To 0 January 31st, 2007 09:44 AM
Javascript and SSL jdhemphill Other Programming Languages 0 January 30th, 2007 05:22 PM
Javascript & SSL? gabriellia Javascript 1 December 6th, 2003 10:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.