Javascript works on jsfiddle but not on localhost -


i trying convert google chart image. found perfect example of need on jsfiddle (http://jsfiddle.net/scjm8/32/) paste code on localhost getting error:

uncaught referenceerror: canvg not defined  

why work on jsfiddle , not on localhost?

edit: needed add 3 external resources jsfiddle located on left side, know in future

jsfiddle allows users add reference external resources. there reference canvg.js in jsfiddle above. looking @ message, looks missing reference file. see external references referenced fiddle, expand external resources , add references localhost file.

in jsfiddle, there 3 external javascript files:

  1. http://canvg.googlecode.com/svn/trunk/canvg.js

  2. http://canvg.googlecode.com/svn/trunk/rgbcolor.js

  3. http://www.google.com/jsapi?fake=.js

make sure reference of these.

for more information on jsfiddle, visit documentation page.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -