launch: function () { // Destroy the #appLoadingIndicator element Ext.fly('appLoadingIndicator').destroy(); Ext.create("Ext.tab.Panel", { fullscreen: true, tabBarPosition: "bottom", items: [ { title: 'Home', iconCls: 'home', cls: 'home', html: [ '<img src="http://staging.sencha.com/img/sencha.png" />', '<h1>Welcome to Sencha Touch</h1>', "<p>You're creating the Getting Started app. This demonstrates how ", "to use tabs, lists, and forms to create a simple app.</p>", '<h2>Sencha Touch</h2>' ].join("") }, { // the 2nd item}, {// the 3rd one}
<!DOCTYPE HTML><html manifest="" lang="en-US"><head> <meta charset="UTF-8"> <title>MySenCha</title> <style type="text/css"> /** * Example of an initial loading indicator. * It is recommended to keep this as minimal as possible to provide instant feedback * while other resources are still being loaded for the first time */ html, body { height: 100%; background-color: #1985D0; } #appLoadingIndicator { position: absolute; // many lines of generated css } } </style> <!-- The line below must be kept intact for Sencha Command to build your application --> <script type="text/javascript">(function(e){var c=e.document.head||e.document.getElementsByTagName("head")[0],b=e.Ext;if(typeof b=="undefined"){e.Ext=b={}}function d(f){document.write(f)}function a(f,g){var h=document.createElement("meta");h.setAttribute("name",f);h.setAttribute("content",g);c.appendChild(h)}b.blink=function(q){var k=q.js||[],o=q.css||[],m,n,p,h,l,g;if(navigator.userAgent.match(/IEMobile\/10\.0/)){var j=document.createElement("style");j.appendChild(document.createTextNode("@media screen and (orientation: portrait) {@-ms-viewport {width: 320px !important;}}@media screen and (orientation: landscape) {@-ms-viewport {width: 560px !important;}}"));document.getElementsByTagName("head")[0].appendChild(j)}a("viewport","width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no");a("apple-mobile-web-app-capable","yes");a("apple-touch-fullscreen","yes");b.microloaded=true;var f=window.Ext.filterPlatform=function(u){var D=false,s=navigator.userAgent,w,A;u=[].concat(u);function z(E){var i=/Mobile(\/|\s)/.test(E);return/(iPhone|iPod)/.test(E)||(!/(Silk)/.test(E)&&(/(Android)/.test(E)&&(/(Android 2)/.test(E)||i)))||(/(BlackBerry|BB)/.test(E)&&i)||/(Windows Phone)/.test(E)}function y(i){return !z(i)&&(/iPad/.test(i)||/Android|Silk/.test(i)||/(RIM Tablet OS)/.test(i)||(/MSIE 10/.test(i)&&/; Touch/.test(i)))}var r=window.location.search.substr(1),t=r.split("&"),v={},B,x;for(x=0;x<t.length;x++){var C=t[x].split("=");v[C[0]]=C[1]}B=v.platform;if(B){return u.indexOf(B)!=-1}for(w=0,A=u.length;w<A;w++){switch(u[w]){case"phone":D=z(s);break;case"tablet":D=y(s);break;case"desktop":D=!z(s)&&!y(s);break;case"ios":D=/(iPad|iPhone|iPod)/.test(s);break;case"android":D=/(Android|Silk)/.test(s);break;case"blackberry":D=/(BlackBerry|BB)/.test(s);break;case"safari":D=/Safari/.test(s)&&!(/(BlackBerry|BB)/.test(s));break;case"chrome":D=/Chrome/.test(s);break;case"ie10":D=/MSIE 10/.test(s);break;case"windows":D=/MSIE 10/.test(s)||/Trident/.test(s);break;case"tizen":D=/Tizen/.test(s);break;case"firefox":D=/Firefox/.test(s)}if(D){return true}}return false};for(m=0,n=o.length;m<n;m++){p=o[m];if(typeof p!="string"){h=p.platform;g=p.exclude;l=p.theme;p=p.path}if(h){if(!f(h)||f(g)){continue}if(!b.theme){b.theme={}}if(!b.theme.name){b.theme.name=l||"Default"}}d('<link rel="stylesheet" href="'+p+'">')}for(m=0,n=k.length;m<n;m++){p=k[m];if(typeof p!="string"){h=p.platform;g=p.exclude;p=p.path}if(h){if(!f(h)||f(g)){continue}}d('<script src="'+p+'"><\/script>')}}})(this);Ext.blink({id:"19f378b6-7681-4874-9579-87ab900c2cde",js:[{path:"cordova.js",remote:true},{path:"app.js",update:"delta"}],css:[{path:"resources/css/app.css",update:"delta"}]});</script></head><body> <div id="appLoadingIndicator"> <div></div> <div></div> <div></div> </div></body></html>(function(){var global=this,...many code more than 570000 letters, so I have to cut the m down..................if(window.scrollY!==0){window.scrollTo(0,0)}}})}}});Ext.define("Ext.viewport.WindowsPhone",{requires:[],alternateClassName:"Ext.viewport.WP",extend:Ext.viewport.Default,config:{translatable:{translationMethod:"csstransform"}},initialize:function(){var a=function(d){var c=d.srcElement.nodeName.toUpperCase(),b=["INPUT","TEXTAREA"];if(b.indexOf(c)==-1){return false}};document.body.addEventListener("onselectstart",a);this.callParent(arguments)},supportsOrientation:function(){return false},onResize:function(){this.waitUntil(function(){var c=this.windowWidth,f=this.windowHeight,e=this.getWindowWidth(),a=this.getWindowHeight(),d=this.getOrientation(),b=this.determineOrientation();return((c!==e&&f!==a)&&d!==b)},function(){var b=this.getOrientation(),a=this.determineOrientation();this.fireOrientationChangeEvent(a,b)},Ext.emptyFn,250)}});Ext.define("Ext.viewport.Viewport",{constructor:function(b){var c=Ext.os.name,d,a;switch(c){case"Android":d=(Ext.browser.name=="ChromeMobile")?"Default":"Android";break;case"iOS":d="Ios";break;case"Windows":d=(Ext.browser.name=="IE")?"WindowsPhone":"Default";break;case"WindowsPhone":d="WindowsPhone";break;default:d="Default";break}a=Ext.create("Ext.viewport."+d,b);return a}});Ext.define("MySenCha.view.Main",{extend:Ext.tab.Panel,xtype:"main",config:{tabBarPosition:"bottom",items:[{title:"My Home",iconCls:"home",styleHtmlContent:true,scrollable:true,items:{docked:"top",xtype:"titlebar",title:"Welcome to Sencha Touch 2"},html:["You've just generated a new Sencha Touch 2 project. What you're looking at right now is the ","contents of <a target='_blank' href=\"app/view/Main.js\">app/view/Main.js</a> - edit that file ","and refresh to change what's rendered here."].join("")},{title:"Get Started",iconCls:"action",items:[{docked:"top",xtype:"titlebar",title:"Getting Started"},{xtype:"video",url:"http://av.vimeo.com/64284/137/87347327.mp4?token=1330978144_f9b698fea38cd408d52a2393240c896c",posterUrl:"http://b.vimeocdn.com/ts/261/062/261062119_640.jpg"}]}]}});Ext.application({name:"MySenCha",views:["Main"],icon:{"57":"resources/icons/Icon.png","72":"resources/icons/Icon~ipad.png","114":"resources/icons/Ic...@2x.png","144":"resources/icons/Icon~ip...@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(){Ext.fly("appLoadingIndicator").destroy();Ext.create("Ext.tab.Panel",{fullscreen:true,tabBarPosition:"bottom",items:[{title:"Home",iconCls:"home",cls:"home",html:['<img src="http://staging.sencha.com/img/sencha.png" />',"<h1>Welcome to Sencha Touch</h1>","<p>You're creating the Getting Started app. This demonstrates how ","to use tabs, lists, and forms to create a simple app.</p>","<h2>Sencha Touch</h2>"].join("")},{xtype:"nestedlist",title:"Blog",iconCls:"star",displayField:"title",store:{type:"tree",fields:["title","link","author","contentSnippet","content",{name:"leaf",defaultValue:true}],root:{leaf:false},proxy:{type:"jsonp",url:"https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://feeds.feedburner.com/SenchaBlog",reader:{type:"json",rootProperty:"responseData.feed.entries"}}},detailCard:{xtype:"panel",scrollable:true,styleHtmlContent:true},listeners:{itemtap:function(e,d,a,c,b){this.getDetailCard().setHtml(b.get("content"))}}},{title:"Contact",iconCls:"user",xtype:"formpanel",url:"contact.php",layout:"vbox",items:[{xtype:"fieldset",title:"Contact Us",instructions:"(email address is optional)",height:285,items:[{xtype:"textfield",label:"Name"},{xtype:"emailfield",label:"Email"},{xtype:"textareafield",label:"Message"}]},{xtype:"button",text:"Send",ui:"confirm",handler:function(){this.up("formpanel").submit()}}]}]})},onUpdated:function(){Ext.Msg.confirm("Application Update","This application has just successfully been updated to the latest version. Reload now?",function(a){if(a==="yes"){window.location.reload()}})}});F:\Workplace\MySenCha\cordova>cordova platform add wp8
Checking wp8 requirements...
Creating wp8 project...
platformRoot = C:\Users\franv_000\.cordova\lib\wp\cordova\3.4.0\wp8
repoRoot = C:\Users\franv_000\.cordova\lib\wp\cordova\3.4.0
Creating Cordova-WP8 Project:
App Name : MySenCha
Namespace : com.wintech.MySenCha
Path : F:\Workplace\MySenCha\cordova\platforms\wp8
CREATE SUCCESS : F:\Workplace\MySenCha\cordova\platforms\wp8
Preparing wp8 project
[TypeError: undefined is not a function]F:\Workplace\MySenCha\cordova>cordova run wp8
Preparing wp8 project
[TypeError: undefined is not a function]
Running command: cmd args=["/c","F:\\Workplace\\MySenCha\\cordova\\platforms\\wp8\\cordova\\run"]
WARNING: [ --target=<ID> | --emulator | --device ] not specified, defaulting to --emulator
WARNING: [ --debug | --release | --nobuild ] not specified, defaulting to --debug.
Cleaning cordova project...
Building Cordova-WP8 Project:
Configuration : Debug
Directory : F:\Workplace\MySenCha\cordova\platforms\wp8
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MySenCha -> F:\Workplace\MySenCha\cordova\platforms\wp8\Bin\Debug\com.wintech.MySenCha.dll
Begin application manifest generation
Application manifest generation completed successfully
Begin Xap packaging
BUILD SUCCESS.
CordovaDeploy.exe not found, attempting to build CordovaDeploy.exe...
Microsoft (R) Build Engine version 4.0.30319.33440
[Microsoft .NET Framework, version 4.0.30319.34011]
Copyright (C) Microsoft Corporation. All rights reserved.
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 3/14/2014 12:54:08 AM.
Project "F:\Workplace\MySenCha\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
Building solution configuration "Debug|x86".
Project "F:\Workplace\MySenCha\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy.sln" (1) is building "F:\Workplace\MySenCha\cordova\platforms\wp8\c
ordova\lib\CordovaDeploy\CordovaDeploy\CordovaDeploy.csproj" (2) on node 1 (default targets).
PrepareForBuild:
Creating directory "bin\Debug\".
Creating directory "obj\x86\Debug\".
ResolveAssemblyReferences:
Consider app.config remapping of assembly "Microsoft.SmartDevice.Connectivity, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "10.0.0.0" [C:\W
INDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.SmartDevice.Connectivity\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.SmartDevice.Connectivity.dll] to Version "11
.0.0.0" [C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Smartdevice.Connectivity\v4.0_11.0.0.0__b03f5f7f11d50a3a\Microsoft.Smartdevice.Connectivity.dll] t
o solve conflict and get rid of warning.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3247: Found conflicts between different versions of the same dependen
t assembly. [F:\Workplace\MySenCha\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy\CordovaDeploy.csproj]
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /platform:x86 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /ma
in:CordovaDeploy.DeployTool /highentropyva+ /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Microsoft.CSharp.dll"
/reference:C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Smartdevice.Connectivity\v4.0_11.0.0.0__b03f5f7f11d50a3a\Microsoft.Smartdevice.Connectivity.dll
/reference:C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Smartdevice.Connectivity.Interface\v4.0_11.0.0.0__b03f5f7f11d50a3a\Microsoft.Smartdevice.Connec
tivity.Interface.dll /reference:C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Smartdevice.MultiTargeting.Connectivity\v4.0_11.0.0.0__b03f5f7f11d50a3a\Mic
rosoft.Smartdevice.MultiTargeting.Connectivity.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll"
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Ass
emblies\Microsoft\Framework\.NETFramework\v4.5\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.N
ETFramework\v4.5\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.dll" /reference:"C:\Prog
ram Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Fr
amework\.NETFramework\v4.5\System.Xml.Linq.dll" /debug+ /debug:full /filealign:512 /optimize- /out:obj\x86\Debug\CordovaDeploy.exe /subsystemversion:6.00 /targe
t:exe /utf8output Program.cs Properties\AssemblyInfo.cs "C:\Users\franv_000\AppData\Local\Temp\.NETFramework,Version=v4.5.AssemblyAttributes.cs"
Program.cs(284,46): warning CS0168: The variable 'ex' is declared but never used [F:\Workplace\MySenCha\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaD
eploy\CordovaDeploy.csproj]
_CopyAppConfigFile:
Copying file from "app.config" to "bin\Debug\CordovaDeploy.exe.config".
CopyFilesToOutputDirectory:
Copying file from "obj\x86\Debug\CordovaDeploy.exe" to "bin\Debug\CordovaDeploy.exe".
CordovaDeploy -> F:\Workplace\MySenCha\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy\bin\Debug\CordovaDeploy.exe
Copying file from "obj\x86\Debug\CordovaDeploy.pdb" to "bin\Debug\CordovaDeploy.pdb".
Done Building Project "F:\Workplace\MySenCha\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy\CordovaDeploy.csproj" (default targets).
Done Building Project "F:\Workplace\MySenCha\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy.sln" (default targets).
Build succeeded.
"F:\Workplace\MySenCha\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy.sln" (default target) (1) ->
"F:\Workplace\MySenCha\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy\CordovaDeploy.csproj" (default target) (2) ->
(ResolveAssemblyReferences target) ->
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3247: Found conflicts between different versions of the same depend
ent assembly. [F:\Workplace\MySenCha\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy\CordovaDeploy.csproj]
"F:\Workplace\MySenCha\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy.sln" (default target) (1) ->
"F:\Workplace\MySenCha\cordova\platforms\wp8\cordova\lib\CordovaDeploy\CordovaDeploy\CordovaDeploy.csproj" (default target) (2) ->
(CoreCompile target) ->
Program.cs(284,46): warning CS0168: The variable 'ex' is declared but never used [F:\Workplace\MySenCha\cordova\platforms\wp8\cordova\lib\CordovaDeploy\Cordov
aDeploy\CordovaDeploy.csproj]
2 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.29
CordovaDeploy.exe compiled, SUCCESS.
Deploying to emulator ...
Connecting to device :: 5E7661DF-D928-40ff-B747-A4B1957194F9 : Emulator WVGA 512MB
Installing app on Emulator WVGA 512MB
Launching app on Emulator WVGA 512MB
The system cannot find the file specified.Hello???? Can someone help please???????
Anyone anyone please!~~~~ help