Display a fiddle from POST
It's possible to display a fiddle that's not saved in JSFiddle, using a POST from a 3rd-party source
URL Structure
framework – the desired framework name. Which framework should be loaded with the fiddle.
version – substring of the framework version - the last passing will be used. If 1.3 will be given, JSFiddle will use the latest search result. it will favorize 1.3.2 over 1.3.1 and 1.3.
dependency_list – comma separated list of dependency substrings. It would mark any dependency containing the substring.
Framework
The framewrok to load (or the lack of it) has to be specified in the URL, for example: jsfiddle.net/api/post/{framework}/{version}
If you don't want to use a framework use library/pure
, for example: jsfiddle.net/api/post/library/pure/
Dependencies
There is an option to add dependencies as a comma separated list: jsfiddle.net/api/post/{framework}/{version}/dependencies/{dependency_list}/
POST variables
All fields are optional. New fiddle setting will be used if no data provided.
POST
https://jsfiddle.net/api/post/:framework/:version/dependencies/:dependency_list/
Request Body
Name | Type | Description |
---|---|---|
normalize_css | string |
|
wrap | string | Set the JS code wrap:
Accepts:
- |
html | string | code for the HTML panel |
css | string | code for the CSS panel |
js | string | code for the JS panel |
html_panel | integer | language for the HTML panel.
Accepts |
css_panel | integer | language for the CSS panel.
Accepts:
- |
js_panel | integer | language for the JS panel
Accepts:
- |
title | string | Title of the fiddle |
description | string | Description of the fiddle |
dtd | string | Documents definition type.
Accepts a substring of the chosen DTD (ie |
resources | string | a comma separated list of external resources |
Example:
Last updated