Skip to content

Demos - Leverage jsbin? #2

@gnarf

Description

@gnarf

http://bugs.jqueryui.com/ticket/5769 @jzaefferer
jsbin accepts content via paremters. From @remy

http://jsbin.com/?html=remy&js=yay

Obviously you can put all the markup in the HTML tab, and you can force focus only to the HTML tab using the following:

http://jsbin.com/?html=remy&js=yay#html

You just have to escape all the markup and new lines, etc to get it to work as a get.

If this doesn't suffice, I could upgrade JS Bin to accept postMessage messages to modify the editor panel - but I think the above should be the start point.

Adding (generated) links to all demos to open the demo code on jsbin, preferably with dependencies as loaded from CDNs, would allow visitors to test out the code without having to manually copy&paste around.

Could we just author the demos on jsbin and save them / load them in the iframe?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions