最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - is there some special setting for servers to run jQuery? - Stack Overflow

programmeradmin1浏览0评论

i had an html page that run some jQuery scripts and that works ok. but once i use the same scripts in php page then tries to run it using local server (xampp) it doesnt working .. then i tried to upload files on linux server over the internet but neither the html nor the php pages worked right ! so did i miss something ? is there some settings needed to change on servers i didnt do ? btw: i just start learning jQuery .. and i cant move forword :/ help plz ?

thanx ..

i had an html page that run some jQuery scripts and that works ok. but once i use the same scripts in php page then tries to run it using local server (xampp) it doesnt working .. then i tried to upload files on linux server over the internet but neither the html nor the php pages worked right ! so did i miss something ? is there some settings needed to change on servers i didnt do ? btw: i just start learning jQuery .. and i cant move forword :/ help plz ?

thanx ..

Share Improve this question asked Oct 20, 2009 at 16:23 reemareema 431 silver badge3 bronze badges 2
  • 2 jQuery is JavaScript and is executed by the browser. You don’t require a special server or server settings except for serving the JavaScript files that contain your jQuery code. – Gumbo Commented Oct 20, 2009 at 16:26
  • Make sure your path to jQuery doesn't reference your C:\ It should be relative to the page you are loading e.g. "js/jquery.js" – scunliffe Commented Oct 20, 2009 at 16:50
Add a ment  | 

2 Answers 2

Reset to default 5

jQuery is a client-side technology, and has nothing to do with your servers beyond residing within them while awaiting delivery.

When you have problems with something "doesnt working", you should describe very clearly what behavior you see and why you feel that it is incorrect. Nobody can help you when you just say "it doesn't work plz help".

In http://reema/jQuery/tots/index.html, firebug indicates an error "$ not defined", so jquery.js is not being loaded.

In the HTML we have <script type="text/javascript" src="../jquery.js"></script> , but when we try to load http://reema/jQuery/jquery.js we get a "Forbidden" page. The forbidden page is different from the "Not Found" page you get if you just make up a URL on reema.

I think the jquery.js file is in the right place, but that it has the wrong permissions on the file system.

发布评论

评论列表(0)

  1. 暂无评论