views:

25

answers:

1

I'm using JSValidate to validate a form, the form gets validated correctly when I access it via File-> Open File, but not when I type localhost/formname on my address bar.

When ran from localhost/formname the form behaves as if the Javascript weren't there. This doesn't happen in my apache server at home, yet it does happen at work. What could it be?

*both machines run ubuntu's firefox, with javascript enabled.

Full code

A: 

Get Firebug, Web Developer Toolbar and possibly Console².
That are Firefox add-ons which can aid you in debugging.

Take a look in your Error Console, search for errors.
Do you have the "scriptaculous" folder in the same folder?

Lekensteyn
yeah, scriptaculous is in the same folder.
omgzor
Have you checked your Error Console?
Lekensteyn
Yeah, it doesn't show a thing. I'm gonna copy my entire www folder and put it on my office's apache, it's empty anyway.
omgzor
Heh, it does show an error, but when fixed doesn't solve the issue.
omgzor
What was the error?
Lekensteyn
A misplaced instantiation of an old form checker that I ended up erasing. Validator is not definedfile:///home/softrain/Escritorio/1%20PROYECTO/formconvalidate5.htmlLine 662
omgzor