PDA

View Full Version : Having problems with Internet Explorer version 9



lopezanibal
7 Aug 2011, 1:05 PM
Hi All,


Put the following simple code to do a test on IE 9 and having problems wiht this.i
Code:

Ext.onReady(function(){
//
Ext.BLANK_IMAGE_URL = '/i/themes/ext-3.3.1/resources/images/default/s.gif';
//
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
//
Ext.QuickTips.init();
//
var simple = new Ext.form.FormPanel({
frame: true,
title: 'Register as iTMS user!',
width: 350,
height : 250,
defaults: {width: 90},
defaultType: 'textfield',
layout : 'vbox',
layoutConfig : { align : 'stretch' },
items: [ { fieldLabel: 'Title',
name: 'title',
id: 'title',
allowBlank:false
},
{ fieldLabel: 'Description',
name: 'description',
id: 'description',
allowBlank:false
}
],
buttons: [ { text: 'Save',
handler: function() {
if(simple.getForm().isValid()){
simple.getForm().getEl().dom.action = '/pls/demo/!view_http_post_flex';
simple.getForm().getEl().dom.method = 'POST';
simple.getForm().submit({
waitTitle:'Connecting',
waitMsg:'Sending data...',
success : function() {
Ext.Msg.minWidth = 140;
Ext.Msg.alert('Form Save Ok.');
},
failure:function(form, action){
if(action.failureType == 'server'){
obj = Ext.util.JSON.decode(action.response.responseText);
Ext.Msg.alert('Login Failed!', obj.errors.reason);
}else{
Ext.Msg.alert('Warning!', 'Server is unreachable : ' + action.response.responseText);
}
simple.getForm().reset();
}
})
} else {
Ext.Msg.minWidth = 150;
Ext.Msg.alert('Invalid Form', 'Some fields are invalid, please correct.');
}
}
},
{
text: 'Cancel',
handler:function() { simple.getForm().reset(); }
}
]
});
//
simple.render('usersgrid');
//
});



Error message:
SCRIPT601: Unknown runtime error. ext-all.js, line 7 character 6621 (http://www.sencha.com/forum/0) Can someone advice on this?

Thx.

Anibal

Mycoding
7 Aug 2011, 10:28 PM
Use ExtJS 3.4
In it IE 9 is supported.

In ExtJS 3.x < 3.4 IE9 is recognized as IE6

lopezanibal
8 Aug 2011, 12:16 AM
Hi All,


I have setup ExtJS version 3.4 but the problem still remains.

Any other helpfull call for this?


Thx.

Anibal

Mycoding
8 Aug 2011, 12:31 AM
Your code doesn't work an in other browsers too.
Example Chrome shows
Uncaught TypeError: Cannot read property 'dom' of null

Error occurs cause this line
simple.render('usersgrid');

I think you just post here some part of you project?
Could you be so kind to provide with workable version in other browers?

lopezanibal
8 Aug 2011, 10:32 PM
Hello All,


If i do not use the option render to it works.

But the thing is you may want to refer to a specific DIV and do the rendering.

Anyone else has a solution for this?

woozy
22 Aug 2011, 3:13 AM
Maybe you want to check this: http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/

(http://www.gljakal.com/blog/2006/02/19/unknown-runtime-error-in-internet-explorer/)