[Pro] In form/function Hell

Hi,

I have a form calling a JS function that works fine on one page:
http://applemountaingolfresort.com/nu/calendar.html

Just type two numbers in the field in the footer and click continue.

But the same form does NOT work on another page (it appears the function is not called):
http://applemountaingolfresort.com/nu/index.html

Script and form look identical to me… what am I missing?

Thanks!

-ss


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On the page that works you use the term;
You did not enter a valid 5-digit U.S. Zip Code. Please try again.
but on the broken page the text;
You didn’t enter a valid 5-digit U.S. Zip Code. Please try again.

The single quote in the text (didn’t) is causing the JavaScript to fail as the text is enclosed in single quotes in the code.
Change the broken text to use ‘did not’ and the validation should work again.
Regards,
Tim.

On 23 Jan 2012, at 17:08, Solutions Etcetera wrote:

Hi,

I have a form calling a JS function that works fine on one page:
http://applemountaingolfresort.com/nu/calendar.html

Just type two numbers in the field in the footer and click continue.

But the same form does NOT work on another page (it appears the function is not called):
http://applemountaingolfresort.com/nu/index.html

Script and form look identical to me… what am I missing?

Thanks!


FreewayActions.com - Freeware and commercial Actions for Freeway Express & Pro - http://www.freewayactions.com
FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Tim… that indeed was it.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options