ThinkFloyd
ThinkFloyd

Reputation: 5021

How to create fiddles for Sencha touch 2.1.1 or 2.2?

Since fiddles are very useful to explain and understand issues on any forum I would like to create fiddle for Sencha touch 2.1.1(which is the version I use) when I post here but http://www.senchafiddle.com/ only oppers Sencha-Touch-2.0.1 and http://jsfiddle.net/ doesn't even have any option for Sencha Touch, so how to make fiddles with latest versions?

Upvotes: 1

Views: 874

Answers (4)

Steve Roberts
Steve Roberts

Reputation: 2769

The official Sencha Touch Fiddle now seems to be live:

fiddle.sencha.com

The other fiddle site (new.senchafiddle.com), marked at the answer above, no longer seems to be up and running.

Upvotes: 1

blessanm86
blessanm86

Reputation: 31779

JSFiddle will work. Just need to specifiy the external resources. Sometimes SenchaFiddle gives me errors when I try to save my code. This is an alternative in case senchafiddle doesn't behave as expected.

Sencha CDN will have the required css and js files.

Eg. 2.2.1 css and js url

http://cdn.sencha.com/touch/sencha-touch-2.2.1/sencha-touch-all-debug.js
http://cdn.sencha.com/touch/sencha-touch-2.2.1/resources/css/sencha-touch.css

Other versions can be accessed like

http://cdn.sencha.com/touch/sencha-touch-2.1.1/resources/css/sencha-touch.css
http://cdn.sencha.com/touch/sencha-touch-2.1.1/sencha-touch-all-debug.js

Then I put everything I need inside the launch function in the code below.

Ext.Loader.setConfig({
    enabled: true
});

Ext.application({
    launch: function () {
        //Your code goes here.
    }
});

Here is a demo.

Upvotes: 1

Titouan de Bailleul
Titouan de Bailleul

Reputation: 12949

You can have access to Sencha Touch 2.1 with New Senchafiddle

Upvotes: 1

cclerv
cclerv

Reputation: 2969

You can try sencha playground by WalkingTree. I haven't played with it much but it seems legit.

Upvotes: 2

Related Questions