1

I am using JavaScript, JQuery and JSTree in a project. I would love to use Firefox Scratchpad to incrementally develop this project. Unfortunately, Scratchpad does not sense jstree.js.

Please suggest me how to integrate other jquery libraries into Scratchpad. Or is there any alternative to Scratchpad which can do this.

Edit: I had two files, one index.html which has all the html code and I am importing jquery and jstree in this file. Another file index.js which has all js, jquery and jstree code.

Now I know the problem could be that it needs to be served from a Tomcat server and that is Scratchpad is giving me that error. I forgot to add that error to this question, here it is:

/*
Exception: SyntaxError: '[object HTMLDocument]' is not a valid selector
@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/utils/webconsole-utils.js:670:0
*/

I added this to Tomcat and Firefox Scratchpad is firing all well.

Thanks for your advice.

thanks and regards

BB23850

BB23850
  • 109
  • 1
  • 11

1 Answers1

0

I think scratchpad is for testing/manipulating existing sites you are on an opened browser. This means the site itself needs to be served from your place that you control and add there the files/libraries you need.

If you want to build your own online, you can use Mozilla Thimble or jsfiddle, jsbin, codepen and others.

elpddev
  • 4,314
  • 4
  • 26
  • 47