JQuery not working on my host?

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

Asp.Net javascript authentication utilities run but all and all jquery not working? I even set simple

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

and

<div id="test></div>

And nothing happens? I checked triple that all js are loaded (in my / js / directory

The site is here: http://whoowes.me (it still started ...) and Login / Register / Contact buttons should pull out a modal pop-up window (do not change pages, this should happen only if JS is disabled ), and the word "test" should be displayed in the menu.

Can JS be disconnected from the server? Wouldn't it make sense, although apparently asp.net validators have been tested?

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

+3
source share
6 answers

My host did not use .js by default in its MIME types, so I had to add it to:

extension: .js

application/x-javascript
+1
source

You can 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 nice side effect is that you save a little bandwidth, and since many sites now use the Google AJAX API, many users will already cache them in their browser.

+7
source
<script src="/jquery.js" type="text/javascript"></script>

http://whoowes.me/jquery.js= 404

, ?

( /js/)

+3

,

$(document).ready(function () {
    ...
});

.

+2

IIS , js. js .

, - , . - IIS js .

,

+1

whoowes.me/jquery.js . , script.

0

Source: https://habr.com/ru/post/1702439/


All Articles