Reputation: 1689
I am trying to take a jsfiddle script example found here on stackoverflow to use it on my website...but it's not working well.
I use Dreamweaver CS6. I pasted the code that I have in Dreamweaver in JSFiddle, and it's working correctly. But I try from Dreamweaver with my local files, it's not.
It's the SAME code.
Here's my fiddle
Any ideas why it's working in JSFiddle but not using local files in the same browser? I thought it was because of the "onload" jQuery of JSFiddle, but I'm using external jQuery source (Google). I don't get it!
Thanks!
EDIT : Here's my page...hosted with PasteHTML. HERE Thanks!
Upvotes: 0
Views: 236
Reputation: 19953
I believe it's an encoding issue.
If you look at the source of your pastehtml page, and change the encoding (via menus View -> Character Encoding) to something other than Unicode (UFT-8), you will see ​
appear on line 30 after }, 2000);
If you can force Dreamweaver to save the file in UCT-8 format, then I believe this issue will go away.
It also would explain why the pastehtml site is not working (if the file is copied to the server), and the jsfiddle is working (if you are doing a copy/paste of the code).
Upvotes: 1