PDA

View Full Version : [SOLVED]Erreur ie 80020101



Rilax
19 Mar 2009, 2:03 AM
Hi all,
I have an application that works on FF but on Ie i have an error 80020101.
My application is a panel that autoload a form panel with 2 buttons and when we click on th buttons a window open with an autoload of an other form panel.
And Ie display the 2 buttons only when the autoload of the formpanel is on comment.
Else i have an error 80020101 !
What can i do?

Application. ( Main)


var panel = new Ext.Panel({
title:Ext.getDom('page-title').innerHTML+' - Mon compte'
,id:'pane'
,layout:'border'
,width:800
,height:700
,x: 230
,y: 50
,autoscroll:true
,floating: false
,frame: true
,tbar:[infos,activ,suppr,logout]
,renderTo:'appli'
,items:[{
region:'center',
id:'centpan',
html:'<div id="be"></div>',
autoLoad:{
url:'<?=$url ?>',
scripts:true
}
,listeners:{show:function() {
this.loadMask = new Ext.LoadMask(this.body, {
msg:'Chargement. Veuillez Patientez...'
});
}}
}]
});Form panel with 2 button


<div id='frm2'></div>
<div id='frm3'></div>
<div id='frm4'></div>
<script type="text/javascript">
Ext.BLANK_IMAGE_URL = '/images/default/s.gif';
Ext.onReady(function(){
Ext.QuickTips.init();

var sms= new Ext.Window({
id:'sm'
,title:'<? if($sms==1) echo utf8_encode('Désa');else echo 'A';?>ctivation du service: Alerte Sms'
,applyTo:'frm3'
,width:350
,height:350
//,autoLoad:{
//url:'/accueil/activ/sms',
//scripts:true,
//}

,x:410
,y:60
,closable:true
,closeAction:'hide'
,resizable:true
});

var mail= new Ext.Window({
id:'mai'
,title:'<? if($mail==1) echo utf8_encode('Désa');else echo 'A';?>ctivation du service: Alerte E-mail'
,applyTo:'frm4'
,width:350
,height:350
//,autoLoad:{
// url:'/accueil/activ/mail',
// scripts:true
// }
,x:40
,y:275
,closable:true
,closeAction:'hide'
,resizable:true
,border:false
});
var sup = new Ext.FormPanel({
labelWidth:80,
renderTo:'frm2',
frame:true,
width:250,
height:50,
monitorValid:true,
items:[{}],
buttons:[{

text:'<? if($sms==1) echo utf8_encode('Désa');else echo 'A';?>ctiver Sms',
handler:function(){
sms.show();
}
},
{
text:'<? if($mail==1) echo utf8_encode('Désa');else echo 'A';?>ctiver E-mail',
handler:function(){
mail.show();
}
}]
});
});
</script>FormPanel in a window


<div id='frmactiva<?=$i?>'></div>
<script type="text/javascript">

// Create a variable to hold our EXT Form Panel.
// Assign various config options as seen.
var act<?=$i?> = new Ext.FormPanel({
id:'frmactiv<?=$i?>',
labelWidth:80,

renderTo:'frmactiva<?=$i?>',
frame:true,
width:250,
height:90,
defaultType:'textfield',
monitorValid:true,

// Specific attributes for the text fields for username / password.
// The "name" attribute defines the name of variables sent to the server.
items:[{
fieldLabel:'Code d\'activation',
id:'<?=$i?>actif',
name:'<?=$i?>actif',
width:150,

}],

// All the magic happens after the user clicks the button
buttons:[{
text:'<?=utf8_encode($txt)?>',
formBind: true,
// Function that fires when user clicks the button
handler:function(){

act<?=$i?>.getForm().submit({
method:'POST',
waitTitle:'V&eacute;rification',
waitMsg:'Envoi des donn&eacute;es...',
url:'<?=$url1?>',


success:function(){
Ext.vg.msg('Statut', 'Alerte <?=$i.utf8_encode(' activée !')?>');


window.setTimeout("window.location = '/accueil';",2000);

},

// Failure function, see comment above re: success and failure.
// You can see here, if login fails, it throws a messagebox
// at the user telling him / her as much.

failure:function(form, action){
if(action.failureType == 'server'){
obj = Ext.util.JSON.decode(action.response.responseText);
Ext.vg.msg('Erreur !', obj.errors.reason);
}else{
Ext.vg.msg('Erreur !', obj.errors.reason);
// Ext.Msg.alert('Attention!', 'le Serveur est injoignable : ' + action.response.responseText + "abcd");
}
act<?=$i?>.getForm().reset();
}
});
}
},{
text:'<?=utf8_encode('Code Oublié?')?>',
formBind: true,
// Function that fires when user clicks the button
handler:function(){

act<?=$i?>.getForm().submit({
method:'GET',
waitTitle:'V&eacute;rification',
waitMsg:'Envoi des donn&eacute;es...',
url:'<?=$url?>',


success:function(){
Ext.vg.msg('Statut', '<?=utf8_encode('Message envoyé avec succès !')?>');

},

// Failure function, see comment above re: success and failure.
// You can see here, if login fails, it throws a messagebox
// at the user telling him / her as much.

failure:function(form, action){
if(action.failureType == 'server'){
obj = Ext.util.JSON.decode(action.response.responseText);
Ext.vg.msg('Erreur !', obj.errors.reason);
}else{
Ext.vg.msg('Erreur !', obj.errors.reason);
// Ext.Msg.alert('Attention!', 'le Serveur est injoignable : ' + action.response.responseText + "abcd");
}
act<?=$i?>.getForm().reset();
}
});
}

}]
});



</script>

Please help me...

Rilax
23 Mar 2009, 7:03 AM
Anyone to help me?

Animal
23 Mar 2009, 7:07 AM
A casual google brought up http://extjs.com/forum/showthread.php?t=22170

Animal
23 Mar 2009, 7:14 AM
And according to thie http://ajaxian.com/archives/evaling-with-ies-windowexecscript

It's just an error in the evaluated script. So take a look at the embedded script (a deprecated technique BTW)

Rilax
24 Mar 2009, 7:35 AM
Yes before post this subject i have read these 2 topics but that not solve my problem...

Rilax
9 Apr 2009, 1:07 AM
The problem was the , after scripts:true ...