DanMossa
DanMossa

Reputation: 1082

Javascript not working on Dreamweaver

My code has

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

up at the top and when I upload my code using dreamweaver my website works perfectly fine in Google Chrome, but anything regarding Javascript does not work once I'm in live mode for dreamweaver. I made sure to check that freezze javascript was off as well. Not sure what's wrong =/

Upvotes: 0

Views: 2260

Answers (1)

w3shivers
w3shivers

Reputation: 400

Dreamweaver requires a full http path to be used so change the source to the following:

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

As shown in the example above I simply added http: in the src tag.

Upvotes: 1

Related Questions