PDA

View Full Version : i got a problem here



fastwings
7 Apr 2008, 7:11 AM
i got a problem its give me ERROR

var KopixAdmin = Class.create({
//initialize: function() {},

init: function () {
this.BuildFrame();
//this.Display();
//this.BuildTab();
},
loginFrm: new Ext.FormPanel(),
win: new Ext.Window(),
BuildFrame: function() {
this.win = new Ext.Window({
layout:'fit',
width:300,
height:150,
closable: false,
resizable: false,
plain: true,
items: [this.BuildForm()] ,
applyTo: document.body
});
},
BuildForm: function() {
this.loginFrm = new Ext.FormPanel({
labelWidth:80,
url:'login.asp',
frame:true,
title:'Please Login',
width:230,
padding:200,
defaultType:'textfield',
monitorValid:true,
items:[{
fieldLabel:'Username',
name:'loginUsername',
allowBlank:false
},
{
fieldLabel:'Password',
name:'loginPassword',
inputType:'password',
allowBlank:false
}] ,
buttons:[{
text:'Login',
// formBind: true,
handler:this.LoginHandler()
}]
});
},
LoginHandler: function () {
this.loginFrm.getForm().submit({
method:'POST',
waitTitle:'Connecting',
waitMsg:'Sending data...',
success: this.LoginSuccess(),
failure: this.LoginFailure()
});

},
LoginSuccess: function () {
},
LoginFailure: function () {
}
});
the error:
i got only prossess that waiting and a bar
and in the ie only (not display in firebug) i get this error
'this.form.el.dom' is null and not a object


so my question why i dont see the login form
here
thx in advence to all helpers

fastwings
7 Apr 2008, 11:33 PM
any one??
btw ppl the error i revice from at i dont know what do with at
its this error
comp has no properties

chrome://firebug/content/blank.gif }else if(!comp.events){

devnull
8 Apr 2008, 3:56 PM
Have you looked at some of the threads on debugging javascript in IE? that should at least let you see where the problem is actually ocurring.
That also looks like a limited subset of your code, and it is difficult to say if that is where the problem even is. Something that seems odd to me right off is using 'applyTo: document.body' with Ext.window...