PDA

View Full Version : win.show error on IE



AWCI
17 Jun 2009, 11:08 AM
Hi everyBody,




Ext.onReady(function(){

Ext.QuickTips.init();
Ext.form.Field.prototype.msgTarget = 'side';

var calismayili = new Ext.form.ComboBox({
store:yilData
,width:150
,typeAhead: true
,forceSelection: true
,triggerAction:'all'
,mode:'local'
,selectonFocus:true
,name:'YIL'
,allowBlank :false
,valueField:'calismayili_ID'
,displayField:'calismayili_YIL'
,emptyText:'Y?l? Seçiniz'
,id:'calisma_YILI'
,hiddenName:'YILI'
,editable:false
});

win=new Ext.Window({
width:250
,height:100
,title:'Çal??ma Y?l?n? Seçiniz'
,frame:true
,border:true
,items:calismayili
,buttons: [{
text: 'Tamam'
,handler: function(){
alert('bla bla bla');
}
}]
});
yilData.load(); //on data.js
win.show();
});


its give a Error like this (On IE)



Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)
Timestamp: Wed, 17 Jun 2009 19:01:59 UTC


Message: Object doesn't support this property or method
Line: 8
Char: 1754
Code: 0
URI: http://localhost/js/ext-all.js
How I can Solve this error help me please

hendricd
17 Jun 2009, 2:14 PM
Wait until the Window and the combo is rendered, then load it.

and, where is the store defined?

AWCI
18 Jun 2009, 12:17 AM
Wait until the Window and the combo is rendered, then load it.

and, where is the store defined?
I clear all configure and I try again
like this


Ext.onReady(function(){
Ext.QuickTips.init();
var win=new Ext.Window({
title:'Try'
,width:250
,height:150
});
win.show();
});

IT's give same error in IE


And Data is in another js file which one is loaded before this file.

hendricd
18 Jun 2009, 3:32 AM
@AWCI -- use ext-all-debug.js instead to see what it's trying to do when it fails.

AWCI
18 Jun 2009, 6:21 AM
I use ext-all-debug but its give same error again on line 156 like this

Error Object doesn't support this property or method

156 : range = el.ownerDocument.createRange();

AWCI
18 Jun 2009, 7:51 AM
When I write any text on html file before load ext-all.js its give error. I clear html file then error is going out.


Thanks for all..

hendricd
18 Jun 2009, 10:30 AM
By chance, is your Ext page running in an IFRAME/FRAMESET?