From my perspective, when aaa is found, the BAAADDD!!! message should be issued and it's not.
"Wally" is the error that I can't figure out.
If someone could give me hint where this is going bad I'd really appreciate.
I will also say that you want to chose a naming convention that is meaningful, "BLABLA" is not a meaningful variable, if you were to have called it UserResponse then you would know what data it may contain.
Last edited by JunkMale; 10-19-2011 at 03:52 PM.
Reason: Added stuff, Gahhhhh!
Uncaught exception: TypeError: Cannot convert 'mytext' to object
Error thrown at line 7, column 2 in getAAA(that)
if (mytext.value == "aaa")
called from line 1, column 0 in <anonymous function>(event):
The idea is simple and you use the that variable that you pass on the submit of a form when the function is called. prefixing the return to it allows you to either allow the form to submit or to fail by returning true or false.
Hope that helps you, I kept your naming convention so you can see how it works.