Results 1 to 6 of 6

Thread: Accepting Terms form submission

  1. #1
    Join Date
    Sep 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Accepting Terms form submission

    This script works on my MAC in Safari and IE. On my PC it works on Netscape but does not work on IE.
    Any clues why it's not working?
    http://www.dynamicdrive.com/dynamici...acceptterm.htm

    louann
    Last edited by louann; 09-10-2005 at 02:37 PM. Reason: adding link to script question is about

  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

    The demo works on my pc in IE. Perhaps you have javascript turned off in your pc's IE browser? Or it may be a problem in your implementation:

    PLEASE: Include the URL to your problematic webpage that you want help with.
    - John
    ________________________

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

  3. #3
    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

    After closer inspection I see that the demo script and the script offered on the demo page differ significantly so, my prior response does not apply in this case. I would change this function:
    Code:
    function defaultagree(el){
    if (!document.all&&!document.getElementById){
    if (window.checkobj&&checkobj.checked)
    return true
    else{
    alert("Please read/accept terms to submit form")
    return false
    }
    }
    }
    to this:
    Code:
    function defaultagree(el){
    if (!document.all&&!document.getElementById){
    if (window.checkobj&&checkobj.checked)
    return true
    else{
    alert("Please read/accept terms to submit form")
    return false
    }
    }
    else
    return true
    }
    Untested, let us know if it works, it should.
    - John
    ________________________

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

  4. #4
    Join Date
    Sep 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    didn't work, still does the same thing.
    url to the page i'm having a problem with is
    http://www.cdbondage.com/disclaimer_page.html

    Louann
    Last edited by louann; 09-11-2005 at 01:47 AM.

  5. #5
    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

    I fiddled around with your page a bit and discovered that the contents of your disclaimer form were being passed as a query string to the home/index2.html page. This is because the textarea has a name. By changing the designation of the textarea from:

    name="textarea"

    to

    id="textarea"

    IE worked even with the original version of the script. Apparently IE cannot handle such a long query string, whereas the other browsers you mention can as can FF and Opera on my pc. Just make the above change and it should be fine in IE as well as the others, tested and works here.
    - John
    ________________________

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

  6. #6
    Join Date
    Sep 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    John,
    Thank you very much! I found the way of my error from your last post.
    I included the text area in my form which should have been outside the form tag since i'm not really passing that information.
    Again THANK YOU!

    Dynamic Drive scripts forever!!!


    louann

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
  •