View Full Version : Ext.onReady is not called

20 Aug 2012, 11:42 PM

I have a very urgent problem. Please help!!!

Normally Ext.onReady is called in my local PC but when I copy my code to another PC the Ext.onReady is not called any more. I dont know what is the proble. May be I miss files or references?

Thank you

21 Aug 2012, 2:41 PM
How are you determining this? Do you receive any errors in the console?
Are you minimizing your code on the other PC?

If you create a simply hello world app with a panel, does it work?
Is Ext installed on the other PC? (or included with your app)

You will need to provide more details.


22 Aug 2012, 12:55 AM
Thanks Scott. I found the reason.

It's because Ext automatically add ext-all.js whild I had added ext-all-debug.js in the page.
=> The problem happens when there are 2 js file

Thank you

14 Jul 2013, 11:24 PM
I'm having the same issues.
My jsp worked with extJS 3.4 and now I'm trying to upgrade to 4.x

I included (note the we also work with prototype, can it cause the issue?):

<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/SYSTEM/resources/js/extJS_/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/USER/resources/themes/Jacada/style.css" />

<script type="text/javascript" src="<%=request.getContextPath()%>/SYSTEM/resources/js/prototype.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/SYSTEM/resources/js/extJS_/ext-debug.js"></script>


// Build The Layout //
var request = new Ajax.Request('SYSTEM/portlets/layoutManager/loadLayout.jsp', {method: 'get', asynchronous : false});
if (request.success()) {
// convert the string to an XML object
var layout = eval("(" + request.transport.responseText + ")");
$W().workspaceUI = Ext.create('Jacada.ui.user.WorkSpaceUI', layout);
else {
alert('failed to load layout');

But I don't see the alert nor the UI.
Can you give me some direction here?

15 Jul 2013, 3:04 AM
it appears that onReady is not invoked when inside .jsp.
I moved it to index.js and I include index.js in my jsp.