Charles Rajendran Charles Rajendran - 1 year ago 48
jQuery Question

Javascript, Jquery works fine in localhost but not in the deployed site?

I just wrote a simple signup page, and validated it with pure javascript and jquery. I also used font-awesome icons to show status of the input value. It worked fine with all the user agents(I tested it with a chrome extension). but after putting the files to a server it is not working with any of the user agents.

issues :

  1. Some user agents not showing font awesome icons, but the scripts are working.

  2. In some user agents the icons as well as the scripts both are not working.

I don't no where the issue is.

<title>TicketIsle Login</title>
<link rel="stylesheet" href="">
<link rel="stylesheet" href="style.css"/>
<script src=""></script>
<script type="text/javascript" src="validation.js"></script>
<script type="text/javascript" src="js/get_post.js"></script>

the above is how I put the scripts and style files.


if your page is in secure (https) some browsers dont allow you explicitly to download scripts or styles from non-secure (http) pages.

This syntax should be used to avoid this protocol issue:

<script src="//"></script>

This is protocol agnostic i.e. it will work with both http and https.