Entry
How do I get my script to fail gracefully on browsers with scripting disabled?
Apr 16th, 2002 10:06
nikla s, Jean-Bernard Valentaten,
I don't want to sound mean or something, but please think about your
question!!
If scripting is disabled, your script cannot fail, since it's not
beeing run.
Jean
//thx, point taken. may be outtaline here, if so sorry, just can't
phrase my Q in given space, here's my sorry form validation case in
short:
... (onSubmit 'return myVal()') ... function myVal(){
...
m=document.aform.elements[0].name //fires Submit, how avoid?
...
return confirm("Some fields are blank, submit anyhow?")
}
On Cancel, submit is fired anyhow, so I left out FORM ACTION prop, only
to set it at runtime if user confirms. great unless scripting is out.
toyed with "void()"-ing action prop, no use. so again, graceful failure?
again, sorry if I'm trespassing, just frustrated.
/niklas