Results 1 to 3 of 3

Thread: return false problem

  1. #1
    Join Date
    Mar 2009
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default return false problem

    hello,

    with help from you guys on here i got my javascript working quite well.

    However for some reason the page is now misbehaving. I did make a change to the page but i didn't touch the script bits of the page.

    Basically when you click submit, it actually submits even though there is a return false; in the javascript.

    I would like it to give a price without submitting the script which it was doing before.

    I have pasted links to the form and script below. what have i done wrong?


    javascript
    http://www.surfcelive.com/validate.js


    form
    http://www.surfcelive.com/form.html



    Thanks.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You changed the name of one or more of the form elements and/or removed one or more of the form elements on the page. Now the script can't find all of the ones it is looking for. That causes a script error. Once there is an error, the entire submit event, including its return value fails, the form submits.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    Rachele7 (10-21-2009)

  4. #3
    Join Date
    Mar 2009
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thanks a lot for your help.

    It's working properly now.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •