开发者

javascript running locally but not on apache

开发者 https://www.devze.com 2023-01-13 04:01 出处:网络
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 o开发者_运维知识库n my address bar.

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 o开发者_运维知识库n 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


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消