user366810
user366810

Reputation: 424

jquery not working online (but it works offline)

I have a simple online form with jQuery calling a JSON file containing a list of countries. The page populate a select list and works fine offline but not online. You can see the HTML source code at

http://governapps.com/qualys/index.cfm

The jQuery code is at the bottom.

Any idea why this isn't working?

Thanks,

David

Upvotes: 0

Views: 914

Answers (2)

Edgar Villegas Alvarado
Edgar Villegas Alvarado

Reputation: 18344

Your iso-3166-countries.en.json url is wrong or it can't be served correctly (mime types, permissions, etc).

If the url is right, an easy way would be to rename it to iso-3166-countries.en.cfm, and of course change the $.getScript to reflect it to.

Hope this helps

Upvotes: 1

Parsa
Parsa

Reputation: 1065

It seems like iso-3166-countries.en.json is not being served correctly in IIS (maybe .json MIME is not defined in your IIS) or the relative path to it is not correct; Because it just throws error 404 (resource not exists error).

Upvotes: 1

Related Questions