-
27 Nov 2012 6:56 AM #1
webdesktop and load window issue
webdesktop and load window issue
having some issues with the webdesktop example.
I am trying to link my independent running page within the webdesktop example and getting an error.
Error isMy window create and load code isCode:TypeError: c is null
and my app.html file only loads app.js which isCode:createWindow : function(ttl,src){ var desktop = this.app.getDesktop(); var win = desktop.getWindow('bogus'+src.windowId); if(!win){ win = desktop.createWindow({ id: 'bogus'+src.windowId, title:ttl, width:640, height:480, //html : '<p>Something useful would be in here.</p>', iconCls: 'bogus', animCollapse:false, //autoLoad: src, loader : { url : '/modules/app.html', loadMask : true, scripts: true, autoLoad : true, // important renderer : 'html', // this is also the default option, other options are data | component success: function(el,response,opts) { //your logic here }, failure:function(el,response,opts) { // your logical statements here } }, constrainHeader:true }); } win.show(); return win; }
Code:/* * File: app.js * * This file was generated by Sencha Architect version 2.1.0. * http://www.sencha.com/products/architect/ * * This file requires use of the Ext JS 4.1.x library, under independent license. * License of Sencha Architect does not include license for Ext JS 4.1.x. For more * details see http://www.sencha.com/license or contact license@sencha.com. * * This file will be auto-generated each and everytime you save your project. * * Do NOT hand edit this file. */ Ext.Loader.setConfig({ enabled: true }); Ext.application({ models: [ 'Model_Parts' ], stores: [ 'MyJsonStore' ], views: [ 'GridPanel' ], autoCreateViewport: true, name: 'MyApp' });
-
29 Nov 2012 1:04 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
So where is the error being thrown and from what piece of code?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
3 Dec 2012 7:48 AM #3
my app.html is loading fine in a separate window, but breaking when I linked within my webdesktop window.
I posted my codes and error above.
I guess the question is how do I link my app.html within webdesktop as the following codes are breaking.
error isCode:loader: { url: '/modules/app.html', loadMask: true, scripts: true, autoLoad: true, // important renderer: 'html', // this is also the default option, other options are data | component success: function (el, response, opts) { //your logic here }, failure: function (el, response, opts) { // your logical statements here } },
Again when I type the address in url with http://192.168.1.155/modules/app.htmlCode:TypeError: c is null
it loads fine, but not with loader
any help would greatly appreciated.
-
4 Feb 2013 6:46 AM #4
i had the same problem, some how my store initializing was corrupted.
When i opened my app.js, in de stores section, there was a unknown store loaded.
After removing the line everything works fine.
So I suggest to check the app.js file.
Good luck!
-
4 Feb 2013 7:04 AM #5
-
4 Feb 2013 7:09 AM #6
I did modified the app.js of the module.
Maybe you can check if the number of Stores in de /store directory
is the same as the number you declared in the stores: [ ] section.
This should be exactly the same.


Reply With Quote