...

View Full Version : Validation form does not seem to work. Boolean or variable?



andrewG
04-18-2011, 07:45 AM
Hello fellow programmers,

I am having some trouble with my javascript doing what I want it to, which is returning values (true/false || 1/0).

I haven't used much javasript but I am experienced with C#, Java, Python etc so this is sort of new to me syntax wise.

Here is what I have so far:
http://jsfiddle.net/HpSyJ/1/

note: for some reason css doesn't like jsfiddle :S, the error messages are hidden in my Notepad++ & firefox combo though

Really all I want is when I hit submit, it runs an alert or changes the error message to visible.

Can someone please have a quick read over and see if anything jumps out at them?

Thanks in advance, Andrew

Philip M
04-18-2011, 08:40 AM
Line 21 - syntax error.
Line 192 - object does not support this method

It is your responsibility to die() if necessary….. - PHP Manual

andrewG
04-18-2011, 09:45 AM
line 21 I counted as


return false;


i didn't know there was 192 lines could you paste what line that is?

also what do you mean by your last statement?

I don't Get() it :P

Philip M
04-18-2011, 10:02 AM
line 21 I counted as


return false;


i didn't know there was 192 lines could you paste what line that is?

also what do you mean by your last statement?

I don't Get() it :P


That's what my browser says. :) I don't plan to wade through the 768 lines of code myself.
Have you tried using your error console?

The quote in blue is a joke, OK?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum