Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery not working on my host?

I am working on a site, and everything is working in my local environment as well as on a test server I have here and everything works fine. but when I upload it to my host, nothing seems to work!?

The Asp.Net javascript validators fire, but any and all of the jquery is not working? I even put in a simple

$("#test").html("working");

and

<div id="test></div>

And nothing is happening? I have triple checked that all the js is uploaded (to my /js/ directory

The site is here: http://whoowes.me (it is in it's infancy still... barely started) and the Login/Register/Contact buttons should all pull a modal popup (not change pages, that should only happen if JS is disabled) and the word 'test' should show up under the menu.

Can JS be disabled from the server? Wouldn't make sense though as the asp.net javascript validators are showing up?

I am completely confused here, any ideas would be great!

like image 383
naspinski Avatar asked Oct 20 '25 10:10

naspinski


1 Answers

You could always let Google do your work for you:

<head>
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script>
</head>

One pleasant side-effect is that you'll save a little bandwidth, and because many sites now use Google's AJAX API, many users will already have it cached in their browser.

like image 83
Luke Dennis Avatar answered Oct 21 '25 22:10

Luke Dennis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!