PDA

View Full Version : component-loader



hudasm
2 Apr 2014, 12:01 AM
I download the extjs from http://www.sencha.com (http://www.sencha.com/), but i found the example "component-loader" could not work properly. It not load the data from html. Could anyone help me?

scottmartin
2 Apr 2014, 4:06 PM
Can you be more specific to the example you are referring to?

Do you get errors in the console?

hudasm
2 Apr 2014, 8:53 PM
the path is ExtJs\ext-4.0.7-gpl\examples\component-loader
could you help me?
Actually i check
Ext.create('Ext.window.Window', { header: false,
border: false,
id: 'myid',
width: 600,
height: 300,
loader: {
url: '404.html',
autoLoad: true,
scripts: true
}
});
also not use.
The loader function not work.

hudasm
2 Apr 2014, 8:59 PM
but the example on your website can run
http://dev.sencha.com/deploy/ext-4.0.0/examples/component-loader/component-loader.html
i don't know why? The problem is the reason of my browser?

hudasm
2 Apr 2014, 9:14 PM
I catch the error for you.

Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

Gary Schlosberg
3 Apr 2014, 3:21 AM
Sounds like a CORS issue:
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.data.Connection-cfg-cors
http://enable-cors.org/

hudasm
6 Apr 2014, 9:27 PM
Sounds like a CORS issue:
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.data.Connection-cfg-cors
http://enable-cors.org/

so how could i modify the code?