Erreur sous Netscape et pas sous IE

simsas Messages postés 3 Date d'inscription mardi 2 mars 2004 Statut Membre Dernière intervention 2 mars 2004 - 2 mars 2004 à 09:14
cs_bultez Messages postés 13616 Date d'inscription jeudi 13 février 2003 Statut Membre Dernière intervention 15 octobre 2013 - 2 mars 2004 à 12:59
Voici les erreurs javascript que j'ai lorsque je clic sur le bouton
Rechercher(voir ci dessous <!-- RECHERCHE --> dans left.asp)

Sous ie 6 cela fonctionne très bien.
Sous netscape pas du tout

Error: parent.parent.frames.topFrame.Layer2 has no properties
Source File: http://antares/enot/cat_tools/actveakt/content_2/left.asp
Line: 43

Error: top.BottomFrame.leftFrame.LISTE has no properties
Source File: http://antares/enot/cat_tools/actveakt/content_2/top.asp
Line: 119

J'ai l'impression que ce code fonctionne sous ie 6 car celui-ci fait
des racourcis que Netscape n'autorise pas.

Si quelqu'un peut m'aider, je lui en serais très reconnaissant.

Alex.

Voir code ci-dessous.

################################################################################
Voici le code de ma page de départ: frame.asp
################################################################################

<html>
<head>
<title>FRNB</title>
<meta http-equiv= "Content-Type" content="text/html;
charset=iso-8859-1">
<NOSCRIPT><meta http-equiv="refresh"
content="0;URL=nojava.htm"></NOSCRIPT>
</head>
<frameset rows="125,*" frameborder="10" border="0" framespacing="0"
cols="*">
<frame name="topFrame" src="top.asp" marginwidth="0"
marginheight="0" >
<frame name="BottomFrame" src="bas.asp" marginwidth="0"
marginheight="0" >
</frameset>

<noframes>


</noframes>
</html>

################################################################################
Voici le code de la page : bas.asp
################################################################################

<html>
<head>
<title>FRNB</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script language="JavaScript" src="noframe.js"></script>
</head>

<frameset cols="60%,*" border="10" framespacing="0" frameborder="0">
<frame name="leftFrame" src="left.asp" scrolling="yes">
<frame name="rightFrame" src="right.asp" scrolling="yes">
</frameset>

<noframes>

</noframes>

</html>

################################################################################
Voici le code de la page : top.asp
################################################################################

<html>
<head>
<title>default</title>
<meta http-equiv ="Content-Type" content="text/html;
charset=iso-8859-1">
<link rel="stylesheet" href="../../../css/general.css"
type="text/css">
<!-- script language="JavaScript" src="noframe.js"></script -->
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i[# _over.gif',1)"
onClick="OuvrirPopup('complet.asp')">.gif" width="136"
height="19" border="0">]
<!-- CONFIRMER UN -->
_over.gif',1)"
src="../images2/confirmer<%=session("sLangue")%>.gif" width="133"
height="19" border="0" onclick="EtapeSuivante();">
<!-- CONFIRMER DEUX : document final -->
_over.gif',1)"
src="../images2/confirmer<%=session("sLangue")%>.gif" width="133"
height="19" border="0" onclick="DocumentFinal();">
<!-- EFFACER -->
_over.gif',1)"
src="../images2/effacer<%=session("sLangue")%>.gif" width="128"
height="19" border="0" onclick="EffacerSelection();">
<!-- MODIFIER -->
_over.gif',1)"
src="../images2/modifier<%=session("sLangue")%>.gif" width="128"
height="19" border="0" onclick="ModifierSelection();">
<!-- LANGUE -->
<%

%>
<!-- AIDE -->
[# _over.gif',1)"
onClick="OuvrirPopup('aide_<%=session("sLangue")%>.asp')">.gif" width="49"
height="19" border="0">]
<!-- REAGIR -->
[# _over.gif',1)"
onclick="window.open('../../../cat_eloket/koopakte.asp','reagir','top='+((screen.height-500)/2)+',left='+((screen.width-750)/2)+',width='+750+',height='+500+',scrollbars=yes,resizable=yes,menubar=yes');">.gif" width="62"
height="19" border="0">]
<!-- RECHERCHE -->
[# _over.gif',1)">.gif"
width="80" height="19" border="0">]
<script language="JavaScript">

function AvecRech() {
// alert('ici');
var sTest = top.BottomFrame.leftFrame.location.href;
// alert(sTest.indexOf("left"));
if ( sTest.indexOf("left")>=0 ) {
top.BottomFrame.leftFrame.LISTE.action="summary.asp?retour=framerecherche";
top.BottomFrame.leftFrame.LISTE.submit();
}
else {top.location.href="framerecherche.asp";}
//alert('ici 2 ');

}
</script>

</html>

################################################################################
Voici le code de la page : left.asp
################################################################################

<html>
<head>
<meta http-equiv=Content-Type content="text/html;
charset=windows-1252">
<title>FRNB</title>
<link rel="stylesheet" href="styles.css" type="text/css">
<link rel="stylesheet" href="liste.css" type="text/css">
<script language="JavaScript" src="noframe.js"></script>
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array;
for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc)
x.oSrc=x.src; x.src=a[i+2];}
}

function ViderForm() {
for (i = 0; i < document.LISTE.length; i++) {
if (document.LISTE.elements[i].type=="checkbox") {
document.LISTE.elements[i].checked = false;
}
}
}

function Visible() {
//parent.rightFrame.location='right.asp';
parent.frames['rightFrame'].location='right.asp';
//parent.parent.frames['topFrame'].Layer1.style.visibility =
"visible";
parent.parent.frames['topFrame'].Layer2.style.visibility = "visible";
parent.parent.frames['topFrame'].Layer4.style.visibility = "hidden";
parent.parent.frames['topFrame'].Layer5.style.visibility = "hidden";
}
function NonVisible() {
//parent.parent.topFrame.Layer1.style.visibility = "hidden";
//parent.parent.topFrame.Layer2.style.visibility = "hidden";
}

//-->
</script>

</head>
_over.gif')">
<form name="LISTE" method="post" action="summary.asp">

<%
response.Write("test")
%>
.gif" width="141"
height="26" border="0"
onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('ImgConfirmer','','../images/confirmer2<%=session("sLangue")%>_over.gif',1)"
onclick="document.LISTE.submit();">


</form>

</html>

1 réponse

cs_bultez Messages postés 13616 Date d'inscription jeudi 13 février 2003 Statut Membre Dernière intervention 15 octobre 2013 30
2 mars 2004 à 12:59
Bonjour

1° forum javascript, pas asp.
2° lignes en erreur lesquelles ?
car ces lignes resultent de asp non?
et on se sait pas donc.
3° source beaucoup trop longue pour
qu'on soit tenté de regarder
(enfin je parle pour moi)
4° syntaxe javascript sous IE ou
sous Mozilla,Netscape différente

Cordialement. Bul.
0
Rejoignez-nous