Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>0.- In your Fiddle you are using ExtJs as your Framework instead of Sencha Touch.</p> <p>1.- You were trying to use <code>'bolao.view.Main'</code> when it was never declared.</p> <p>2.- <code>Ext.fly('appLoadingIndicator').destroy();</code> Is having trouble inside Fiddle but not when used normally in your server.</p> <p>3.- Even with this changes I can't manage to see it in Chrome, but I do see it in FireFox.</p> <p>4.- Try this code in your Fiddle and then deploy it to your Apache or whatever server you are using.</p> <p>5.- Don't use Fiddle for learning purposes (though it is cool for showing code).</p> <p>6.- I recommend you to follow this tutorial <a href="http://docs.sencha.com/touch/2.3.1/#!/guide/first_app" rel="nofollow">http://docs.sencha.com/touch/2.3.1/#!/guide/first_app</a> </p> <p>Code:</p> <pre><code>Ext.application({ name: 'bolao', requires: [ 'Ext.MessageBox' ], views: [ 'Main' ], icon: { '57': 'resources/icons/Icon.png', '72': 'resources/icons/Icon~ipad.png', '114': 'resources/icons/Icon@2x.png', '144': 'resources/icons/Icon~ipad@2x.png' }, isIconPrecomposed: true, startupImage: { '320x460': 'resources/startup/320x460.jpg', '640x920': 'resources/startup/640x920.png', '768x1004': 'resources/startup/768x1004.png', '748x1024': 'resources/startup/748x1024.png', '1536x2008': 'resources/startup/1536x2008.png', '1496x2048': 'resources/startup/1496x2048.png' }, launch: function() { // Destroy the #appLoadingIndicator element //Ext.fly('appLoadingIndicator').destroy(); this line is having problems in Fiddle I think 'cos in my local server does work fine // Initialize the main view //Ext.Viewport.add(Ext.create('bolao.view.Main')); this view ('bolao.view.Main') is never defined Ext.Viewport.add(Ext.create('Ext.tab.Panel')); }, onUpdated: function() { Ext.Msg.confirm( "Application Update", "This application has just successfully been updated to the latest version. Reload now?", function(buttonId) { if (buttonId === 'yes') { window.location.reload(); } } ); } }); </code></pre> <p>Best regards @code4jhon</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload