View Full Version : Accepting Terms form submission
louann
09-10-2005, 02:20 PM
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/dynamicindex16/acceptterm.htm
louann
jscheuer1
09-10-2005, 04:38 PM
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:
.
jscheuer1
09-10-2005, 09:10 PM
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:
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:
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.
louann
09-11-2005, 01:22 AM
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
jscheuer1
09-11-2005, 04:29 AM
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.
louann
09-11-2005, 03:12 PM
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
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.