Bonjour,
J'espère que je suis dans le bon forum.
Je me trouve confronté à une erreur du genre
Erreur : uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMJSWindow.open]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://192.168.0.31/educ/admin/cplanning.asp :: appelplanning :: line 114" data: no]
J'y perds mon latin, car la fonction appelée marche une fois sur deux.
Je ne sais pas si vous pourriez m'aider ..
Ceci dit, je n'ai pas de soucis avec d'autres navigateurs.
uncaught exception ??
Voici le bout de code..
var InternetExplorer=isMsie();
function modifplanning(indice,jour,heure){
info=document.getElementById("V"+jour+"H"+heure).value;
tabInfo=info.split("#");
details=tabInfo[indice-1].split(",");
appelplanning(jour,heure,details[1],details[2],details[3],details[4],indice);
}
function ajoutplanning(jour,heure,gp,se,ma,p){
if (document.getElementById("C1J"+jour+"H"+heure).style.backgroundColor==''){
indice=1;
}else{
indice=document.getElementById("CLJ"+jour+"H"+heure).colSpan+1;
}
appelplanning(jour,heure,gp,se,mt,pf,indice);
}
function appelplanning(jour,heure,gp,se,mt,pf,indice){
if (InternetExplorer){
features=resizable:no;scroll:no;status:yes;center:yes;help:no;dialogWidth:548px;dialogHeight:172px;;
var retour=window.showModalDialog('popupclasseplanning.asp?sid=<%=sid%>&jj='+jour+'&hh='+heure+'&gp='+gp+'&se='+se+'&mt='+mt+'&pf='+pf+'&indice='+indice,window,features);
if (retour!=null){
affectation(retour[0],retour[1],retour[2],retour[3],retour[4],retour[5],retour[6],retour[7],retour[8]);
}
}else{
x=parseInt(screen.width/2.0)-(270);
y=parseInt(screen.height/2.0)-(124);
features="top="+y+",left="+x+"scrollbars=no,dialog=yes,minimizable=no,modal=yes,width=540,height=128,resisable=no";
var win=window.open('popupclasseplanning.aspsid=<%=sid%>&jj='+jour+'&hh='+heure+'&gp='+gp+'&se='+se+'&mt='+mt+'&pf='+pf+'&indice='+indice,'plan',features)
win.focus();
}
return true;
}
Je ne sais pas, si c'est parlant
Merci d'avance
var InternetExplorer=isMsie();
function modifplanning(indice,jour,heure){
info=document.getElementById("V"+jour+"H"+heure).value;
tabInfo=info.split("#");
details=tabInfo[indice-1].split(",");
appelplanning(jour,heure,details[1],details[2],details[3],details[4],indice);
}
function ajoutplanning(jour,heure,gp,se,ma,p){
if (document.getElementById("C1J"+jour+"H"+heure).style.backgroundColor==''){
indice=1;
}else{
indice=document.getElementById("CLJ"+jour+"H"+heure).colSpan+1;
}
appelplanning(jour,heure,gp,se,mt,pf,indice);
}
function appelplanning(jour,heure,gp,se,mt,pf,indice){
if (InternetExplorer){
features=resizable:no;scroll:no;status:yes;center:yes;help:no;dialogWidth:548px;dialogHeight:172px;;
var retour=window.showModalDialog('popupclasseplanning.asp?sid=<%=sid%>&jj='+jour+'&hh='+heure+'&gp='+gp+'&se='+se+'&mt='+mt+'&pf='+pf+'&indice='+indice,window,features);
if (retour!=null){
affectation(retour[0],retour[1],retour[2],retour[3],retour[4],retour[5],retour[6],retour[7],retour[8]);
}
}else{
x=parseInt(screen.width/2.0)-(270);
y=parseInt(screen.height/2.0)-(124);
features="top="+y+",left="+x+"scrollbars=no,dialog=yes,minimizable=no,modal=yes,width=540,height=128,resisable=no";
var win=window.open('popupclasseplanning.aspsid=<%=sid%>&jj='+jour+'&hh='+heure+'&gp='+gp+'&se='+se+'&mt='+mt+'&pf='+pf+'&indice='+indice,'plan',features)
win.focus();
}
return true;
}
Je ne sais pas, si c'est parlant

Merci d'avance
resizable avec un 'z'netsunset a écrit :features="top="+y+",left="+x+"scrollbars=no,dialog=yes,minimizable=no,modal=yes,width=540,height=128,resisable=no";

Il ne manquerait pas un point d'interrogation après "asp" ?var win=window.open('popupclasseplanning.aspsid=<%=sid%>&jj='+jour+'&hh='+heure+'&gp='+gp+'&se='+se+'&mt='+mt+'&pf='+pf+'&indice='+indice,'plan',features)
Je ne sais pas si ça suffira pour réparer mais ça éliminera en tout cas certaines erreurs.
Qui est en ligne ?
Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 2 invités