Question

What is the url to get and only get this fiddle's javascript code ?

So later on, I may use it for tests by calling it using a <script rel="" src=""></script> link, something like :

<script rel="script" src="http://jsfiddle.net/.../.../myFiddleScrip.js"></script>

JSfiddle store versions of our scripts, which my IDE doesn't.


Edit: I'am aware of the /show/ page, my question is is there an independant .js page ?


Edit: As of March 2013, the following patterns works! (pls +1 Danny's answer!)

Was it helpful?

Solution

It looks like you can add it to your page with the following:

<script type="text/javascript" src="http://jsfiddle.net/hugolpz/QUTcW/37/show_js/"></script>

However that url doesn't look to be officially documented and may change. More info here

OTHER TIPS

see this : view-source:http://fiddle.jshell.net/hugolpz/QUTcW/37/show/

They do not create separate .js file , they just put your script in script tags

Edit: new solution by Danny is far easier !


From BrianDHall's comment emerge this heavy direction

  1. To GET the source http://jsfiddle.net/userName/CODE/DD/
  2. get the js panels's content (something like: $('textarea#id_code_js').value() ),
  3. clean it up and use it.

To explore further if you are interested.

If you are fluent in JS, feel free to share a script solving this question. I will valid it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top