Take the 2-minute tour ×

When I click on this fiddle: http://jsfiddle.net/RQL5V/ everything is working properly. However, when I attempt to copy the code over to Dreamweaver(html file) via http://jsfiddle.net/RQL5V/show/ and deploy, the page seems to freeze up and when the links are clicked and drop down is supposed to be displayed nothing happens...

I cant get this to work not matter what I try!

any help would be greatly appreciated.

share|improve this question
Did you also include the external libraries (JQuery) in your local HTML document? –  Carlo Cannas Dec 19 '13 at 23:48
@CarloCannas i included this <script type='text/javascript' src='//code.jquery.com/jquery-1.9.1.js'></script> <link rel="stylesheet" type="text/css" href="/css/result-light.css"> –  user3105072 Dec 19 '13 at 23:51
@CarloCannas I don't know what I am missing. the code on this page jsfiddle.net/RQL5V/show should be the entirety of the code right? if not what do I add and where? –  user3105072 Dec 19 '13 at 23:52
Are you loading the document in your browser by a file: URL? If it's so, that's the problem. –  Carlo Cannas Dec 19 '13 at 23:53
Are you waiting for the window to load before running your code, just like you are in the fiddle? (please provide relevant code in your question, <p>Thanks!</p> isn't very helpful.) –  Kevin B Dec 19 '13 at 23:54

1 Answer 1

up vote 2 down vote accepted

The problem is that you can't simply copy the code, since there are some relative URLs. Specifically //code.jquery.com/jquery-1.9.1.js is the problem, it's a relative URL made to be short and work both in HTTP or HTTPS. If you use the absolute URL http://code.jquery.com/jquery-1.9.1.js it should work.

When working on a document loaded by a file: URL, the above relative path would be resolved into file://code.jquery.com/jquery-1.9.1.js.

share|improve this answer
Thank you so much! –  user3105072 Dec 20 '13 at 0:02

Your Answer


