Question

Does jQuery have any requirements in server side?

I installed a same script in 2 domains 2 servers all are same except the domain name, when I browse the sites I see the jQuery works in one and not working in another where I am using the same computer and same browser .

Was it helpful?

Solution

jQuery is a Javascript library. JavaScript hosted on web pages are executed on the client side. Therefore, jQuery can work even without the use of a server. You just need the file.

If the library is not working on a site,it is usually because this site makes a function call that leads to an exception being raised. Usually, you can't detect those by opening the development tools or your browser (F12 on IE and Chrome for example). There is a console that logs everything abnormal in the execution of the script. You can even debug the Javascript code there. Look it up. I'm certain there will be an exception there and this is what makes jQuery not work on that site.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top