-
20 Apr 2010 7:01 AM #1
Ext.Window problem: javascript not executing
Ext.Window problem: javascript not executing
Hi, I have the following problem:
I have a page (index.jsp) which has the following function:
After this, I have a window shown, but nothing inside, but the plain html (the scripts inside ping.jsp do not execute).Code:var win = new Ext.Window({ title:'My Title' ,width : 200 ,height : 200 ,plain : true ,autoLoad: {url: 'ping,jsp', scripts: true} }); win.show();
How do I fix this?
Here is the code of ping.jsp
NOTE: I haven't included extjs in ping.jsp because it is already included in index.jsp but it doesn't work in any case.HTML Code:<html> <head> <title>Ping</title> <script src="javascript/pinginit.js" type="text/javascript"> </script> </head> <body> blalbalbalbalbalbalblablbal </body> </html>
-
20 Apr 2010 7:26 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,167
- Vote Rating
- 29
autoload is meant to load fragments, not entire pages.

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
20 Apr 2010 7:44 AM #3
Thanks, I did it a bit clumsily, with an iframe, but for now it will do.


Reply With Quote