P
Paul D.Smith
[Resending with different subject to try and tweak someone's interest]
Newbie question I'm afraid. I've got a small form with some simple
JavaScript validating input before submission. Testing it locally, I find
that if I fail validation, I put up an alert() as expected, but still
seem to "refresh" the page _with parameters_. What I mean is that I start
off with the address of the page showing e.g. http://www.me.com/input.html,
hit submit and afterwards, the address shows something like
http://www.me.com/input.html?email=add@domain
I've investigated further and if I set an action, IE does seem to try and
run this action despite my having tried to stop it!
Why am I refreshing and getting these parameters? I seem to be using
"return script()" (which seems to be the main problem) and this doesn't seem
to happen if I change the method to POST.
Any ideas?
Thanks,
Paul DS.
Newbie question I'm afraid. I've got a small form with some simple
JavaScript validating input before submission. Testing it locally, I find
that if I fail validation, I put up an alert() as expected, but still
seem to "refresh" the page _with parameters_. What I mean is that I start
off with the address of the page showing e.g. http://www.me.com/input.html,
hit submit and afterwards, the address shows something like
http://www.me.com/input.html?email=add@domain
I've investigated further and if I set an action, IE does seem to try and
run this action despite my having tried to stop it!
Why am I refreshing and getting these parameters? I seem to be using
"return script()" (which seems to be the main problem) and this doesn't seem
to happen if I change the method to POST.
Any ideas?
Thanks,
Paul DS.