IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

JavaScript Discussion :

Fonction qui marchait sous IE6 et qui plante sous IE8


Sujet :

JavaScript

  1. #1
    Futur Membre du Club
    Femme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juillet 2012
    Messages
    16
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Conseil

    Informations forums :
    Inscription : Juillet 2012
    Messages : 16
    Points : 9
    Points
    9
    Par défaut Fonction qui marchait sous IE6 et qui plante sous IE8
    Bonjour,

    Je maintiens une application web avec de l'asp, des dll de traitement en VB6 qui lancent (entre autres), des fonctions Java-script. Les traitements en VB6 et Java-script étaient développés sous WindowsXP, IE6 et office 2003. J'effectue une migration pour passer sous IE8 et Office 2010.

    Les scripts en Java-scripts qui marchaient très bien avant, plantent au lancement de l'application.

    J'ai un message d'erreur :
    "erreur de page web"
    "line: 215
    Erreur : Objet attendu"




    Je ne connais pas du tout le java-script et j'aurais besoin de votre aide.



    Côté VB6, la fonction qui plante est appelée comme suit (enrobée dans du html) :

    href="javascript:ClickBouton('ActionRootSelectionner');"

    Voici le code de la fonction java-script que j'ai mis dans le fichier en dessous :

    ClickBouton.txt


    Est-ce quelqu'un peut me dire ce qui cloche dans cette fonction ?

    Je vous remercie vivement

  2. #2
    Membre émérite
    Avatar de Kaamo
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    1 165
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 1 165
    Points : 2 778
    Points
    2 778
    Par défaut
    Bonjour,

    Ne pas mettre l'action JavaScript sur le href du lien, mais sur le onclick, par exemple :
    Code javascript : Sélectionner tout - Visualiser dans une fenêtre à part
    <a href="#" onclick="ClickBouton('ActionRootSelectionner')">Lien</a>

    Qu'y a t il à la ligne 215 de la page web générée ?

    - Vu l'erreur, je pense plutôt à un objet mal formé avec une virgule de fin provoquant ainsi l'erreur.
    Mauvais objet qui pourrait provoquer l'erreur sous IE8:
    Code javascript : Sélectionner tout - Visualiser dans une fenêtre à part
    var objetErreur = { prop1: 'val1', prop2: 'val2', }; // "trailing comma" ! (

    - Ou alors ... Y aurait-il quelque part un <script type="application/javascript"> ? Il faut mettre plutôt <script type="text/javascript"> (si le DOCTYPE n'est pas HTML5). Sinon tout simplement <script> en HTML5.

    Je n'ai pas saisi ce que VB6 venait faire dans ce problème ?
    ps : on écrit, conventionnellement, JavaScript.

  3. #3
    Futur Membre du Club
    Femme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juillet 2012
    Messages
    16
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Conseil

    Informations forums :
    Inscription : Juillet 2012
    Messages : 16
    Points : 9
    Points
    9
    Par défaut
    Bonjour et merci pour ta réponse.

    En fait, c'est du code VB6 qui génère du code html qui fait lui-même appel à du javaScript.

    J'ai modifié le premier appel, comme indiqué en premier dans ta réponse, j'ai toujours la même erreur au même endroit. Je n'ai pas encore trouvé le code VB qui fait les autres appels à "ClickBouton".

    Voici la page HTML générée par VB (et qui plante) :

    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    </td>
    <td><a  id="btnOPA" href="#" "onclick:ClickBouton('ActionRootSelectionner');" onfocus="GererBtnEnCours(document.all.btnOPA_T);" onblur="ChangeCouleurBtn(document.all.btnOPA_T,'N');"><table class=txt id="btnOPA_T" cellspacing=0 cellpadding=0 style="cursor:hand" onmouseover="ChangeCouleurBtn(this,'S')" onmouseout="ChangeCouleurBtn(this,'N')" lockSurvol="N" btnCible="btnOPA" onclick="javascript:ClickBouton('ActionRootSelectionner');" title="Ouvrir à partir de ce point d'entrée" ><tr><td style="background-image:url(BGN.gif)"><img BORDER="0" src="x.gif" height=21 width=14></td><td nowrap style="background-image:url(BCN.gif)"><b>Ouvrir</b></td><td style="background-image:url(BDN.gif)"><img BORDER="0" src="x.gif" height=21 width=14></td></tr></table></a>
    <script>
        gary_LstBoutons[llng_IdxBtn++]='btnOPA_T';
    </script>
    </td>
    </tr></table></td>
    </tr></table>
    </td>
    </tr>
    <tr>
    <td colspan=2>
    <table class=txt cellspacing=0 cellpadding=0 width=100%>
    <tr>
    <td align=left><table class=txt cellspacing=0 cellpadding=2><tr>
    <td><a id="" href="javascript:ClickBouton('ActionDossierOuvrir|66586');"><img src="drive.gif" border=0></a></td>
    </tr></table>
    </td>
    </tr>
    </table>
    </tr>
    <tr>
    <td valign=top width=120 height=300><div style="border:inset 2px #EEEEEE;overflow: auto; width : 200; height:450;background-color : #FFFFFF"><table class=txt width=100% border=0 cellspacing=0>
    <tr class=EnteteList>
    <td width=16><img src="file_open.gif" ></td>
    <td align=left width=90%>0 Dossier</td>
    </tr>
    <tr>
    <td height=150 colspan=2  oncontextmenu="return MenuContextuelFichier(this);" menuItems="[Ajouter un dossier#ActionDossierAjouter|#images/agora/add.gif]" ClefApplication="" >&nbsp;</td>
    </tr>
    </table>
    </div></td>
    <td valign=top width=300 height=300><div style="border:inset 2px #EEEEEE;overflow: auto; width : 450; height:450;background-color : #FFFFFF"><table class=txt width=100% border=0 cellspacing=0>
    <tr class=EnteteList>
    <td width=16><img src="file_open.gif" ></td>
    <td align=left width=80%>
    <table class=EnteteList cellspacing=0 cellpadding=0><tr>
    <td>1 Fichier</td>
    <td>&nbsp;</td>
    <td>()</td>
    <td>&nbsp;</td>
    <td><a id="" href="javascript:ClickBouton('ActionMasqueAnnuler');" title="Annuler le masque"><span class=EnteteList>[Voir tous]</span></a></td>
    </tr></table>
    </td>
    <td align=center width=32>&nbsp;</td>
    <td align=center width=60>Taille</td>
    <td align=center width=80>Modifié</td>
    </tr>
    <tr class=LignePaire>
    <td class=cell1 title='Visualisation du fichier' align=center><a id="" href="javascript:ClickBouton('ActionFichierDefaultIcone|66588');"><img src="pdf_petit.gif" border=0></a></td>
    <td  title="  (66586-66588)"  oncontextmenu="return MenuContextuelFichier(this);" menuItems="[Renommer#ActionDossierRenommer|66588#][][Déplacer#ActionDossierDeplacer|66588#][Supprimer#ActionDossierSupprimer|66588','La suppression de ce fichier sera définitive.\n\nVoulez-vous continuer ?#images/agora/sup.gif][][Analyser#ActionDossierAnalyser|66588#]" ClefApplication=""  class=cellx><a id="" href="javascript:ClickBouton('ActionFichierDefaultNom|66588');">prcexp02_preparation_des_marchandises_et_des_tournees_ind00.pdf</a></td>
    <td align=right title='Téléchargement du fichier' nowrap class=cellx><a id="" href="javascript:ClickBouton('ActionFichierTelechargerDepuisExplorateur|66588');"><img src=save.gif border=0></a></td>
    <td align=right nowrap class=cellx>261,17 ko</td>
    <td align=right nowrap class=cellx title="10/02/2010 12:34:23">10/02/2010</td>
    </tr>
    </table>
    </div></td>
    </tr>
    <tr>
    <td colspan=2><table class=txt style="border : 1px solid #000000" width=100% border=0>
    <tr>
    </tr>
    <tr><td>
    <script>
    var glng_IndiceUpload=0;
    function Retirer(IndiceARetirer){
       eval("var lastInput=document.frmExcedent.UploadIndice_" + (IndiceARetirer) + "");
       eval("var CntInput=document.all.CntUpload_" + (IndiceARetirer) + "");
       eval("var lastCell=document.all.UploadLib_" + (IndiceARetirer) + "");
       lastCell.innerHTML="<strike>"  + lastInput.value +"</strike>";
       CntInput.innerHTML='';
    }
    function AjouterFileUpload(){
       if(glng_IndiceUpload>0){
           eval("var lastInput=document.frmExcedent.UploadIndice_" + (glng_IndiceUpload - 1) + "");
           eval("var CntInput=document.all.CntUpload_" + (glng_IndiceUpload - 1) + "");
           eval("var lastCell=document.all.UploadLib_" + (glng_IndiceUpload - 1) + "");
           if(lastInput.value==''){return false;}
           lastCell.innerHTML="<table class=txt cellspacing=0 cellpadding=0 width=100%><tr><td>" + lastInput.value + "</td><td align=right><a href='javascript:Retirer(" + (glng_IndiceUpload - 1) + ")'><img src=CroixRouge.gif border=0 title='Retirer ce document de la liste des documents à télécharger.'></a></td></tr></table>";
           CntInput.style.visibility='hidden';
       }
       eval("var lstr_Zone=document.all.ZoneUpload_" + glng_IndiceUpload + ".innerHTML;");
       lstr_Zone="<table class=txt border=0 cellspacing=0 width=100% cellpadding=0><tr><td width=40>";
       if (glng_IndiceUpload ==0){
           lstr_Zone+=(glng_IndiceUpload + 1) + "<sup>er</sup>&nbsp;";
       }else{
           lstr_Zone+=(glng_IndiceUpload + 1) + "<sup>ème</sup>&nbsp;";
       }
       lstr_Zone+="<span height=15 style=';position:absolute' id=CntUpload_" + glng_IndiceUpload + "><input type=file class=txt onChange='AjouterFileUpload();' name=UploadIndice_" + glng_IndiceUpload + " size=65></span>";
       lstr_Zone+="</td><td id=UploadLib_" + glng_IndiceUpload + " nowrap height=15 width=350></td><td valign=top>";
       lstr_Zone+="</td>";
       lstr_Zone+="<td align=right><table cellspacing=0 cellpadding=0><tr>";
       lstr_Zone+="</tr></table></td>";
       lstr_Zone+="</tr></table><div id=ZoneUpload_" + (glng_IndiceUpload + 1) + "></div>";
       eval("document.all.ZoneUpload_" + glng_IndiceUpload + ".innerHTML=lstr_Zone;");
       glng_IndiceUpload++;
    }
    </script>
    <table class=txt width=100% border=0>
    <tr>
    <td id=ZoneUpload><div id=ZoneUpload_0></div></td>
    </tr>
    </table>
    </td></tr>
    <script>AjouterFileUpload();</script>
    <tr><td><table class=txt cellspacing=0 cellpadding=0 width="100%" height="100%" border=0 >
    <tr>
    <td height="5" width="5"><img src="cahg.gif" height="5" width="5"></td>
    <td height="5" width="100%"><img src="bordh.gif" height="5" width="100%"></td>
    <td height="5" width="5"><img src="cahd.gif" height="5" width="5"></td>
    </tr>
    <tr>
    <td width="5" height="100%"><img src="bordg.gif" width="5" height="100%"></td>
    <td height="5" width="100%" background="FondTblArrondi.gif" valign=top><table class=txt>
    <tr>
    <td class=saisie valign=top>Mise à jour de fichier</td>
    </tr>
    <tr><td>Pour remplacer un fichier existant, <b>ne le supprimez pas</b>. Faite simplement un téléchargement du nouveau fichier avec le même nom. Ceci évite la reconstruction des liens sur les pages.</td></tr>
    </table>
    </td>
    <td width="5" height="100%"><img src="bordd.gif" width="5" height="100%"></td>
    </tr>
    <tr>
    <td height="5" width="5"><img src="cabg.gif" height="5" width="5"></td>
    <td height="5" width="100%"><img src="bordb.gif" height="5" width="100%"></td>
    <td height="5" width="5"><img src="cabd.gif" height="5" width="5"></td>
    </tr>
    </table>
    </td><td align=right><a  id="btnTelechargerFichier" href="#" "onclick:ClickBouton('ActionFichierTelecharger');" onfocus="GererBtnEnCours(document.all.btnTelechargerFichier_T);" onblur="ChangeCouleurBtn(document.all.btnTelechargerFichier_T,'N');"><table class=txt id="btnTelechargerFichier_T" cellspacing=0 cellpadding=0 style="cursor:hand" onmouseover="ChangeCouleurBtn(this,'S')" onmouseout="ChangeCouleurBtn(this,'N')" lockSurvol="N" btnCible="btnTelechargerFichier" onclick="javascript:ClickBouton('ActionFichierTelecharger');" title="Télécharger" ><tr><td style="background-image:url(BGN.gif)"><img BORDER="0" src="x.gif" height=21 width=14></td><td nowrap style="background-image:url(BCN.gif)"><b>Télécharger</b></td><td style="background-image:url(BDN.gif)"><img BORDER="0" src="x.gif" height=21 width=14></td></tr></table></a>
    <script>
        gary_LstBoutons[llng_IdxBtn++]='btnTelechargerFichier_T';
    </script>
    </td>
    </table>
    </td>
    </tr>
    </table>
    </td>
    <td width="5" height="100%"><img src="bordd.gif" width="5" height="100%"></td>
    </tr>
    <tr>
    <td height="5" width="5"><img src="cabg.gif" height="5" width="5"></td>
    <td height="5" width="100%"><img src="bordb.gif" height="5" width="100%"></td>
    <td height="5" width="5"><img src="cabd.gif" height="5" width="5"></td>
    </tr>
    </table>
     
    </td></tr>
    </table>
     
    </td></tr>
    </table>
    </td></tr></table></td>
    <td><img src="x.gif" width="5" heigth="100%"></td>
    </tr>
    <tr>
    <td></td>
    <td><img src="cabg.gif" height="5" width="5"></td>
    <td><img src="bordb.gif" height="5" width="100%"></td>
    <td><img src="cabd.gif" height="5" width="5"></td>
    <td><img src="x.gif" height="5" width="685"></td>
    <td><img src="x.gif" height="5" width="5"></td>
    </tr>
    </table>
    </td></tr>
    </table>
     
    </td></tr>
    </table>
    <script>
    function ClickBoutonAvecMessageAttente(astr_ActionAfter,astr_Message){
       var haut = (screen.height - 160)/2
       var gauche = (screen.width - 520)/2
       var msgAttente=window.open('/MessageAttente.asp?msgKey=2014021110_2A9530DC-F0ED-694F-B7F8-E70047F88382','PopupMessageInfo', 'toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no,width=520,height=160,top=' + haut + 'left=' + gauche + '');
       var date = new Date();
       var curDate = null;
       var millis=2000;
       if(astr_ActionAfter==null){
       }else{
          do{curDate = new Date();
          }while((msgAttente.document.readyState!='complete') && (curDate-date < millis));
          if(astr_Message==null){
              ClickBouton(astr_ActionAfter);
          }else{
              ClickBouton(astr_ActionAfter,astr_Message);
          }
       }
    }
    </script>
     
    </td></tr>
    <input id="EndInput" type="image" height="1" width="1" style="position:absolute">
    </form>
    </table>
    <div id=ZoneCalend style="visibility:hidden;position:absolute"></div>
    </body>
    </HTML>

    J'ai vu que dans la fonction ClickBouton, il y a 2 arguments. Dois-je appeler cette fonction avec le 2ème argument à la valeur '' s'il n'y est pas ?

    Voici le code de la fonction ClickBouton :

    Code javascript : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    function ClickBouton(astr_Code,astr_Message){
    	//alert(astr_Code)
    	//alert("Nb de champs trouvés :"+document.frmExcedent.elements.length);
    	//AffichageWait();
    	for(var llng_Champ=0;llng_Champ<document.frmExcedent.elements.length;llng_Champ++){
    		var lobj_Champ=document.frmExcedent.elements[llng_Champ];
    		if(lobj_Champ.type=='hidden'){
    			if(lobj_Champ.SourceEditeur!=null){
    				eval("MemoSaisie(document.all."+lobj_Champ.SourceEditeur+")")	
    			}
    		}
    	}
     
    	if (astr_Message){
    		if (confirm(astr_Message))
    	        {
    	            gstr_BtnSubmit = astr_Code;
    	            document.frmExcedent.frmAction.value='Bouton';
    	            document.frmExcedent.frmParam.value = astr_Code
    	            gbln_CliqueBouton = true
    	            BeforeToSubmit();
    	            document.frmExcedent.submit();
    	        }
    	}
    	else{
    		//alert("submit");
    		gstr_BtnSubmit = astr_Code;
    	        document.frmExcedent.frmAction.value='Bouton';
    	        document.frmExcedent.frmParam.value = astr_Code
    	        gbln_CliqueBouton = true
    	        BeforeToSubmit();
    	        document.frmExcedent.submit();
    	}
    }

    J'avoue que c'est très compliqué pour moi de comprendre le code. L'application est assez complexe dans sa structure.

    Si tu peux m'aider encore, je suis preneuse car je navigue en aveugle !

    Merci d'avance.

  4. #4
    Membre émérite
    Avatar de Kaamo
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    1 165
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 1 165
    Points : 2 778
    Points
    2 778
    Par défaut
    En fait, c'est du code VB6 qui génère du code html qui fait lui-même appel à du javaScript.
    Original ! ça doit être sympa à maintenir

    Il n'y a pas de ligne 215 dans le code généré
    En fait, le code commence par </td>, donc il n'est pas complet.

  5. #5
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 637
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 74
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 637
    Points : 66 661
    Points
    66 661
    Billets dans le blog
    1
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    ><a  id="btnOPA" href="#" "onclick:ClickBouton('ActionRootSelectionner');"
    c'est pour le moins ... exotique ...
    Ma page Developpez - Mon Blog Developpez
    Président du CCMPTP (Comité Contre le Mot "Problème" dans les Titres de Posts)
    Deux règles du succès: 1) Ne communiquez jamais à quelqu'un tout votre savoir...
    Votre post est résolu ? Alors n'oubliez pas le Tag

    Venez sur le Chat de Développez !

  6. #6
    Futur Membre du Club
    Femme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juillet 2012
    Messages
    16
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Conseil

    Informations forums :
    Inscription : Juillet 2012
    Messages : 16
    Points : 9
    Points
    9
    Par défaut
    Citation Envoyé par Kaamo Voir le message
    Original ! ça doit être sympa à maintenir

    Il n'y a pas de ligne 215 dans le code généré
    En fait, le code commence par </td>, donc il n'est pas complet.
    Bonjour,

    Effectivement, c'est pas du gateau
    J'étais sensée maintenir du code VB6 sur cette application et je me retrouve avec tous ces langages que je connais très peu ou pas du tout. Bien entendu, il n'y a aucune doc.

    Je vais essayer d'être plus claire.
    Lorsque je lance l'application, j'ai un message d'erreur :
    "une erreur est survenue dans le script de cette page" , de type "script error" sur le script "Script.js", "voulez-vous continuer à exécuter les scripts de cette page ?"

    Je fais "oui".
    J'ai une deuxième erreur du même type mais avec le script "calendar.js".
    je continue et l'écran s'affiche (il s'agit d'un explorateur de fichiers).
    Je clique sur le bouton "ouvrir" et j'ai le message avec le script "script.js" et la ligne 215.

    Si je lance le débuggeur, il m'ouvre un "fichier" avec le code généré et pointe sur la ligne en erreur (la ligne 215).
    Voici ce que m'affiche le débuggeur (j'ai mis la ligne en erreur en rouge) :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    <HTML>
    <base href="res://C:\CECILE\SOURCES\SVN\IntranetV3\BLL\Ressources.dll" > 
    <LINK REL="STYLESHEET" HREF="style.css" TYPE="text/css">
    <SCRIPT Language="JavaScript" SRC="Script.js"></SCRIPT>
    <SCRIPT Language="JavaScript" SRC="calendrier.js"></SCRIPT>
    <script>
    function MarquerHauteur(){
        document.frmExcedent.frmHauteurPage.value = document.body.scrollTop
    }
    function RedescendreA(alng_hauteur){scrollTo(0,alng_hauteur);}
    var gary_LstBoutons = new Array();
    function GererBtnEnCours(obj){
        for(var i=0;i<gary_LstBoutons.length;i++){
            eval("document.all." + gary_LstBoutons[i] + ".lockSurvol='N';");
            eval("ChangeCouleurBtn(document.all." + gary_LstBoutons[i] + ",'N');");
        }
        if(obj!=null){
            ChangeCouleurBtn(obj,'L');
            obj.lockSurvol='Y'
            gstr_BtnSubmit=obj.btnCible;
        }else{
            gstr_BtnSubmit="#";
        }
    }
    function ChangeCouleurBtn(obj,Survol){
        if(obj.lockSurvol=='N'){
            obj.cells[0,0].style.backgroundImage='url(BG'+Survol+'.gif)';
            obj.cells[0,1].style.backgroundImage='url(BC'+Survol+'.gif)';
            obj.cells[0,2].style.backgroundImage='url(BD'+Survol+'.gif)';
        }
    }
    var llng_IdxBtn=0;
    function BeforeToSubmit(){
    }
    function SubmitFormulaireDebug(obj){
        var btn;
        if (gbln_CliqueBouton){
            return true;
        }
        else{
            if(gstr_BtnSubmit=="#"){
                return false;
            }
            else{
                eval("btn=document.all." + gstr_BtnSubmit + ";");
                btn.click();
                if(btn.tagName=='A'){return false;}
            }
        }
    }
    </script>
    <body style="margin:0" onscroll="MarquerHauteur()">
    <table class="txt" cellspacing="0" cellpadding="0" width=100% height=100%>
    <form name="frmExcedent" method=post onSubmit="return SubmitFormulaireDebug(this)" ENCTYPE="multipart/form-data">
    <input type="hidden" name="frmAction" value="#">
    <input type="hidden" name="frmParam" value="#">
    <input type="hidden" name="GuidKeyPage" value="1302140922181119414687">
    <input type="hidden" name="frmHauteurPage" value="0">
    <input type="hidden" name="frmCodeUserInterne" value="2154">
    <tr><td valign=top>
    
    <table class=txt cellspacing=0 cellpadding=0  width=100%>
    <tr><td>
    <script>
    function AffichageWait(){
    pageWidth = 0;pageHeight = 0;
    pageWidth =  window.innerWidth;
    pageWidth = (pageWidth)? pageWidth : document.documentElement.clientWidth;
    pageWidth = (pageWidth)? pageWidth: document.body.clientWidth;
    pageHeight =  window.innerHeight;
    pageHeight = (pageHeight)? pageHeight: document.documentElement.clientHeight;
    pageHeight = (pageHeight)? pageHeight: document.body.clientHeight;
    eval("var lobj_Div=document.all.WAIT;");
    var posLeft = (pageWidth-lobj_Div.offsetWidth)/2;
    lobj_Div.style.left = (posLeft<0)?0+"px":posLeft+"px";
    var posTop = (pageHeight-lobj_Div.offsetHeight)/2;
    lobj_Div.style.top = (posTop<0)?0+"px":posTop+"px";
    lobj_Div.style.visibility='visible';
    }
    </script>
    <div id="WAIT" style="position:absolute;width:250px;visibility:hidden">
    </div>
    <table class=txt>
    <tr><td>
    <table class="txt" cellspacing="0" cellpadding="0" border="0" width="899" bgcolor="#FFFFFF">
    <tr>
    <td width="1" rowspan="4"><img src="x.gif" height="100%" width="1"> </td>
    <td width="5" height="1"> <img src="x.gif" width="5" height="1"> </td>
    <td width="100" height="1"> <img src="x.gif" width="150" height="1"> </td>
    <td width="5" height="1"> <img src="x.gif" width="5" height="1"> </td>
    <td width="600" height="1"> <img src="x.gif" width="685" height="1"> </td>
    <td width="5" height="1"> <img src="x.gif" width="5" height="1"> </td>
    </tr>
    <tr>
    <td width="5"><img src="cahg.gif" height="5" width="5"></td>
    <td colspan="3"><img src="bordh.gif" height="5" width="100%"></td>
    <td><img src="cahd.gif" height="5" width="5"></td>
    </tr>
    <tr>
    <td><img src="bordg.gif" height="100%" width="5"></td>
    <td background="FondTblArrondi.gif" align="center"></td>
    <td height="80" background="FondTblArrondi.gif"></td>
    <td background="FondTblArrondi.gif" valign="bottom">
    <table class="txt" width="100%" height="100%" border="0">
    <tr><td align="right"><table class="txt"><tr><td>&nbsp;</td>
    </tr></table></td></tr>
    <script>
    window.onload = function(){RedescendreA(0);}
    </script>
    <tr><td>&nbsp;</td></tr>
    <tr><td class="title" valign="bottom"></td></tr>
    </table></td>
    <td><img src="bordd.gif" height="100%" width="5"></td>
    </tr>
    <tr>
    <td height="5"><img src="bordg.gif" height="5" width="5"></td>
    <td height="5" colspan="2" background="FondTblArrondi.gif"><img src="x.gif" width="150" height="5"></td>
    <td height="5"><img src="bordb.gif" height="5" width="100%"></td>
    <td height="5"><img src="cabd.gif" height="5" width="5"></td>
    </tr>
    <tr>
    <td><img src="x.gif" height="500" width="1"> </td>
    <td colspan="3" valign="top" background="FondTblArrondi.gif" height="100%">
    <table cellspacing="0" cellpadding="0" width="100%" height="100%" border="0" bgcolor="#FFFFFF">
    <tr><td height="0">
    <table class=txt width=100% cellspacing=0 cellpadding=0 border=0>
    <tr>
    <td height=22><img src="bordg.gif" height="22" width="5"></td>
    <td colspan=3 background="FondTblArrondi.gif"><table class=txt cellspacing=0 cellpadding=0><tr>
    <td><img src=x.gif height=22 width=7></td>
    <td><img src=il_fleche1.gif></td>
    <td><img src=x.gif height=22 width=5></td>
    <td height=22><a href="javascript:ClickBouton('$Menu|Explorer.Main.EXPLO')" class=Menu>Explorateur</a></td>
    </tr></table></td>
    <td height=22><img src="bordd.gif" height="22" width="5"></td>
    </tr>
    </table>
    
    </td></tr>
    <tr><td height="100%">
    <table class="txt" width="100%" cellspacing="0" cellpadding="0" height="100%">
    <tr>
    <td background="bordg.gif"><img src="x.gif" height="20" width="5"></td>
    <td width="99%" background="FondTblArrondi.gif"></td>
    <td background="bordd.gif"><img src="x.gif" height="20" width="5"></td>
    </tr>
    </table>
    </td></tr>
    </table>
    </td>
    <td valign="top"><table class="txt" width="100%"><tr><td><table class=txt border=0 cellspacing="0" cellpadding="0" width="100%">
    <tr><td background="onglet_bg.gif"><table class=txt cellspacing="0" cellpadding="0" width=100%><tr>
    <td>
    <table cellspacing="0" cellpadding="0" class=txt>
    <tr>
    <td width=9 height=21 background="ong_left_on.gif"><img  BORDER="0" src=x.gif height=21 width=9></td>
    <td background="ong_middle_on.gif" nowrap ><a class=ongletSelect href="javascript:ClickBouton('$ONG_CHG|BONG_0|NAV');" style="">Explorateur</a></td>
    <td width=9 height=21 background="ong_right_on.gif"><img  BORDER="0" src=x.gif height=21 width=9></td>
    <td width=9 height=21 background="ong_left.gif"><img  BORDER="0" src=x.gif height=21 width=9></td>
    <td background="ong_middle.gif" nowrap><a class=ongletNonSelect href="javascript:ClickBouton('$ONG_CHG|BONG_0|ROOT');" style="">Points d'entrée</a></td>
    <td width=9 height=21 background="ong_right.gif"><img BORDER="0" src=x.gif height=21 width=9></td>
    </tr>
    </table>
    </td>
    </tr></table>
    </td></tr>
    <tr><td id="sous_onglets" height="300" valign="top" >
    <table class=txt border=0 width=100%>
    <tr><td>
    <table class=txt cellspacing=0 cellpadding=0 width="100%" height="100%" border=0 >
    <tr>
    <td height="5" width="5"><img src="cahg.gif" height="5" width="5"></td>
    <td height="5" width="100%"><img src="bordh.gif" height="5" width="100%"></td>
    <td height="5" width="5"><img src="cahd.gif" height="5" width="5"></td>
    </tr>
    <tr>
    <td width="5" height="100%"><img src="bordg.gif" width="5" height="100%"></td>
    <td height="5" width="100%" background="FondTblArrondi.gif" valign=top><table oncontextmenu="return false;" class=txt border=0 width=100%>
    <tr>
    <td colspan=2>
    <table width=100%><tr>
    <td class=saisie><table class=txt><tr>
    <td class=saisie>Point d'entrée :</td>
    <td><select name="frmArbRoot" class=Txt 
    onFocus="GererBtnEnCours(document.all.btnOPA_T)" STYLE="background-color_OBLG_:#FFFACD" ><option value="">Choisir ...</option>
    <option  value="127_2621" >[Admin Fichiers SPV] docs</option>
    <option  value="111_1223" >[Contrib Agenda(s) Groupe] AGENDA GROUPE</option>
    <option  value="5_32" >[Contrib Juridique Assurances (All)] ASSURANCES</option>
    <option  value="114_301" >[Contrib Logistique] LOGISTIQUE</option>
    <option  value="246_42" >[Contrib Marketing (All)] CONTRIB MARKETING</option>
    <option  value="17_31" >[Contrib SERQ (All)] serq</option>
    <option  value="303_66586" selected>[Nathalie] groupe</option>
    <option  value="1_117" >[Public] Assurances</option>
    <option  value="1_1178" >[Public] Communication</option>
    <option  value="1_1222" >[Public] CORDA</option>
    <option  value="1_1224" >[Public] Espace Services</option>
    <option  value="1_1229" >[Public] Finances</option>
    <option  value="1_59" >[Public] Informatique</option>
    <option  value="1_6463" >[Public] Logistique</option>
    <option  value="1_1297" >[Public] Marketing</option>
    <option  value="1_3776" >[Public] RH</option>
    <option  value="1_183" >[Public] SERQ</option>
    <option  value="61_6210" >[Siège] CE SIEGE</option>
    <option  value="61_3288" >[Siège] CHSCT SIEGE</option>
    <option  value="1425_1290" >[User Mktg Produits] produits</option>
    <option  value="1421_1269" >[User Mktg Tous Marchés] alimentaire</option>
    <option  value="1421_1280" >[User Mktg Tous Marchés] detergence</option>
    <option  value="1421_65283" >[User Mktg Tous Marchés] peintures</option>
    <option  value="1421_23646" >[User Mktg Tous Marchés] synthese_pharma</option>
    <option  value="1497_4698" >[User SERQ Revue Dir - Session RAQ - Indicateurs] management_qse</option>
    <option  value="1544_66643" >[User SERQ Sécurité exploit. Autorisation ICPE] stocks</option>
    <option  value="1500_6215" >[User SERQ Sécurité exploit. Report ICPE] reporting_icpe</option>
    </select>
    </td>
    <td><a  id="btnOPA" href="javascript:ClickBouton('ActionRootSelectionner');" onfocus="GererBtnEnCours(document.all.btnOPA_T);" onblur="ChangeCouleurBtn(document.all.btnOPA_T,'N');"><table class=txt id="btnOPA_T" cellspacing=0 cellpadding=0 style="cursor:hand" onmouseover="ChangeCouleurBtn(this,'S')" onmouseout="ChangeCouleurBtn(this,'N')" lockSurvol="N" btnCible="btnOPA" onclick="javascript:ClickBouton('ActionRootSelectionner');" title="Ouvrir à partir de ce point d'entrée" ><tr><td style="background-image:url(BGN.gif)"><img BORDER="0" src="x.gif" height=21 width=14></td><td nowrap style="background-image:url(BCN.gif)"><b>Ouvrir</b></td><td style="background-image:url(BDN.gif)"><img BORDER="0" src="x.gif" height=21 width=14></td></tr></table></a>
    <script>
        gary_LstBoutons[llng_IdxBtn++]='btnOPA_T';
    </script>
    </td>
    </tr></table></td>
    </tr></table>
    </td>
    </tr>
    <tr>
    <td colspan=2>
    <table class=txt cellspacing=0 cellpadding=0 width=100%>
    <tr>
    <td align=left><table class=txt cellspacing=0 cellpadding=2><tr>
    <td><a id="" href="javascript:ClickBouton('ActionDossierOuvrir|66586');"><img src="drive.gif" border=0></a></td>
    </tr></table>
    </td>
    </tr>
    </table>
    </tr>
    <tr>
    <td valign=top width=120 height=300><div style="border:inset 2px #EEEEEE;overflow: auto; width : 200; height:450;background-color : #FFFFFF"><table class=txt width=100% border=0 cellspacing=0>
    <tr class=EnteteList>
    <td width=16><img src="file_open.gif" ></td>
    <td align=left width=90%>0 Dossier</td>
    </tr>
    <tr>
    <td height=150 colspan=2  oncontextmenu="return MenuContextuelFichier(this);" menuItems="[Ajouter un dossier#ActionDossierAjouter|#images/agora/add.gif]" ClefApplication="" >&nbsp;</td>
    </tr>
    </table>
    </div></td>
    <td valign=top width=300 height=300><div style="border:inset 2px #EEEEEE;overflow: auto; width : 450; height:450;background-color : #FFFFFF"><table class=txt width=100% border=0 cellspacing=0>
    <tr class=EnteteList>
    <td width=16><img src="file_open.gif" ></td>
    <td align=left width=80%>
    <table class=EnteteList cellspacing=0 cellpadding=0><tr>
    <td>1 Fichier</td>
    <td>&nbsp;</td>
    <td>()</td>
    <td>&nbsp;</td>
    <td><a id="" href="javascript:ClickBouton('ActionMasqueAnnuler');" title="Annuler le masque"><span class=EnteteList>[Voir tous]</span></a></td>
    </tr></table>
    </td>
    <td align=center width=32>&nbsp;</td>
    <td align=center width=60>Taille</td>
    <td align=center width=80>Modifié</td>
    </tr>
    <tr class=LignePaire>
    <td class=cell1 title='Visualisation du fichier' align=center><a id="" href="javascript:ClickBouton('ActionFichierDefaultIcone|66588');"><img src="pdf_petit.gif" border=0></a></td>
    <td  title="  (66586-66588)"  oncontextmenu="return MenuContextuelFichier(this);" menuItems="[Renommer#ActionDossierRenommer|66588#][][Déplacer#ActionDossierDeplacer|66588#][Supprimer#ActionDossierSupprimer|66588','La suppression de ce fichier sera définitive.\n\nVoulez-vous continuer ?#images/agora/sup.gif][][Analyser#ActionDossierAnalyser|66588#]" ClefApplication=""  class=cellx><a id="" href="javascript:ClickBouton('ActionFichierDefaultNom|66588');">prcexp02_preparation_des_marchandises_et_des_tournees_ind00.pdf</a></td>
    <td align=right title='Téléchargement du fichier' nowrap class=cellx><a id="" href="javascript:ClickBouton('ActionFichierTelechargerDepuisExplorateur|66588');"><img src=save.gif border=0></a></td>
    <td align=right nowrap class=cellx>261,17 ko</td>
    <td align=right nowrap class=cellx title="10/02/2010 12:34:23">10/02/2010</td>
    </tr>
    </table>
    </div></td>
    </tr>
    <tr>
    <td colspan=2><table class=txt style="border : 1px solid #000000" width=100% border=0>
    <tr>
    </tr>
    <tr><td>
    <script>
    var glng_IndiceUpload=0;
    function Retirer(IndiceARetirer){
       eval("var lastInput=document.frmExcedent.UploadIndice_" + (IndiceARetirer) + "");
       eval("var CntInput=document.all.CntUpload_" + (IndiceARetirer) + "");
       eval("var lastCell=document.all.UploadLib_" + (IndiceARetirer) + "");
       lastCell.innerHTML="<strike>"  + lastInput.value +"</strike>";
       CntInput.innerHTML='';
    }
    function AjouterFileUpload(){
       if(glng_IndiceUpload>0){
           eval("var lastInput=document.frmExcedent.UploadIndice_" + (glng_IndiceUpload - 1) + "");
           eval("var CntInput=document.all.CntUpload_" + (glng_IndiceUpload - 1) + "");
           eval("var lastCell=document.all.UploadLib_" + (glng_IndiceUpload - 1) + "");
           if(lastInput.value==''){return false;}
           lastCell.innerHTML="<table class=txt cellspacing=0 cellpadding=0 width=100%><tr><td>" + lastInput.value + "</td><td align=right><a href='javascript:Retirer(" + (glng_IndiceUpload - 1) + ")'><img src=CroixRouge.gif border=0 title='Retirer ce document de la liste des documents à télécharger.'></a></td></tr></table>";
           CntInput.style.visibility='hidden';
       }
       eval("var lstr_Zone=document.all.ZoneUpload_" + glng_IndiceUpload + ".innerHTML;");
       lstr_Zone="<table class=txt border=0 cellspacing=0 width=100% cellpadding=0><tr><td width=40>";
       if (glng_IndiceUpload ==0){
           lstr_Zone+=(glng_IndiceUpload + 1) + "<sup>er</sup>&nbsp;";
       }else{
           lstr_Zone+=(glng_IndiceUpload + 1) + "<sup>ème</sup>&nbsp;";
       }
       lstr_Zone+="<span height=15 style=';position:absolute' id=CntUpload_" + glng_IndiceUpload + "><input type=file class=txt onChange='AjouterFileUpload();' name=UploadIndice_" + glng_IndiceUpload + " size=65></span>";
       lstr_Zone+="</td><td id=UploadLib_" + glng_IndiceUpload + " nowrap height=15 width=350></td><td valign=top>";
       lstr_Zone+="</td>";
       lstr_Zone+="<td align=right><table cellspacing=0 cellpadding=0><tr>";
       lstr_Zone+="</tr></table></td>";
       lstr_Zone+="</tr></table><div id=ZoneUpload_" + (glng_IndiceUpload + 1) + "></div>";
       eval("document.all.ZoneUpload_" + glng_IndiceUpload + ".innerHTML=lstr_Zone;");
       glng_IndiceUpload++;
    }
    </script>
    <table class=txt width=100% border=0>
    <tr>
    <td id=ZoneUpload><div id=ZoneUpload_0></div></td>
    </tr>
    </table>
    </td></tr>
    <script>AjouterFileUpload();</script>
    <tr><td><table class=txt cellspacing=0 cellpadding=0 width="100%" height="100%" border=0 >
    <tr>
    <td height="5" width="5"><img src="cahg.gif" height="5" width="5"></td>
    <td height="5" width="100%"><img src="bordh.gif" height="5" width="100%"></td>
    <td height="5" width="5"><img src="cahd.gif" height="5" width="5"></td>
    </tr>
    <tr>
    <td width="5" height="100%"><img src="bordg.gif" width="5" height="100%"></td>
    <td height="5" width="100%" background="FondTblArrondi.gif" valign=top><table class=txt>
    <tr>
    <td class=saisie valign=top>Mise à jour de fichier</td>
    </tr>
    <tr><td>Pour remplacer un fichier existant, <b>ne le supprimez pas</b>. Faite simplement un téléchargement du nouveau fichier avec le même nom. Ceci évite la reconstruction des liens sur les pages.</td></tr>
    </table>
    </td>
    <td width="5" height="100%"><img src="bordd.gif" width="5" height="100%"></td>
    </tr>
    <tr>
    <td height="5" width="5"><img src="cabg.gif" height="5" width="5"></td>
    <td height="5" width="100%"><img src="bordb.gif" height="5" width="100%"></td>
    <td height="5" width="5"><img src="cabd.gif" height="5" width="5"></td>
    </tr>
    </table>
    </td><td align=right><a  id="btnTelechargerFichier" href="javascript:ClickBouton('ActionFichierTelecharger');" onfocus="GererBtnEnCours(document.all.btnTelechargerFichier_T);" onblur="ChangeCouleurBtn(document.all.btnTelechargerFichier_T,'N');"><table class=txt id="btnTelechargerFichier_T" cellspacing=0 cellpadding=0 style="cursor:hand" onmouseover="ChangeCouleurBtn(this,'S')" onmouseout="ChangeCouleurBtn(this,'N')" lockSurvol="N" btnCible="btnTelechargerFichier" onclick="javascript:ClickBouton('ActionFichierTelecharger');" title="Télécharger" ><tr><td style="background-image:url(BGN.gif)"><img BORDER="0" src="x.gif" height=21 width=14></td><td nowrap style="background-image:url(BCN.gif)"><b>Télécharger</b></td><td style="background-image:url(BDN.gif)"><img BORDER="0" src="x.gif" height=21 width=14></td></tr></table></a>
    <script>
        gary_LstBoutons[llng_IdxBtn++]='btnTelechargerFichier_T';
    </script>
    </td>
    </table>
    </td>
    </tr>
    </table>
    </td>
    <td width="5" height="100%"><img src="bordd.gif" width="5" height="100%"></td>
    </tr>
    <tr>
    <td height="5" width="5"><img src="cabg.gif" height="5" width="5"></td>
    <td height="5" width="100%"><img src="bordb.gif" height="5" width="100%"></td>
    <td height="5" width="5"><img src="cabd.gif" height="5" width="5"></td>
    </tr>
    </table>
    
    </td></tr>
    </table>
    
    </td></tr>
    </table>
    </td></tr></table></td>
    <td><img src="x.gif" width="5" heigth="100%"></td>
    </tr>
    <tr>
    <td></td>
    <td><img src="cabg.gif" height="5" width="5"></td>
    <td><img src="bordb.gif" height="5" width="100%"></td>
    <td><img src="cabd.gif" height="5" width="5"></td>
    <td><img src="x.gif" height="5" width="685"></td>
    <td><img src="x.gif" height="5" width="5"></td>
    </tr>
    </table>
    </td></tr>
    </table>
    
    </td></tr>
    </table>
    <script>
    function ClickBoutonAvecMessageAttente(astr_ActionAfter,astr_Message){
       var haut = (screen.height - 160)/2
       var gauche = (screen.width - 520)/2
       var msgAttente=window.open('/MessageAttente.asp?msgKey=2014021309_B3D7C605-93CC-4C42-B2A5-BAEDC6BBF8D1','PopupMessageInfo', 'toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no,width=520,height=160,top=' + haut + 'left=' + gauche + '');
       var date = new Date();
       var curDate = null;
       var millis=2000;
       if(astr_ActionAfter==null){
       }else{
          do{curDate = new Date();
          }while((msgAttente.document.readyState!='complete') && (curDate-date < millis));
          if(astr_Message==null){
              ClickBouton(astr_ActionAfter);
          }else{
              ClickBouton(astr_ActionAfter,astr_Message);
          }
       }
    }
    </script>
    
    </td></tr>
    <input id="EndInput" type="image" height="1" width="1" style="position:absolute">
    </form>
    </table>
    <div id=ZoneCalend style="visibility:hidden;position:absolute"></div>
    </body>
    </HTML>
    Voici le code complet du fichier "script.js"

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    var go_wdn = ""
     
    function BeforeToSubmit(){
    }
     
    function ClickBouton(astr_Code,astr_Message){
    	//alert(astr_Code)
    	//alert("Nb de champs trouvés :"+document.frmExcedent.elements.length);
    	//AffichageWait();
    	for(var llng_Champ=0;llng_Champ<document.frmExcedent.elements.length;llng_Champ++){
    		var lobj_Champ=document.frmExcedent.elements[llng_Champ];
    		if(lobj_Champ.type=='hidden'){
    			if(lobj_Champ.SourceEditeur!=null){
    				eval("MemoSaisie(document.all."+lobj_Champ.SourceEditeur+")")	
    			}
    		}
    	}
     
    	if (astr_Message){
    		if (confirm(astr_Message))
    	        {
    	            gstr_BtnSubmit = astr_Code;
    	            document.frmExcedent.frmAction.value='Bouton';
    	            document.frmExcedent.frmParam.value = astr_Code
    	            gbln_CliqueBouton = true
    	            BeforeToSubmit();
    	            document.frmExcedent.submit();
    	        }
    	}
    	else{
    		//alert("submit");
    		gstr_BtnSubmit = astr_Code;
    	        document.frmExcedent.frmAction.value='Bouton';
    	        document.frmExcedent.frmParam.value = astr_Code
    	        gbln_CliqueBouton = true
    	        BeforeToSubmit();
    	        document.frmExcedent.submit();
    	}
    }
     
    function BoutonParDefaut(astr_Bouton){
    	//alert(astr_Bouton)
    	if (gstr_BtnSubmit!="#") {
    		eval("document.all." + gstr_BtnSubmit + ".style.backgroundColor='';");
    	}
    	gstr_BtnSubmit = astr_Bouton
    	eval("document.all." + gstr_BtnSubmit + ".style.backgroundColor='#4169E1';");
    }
     
     
    function SubmitFormulaire(obj){
    	var btn;
     
    	if (gbln_CliqueBouton){
    		return true;
    	}
    	else{
    		//alert("AutoClick !")
    		if(gstr_BtnSubmit=="#"){
    			return false;
    		}
    		else{
    			eval("btn=document.all." + gstr_BtnSubmit + ";");
    			//alert(btn)
    			btn.click();
    		}
    	}
    }
     
    function ClickPopUp(astr_Code){
    	//alert('PopUp : ' + astr_Code);
    	ClickBouton(astr_Code);
    }
     
    var gstr_BtnSubmit='#';
    var gbln_CliqueBouton = false;
     
    function AjouterListe(ObjSource,ObjCible)
    {
      var source;
      var cible;
      var optiontmp;
      var optiontmp;
     
      eval("source=frmExcedent." + ObjSource);
      eval("cible=frmExcedent." + ObjCible);
      for (var i=0;i<source.length;i++)
      {
        if(source.options[i].selected)
        {
     
          if(source.options[i].value=='#'){break;}
     
          cible.options[cible.options.length] = new Option(source.options[i].text , source.options[i].value);
     
     
          //cible.options[cible.options.length-1].outerText = source.options[i].outerHTML
     
            optiontmp = cible.options[cible.options.length-1]
            //optiontmp.Code = source.options[i].Code
            //optiontmp.Nom = source.options[i].Nom
            //optiontmp.Design0 = source.options[i].Design0
            //optiontmp.Design1 = source.options[i].Design1
            //optiontmp.Design2= source.options[i].Design2
            //optiontmp.Mapper = source.options[i].Mapper
            //optiontmp.CodeSite = source.options[i].CodeSite
            optiontmp.style.color = source.options[i].style.color
            optiontmp.style.backgroundColor = source.options[i].style.backgroundColor
     
     
     
    //'alert(cible.options[cible.options.length-1].outerHTML)
     
          source.options[i]= null;
          while((source.length>i) && source.options[i].value=='#')
          {
            cible.options[cible.options.length] = new Option(source.options[i].text , source.options[i].value);
            source.options[i]= null;
          }
          AjouterListe(ObjSource,ObjCible)
          break;
        }
      }
      ListeContenu(cible)
      ListeContenu(source)
    }
     
    function ListeContenu(obj)
    {
      if(obj.Contenu!=obj.ww)
      {
        var tmp='';
        var virgule='';
        for (var i=0;i<obj.length;i++)
        {
          if(obj.options[i].value!='#')
          {
            tmp+=virgule + obj.options[i].value;
            virgule=',';
          }
        }
        eval(obj.form.name + "." + obj.Contenu + ".value=tmp");
     
      }
    }
     
    function HTMLBOXMAP(astr_param,astr_message)
    {
        if (document.frmChardon.frm_AMapper.value=="")
            alert("Pour pouvoir mapper, vous devez choisir un ou plusieurs articles")
        else
        {
                ClickBouton(astr_param)
     
        }
    }
     
    function HTMLBOX(astr_param,astr_message)
    {
            if (confirm(astr_message))
            {
                ClickBouton(astr_param)
            }
    }
     
    function AfficheOption(selection)
    {
        var ls_result
     
        obj = selection.options[selection.selectedIndex]
        ls_result="<table class=txt>"
        ls_result += "<tr><td class=Saisie>Article : </td>"
     
        ls_result += "<td >" + obj.Code + "/"+ obj.Nom +" " + obj.CodeSite + "</td></tr>"
     
        if(obj.Design0!=obj.ww)
        {
            ls_result += "<tr><td class=Saisie>Libell&eacute;: </td>"
            ls_result += "<td>"+ obj.Design0
            if(obj.Design1!=obj.ww)
                ls_result += "<br>"+ obj.Design1
            if(obj.Design2!=obj.ww)
                ls_result += "<br>"+ obj.Design2
     
            ls_result += "</td></tr>"
        }
     
        if(obj.Mapper!=obj.ww)
        {
            ls_result += "<tr><td class=Saisie>Mapper avec : </td>"
            ls_result += "<td>" + obj.Mapper +"</td></tr>"
        }
     
        ls_result += "</table>"
     
        if (document.all.ArticleInfo!=obj.ww)
        {
            document.all.ArticleInfo.innerHTML = ls_result
        }
    }
     
    function popupOpen (){
    	li_height = 540;
    	li_width = 750;
    	ls_label = "Visu";
     
    	ls_WindowParam = "toolbar=0,menubar=0,resizable=1,scrollbars=1";
    	ls_WindowParam = "width=" + li_width + ",height=" + li_height + "," + ls_WindowParam;
     
    	ls_target = "popUp.asp"
    	if (go_wdn != "") {
    		go_wdn.close()
    	}
     
    	go_wdn = window.open(ls_target,ls_label,ls_WindowParam);
    }
     
    function telechargementOpen (){
    	li_height = 540;
    	li_width = 750;
    	ls_label = "Visu";
     
    	ls_WindowParam = "toolbar=0,menubar=0,resizable=1,scrollbars=1";
    	ls_WindowParam = "width=" + li_width + ",height=" + li_height + "," + ls_WindowParam;
     
    	ls_target = "TelechargementFichier.asp"
    	if (go_wdn != "") {
    		go_wdn.close()
    	}
     
    	go_wdn = window.open(ls_target,ls_label,ls_WindowParam);
    }
     
    function MenuContextuelFichier(obj){
    	var Menu = document.all.contextMenu;
    	var lstr_Contents =""
    	var lbln_Sep = false;
    	if (obj.menuItems==null){return false;}
    	if (obj.ClefApplication==null){var lstr_ClefApplication='';}else{var lstr_ClefApplication=obj.ClefApplication;}
    	if (obj.menuItems==""){return false;}
    	lstr_Contents += "<table cellspacing=0 oncontextmenu=\"return true;\" bgcolor=#DDDDDD style=\"border:outset 2px #EEEEEE\" width=150>"
    	lstr_Contents += "<tr><td colspan=2 height=1></td></tr>"
    	var lstr_DataMenu = "]" + obj.menuItems + "[";
    	var lary_Items = lstr_DataMenu.split('][');
    	for(var llng_Item=1;llng_Item<lary_Items.length-1;llng_Item++){
     
     
    		if(lary_Items[llng_Item]==""){
    			lstr_Contents += "<tr><td colspan=2 height=2></td></tr>"
    			lstr_Contents += "<tr><td colspan=2 height=1 bgcolor=#BBBBBB></td></tr>"
    			lstr_Contents += "<tr><td colspan=2 height=1 bgcolor=#FFFFFF></td></tr>"
    			lstr_Contents += "<tr><td colspan=2 height=2></td></tr>"
    			lbln_Sep = false
    		}else{
    			lary_Items[llng_Item]+="##";
    			var lary_Datas = lary_Items[llng_Item].split('#');
    			lstr_Contents += "<tr class=Normal style=\"cursor:hand\" onMouseover=\"ChgStyle(this,'Survol')\" onMouseout=\"ChgStyle(this,'Normal')\""
    			lstr_Contents += " onClick=\"this.parentElement.parentElement.style.visibility='hidden';";
    			if(lary_Datas[1]!=""){
    				lstr_Contents += "ClickBouton('" + lstr_ClefApplication + lary_Datas[1] + "');";
    			}
    			lstr_Contents += "\">"
    			if(lary_Datas[2]==""){
    				lstr_Contents += "<td width=15></td>"
    			}else{
    				lstr_Contents += "<td width=15><img src='" + lary_Datas[2] + "' height=14></td>"
    			}
    			if(llng_Item==1){
    				lstr_Contents += "<td height=20 nowrap title=\"" + lary_Datas[0] + "\"><b>" + lary_Datas[0] + "</b>&nbsp;</td>"
    			}else{
    				lstr_Contents += "<td height=20 nowrap title=\"" + lary_Datas[0] + "\">" + lary_Datas[0] + "&nbsp;</td>"
    			}
    			lstr_Contents += "</tr>"
    			lbln_Sep= true;
    		}
     
     
     
    	} 	
     
     
    	if(lbln_Sep){
    		lstr_Contents += "<tr><td colspan=2 height=2></td></tr>"
    		lstr_Contents += "<tr><td colspan=2 height=1 bgcolor=#BBBBBB></td></tr>"
    		lstr_Contents += "<tr><td colspan=2 height=1 bgcolor=#FFFFFF></td></tr>"
    		lstr_Contents += "<tr><td colspan=2 height=2></td></tr>"
    	}
     
    	lstr_Contents += "<tr class=Normal style=\"cursor:hand\" onClick=\"this.parentElement.parentElement.style.visibility='hidden'\" onMouseover=\"ChgStyle(this,'Survol')\" onMouseout=\"ChgStyle(this,'Normal')\">"
    	lstr_Contents += "<td width=15></td><td height=20 title='Fermer le menu' >Annuler</td>"
    	lstr_Contents += "</tr>"
    	lstr_Contents += "<tr><td colspan=2 height=1></td></tr>"
    	lstr_Contents += "</table>";
     
    	Menu.innerHTML=lstr_Contents 
    	Menu.style.visibility='visible';
    	Menu.style.posTop=event.y-10 + document.body.scrollTop ;
    	Menu.style.posLeft=event.x-10 + document.body.scrollLeft;
    	return false;
    }
     
    function ChgStyle(obj,Classe){
    	obj.className=Classe
    }
     
    function CheckAllBox(astr_Like,abln_Check){
    	var myFrm=document.frmExcedent;
    	var elem;
    	//alert(document.frmExcedent.length);
    	for(var i=0;i<document.frmExcedent.length;i++)
    	{
    		elem = document.frmExcedent[i];
    		//alert(elem.name.substr(0,astr_Like.length));
    		if(elem.name.substr(0,astr_Like.length) == astr_Like){
    			//alert(elem.name);
    			elem.checked=abln_Check;
    		}
    	}
    }
     
    function DisplayDiv(astr_DivId){
    	eval("var lobj_Div=document.all." + astr_DivId + ";");
    	lobj_Div.style.visibility='visible';
    	if(lobj_Div.Protect==null){
    		lobj_Div.insertAdjacentHTML("beforeBegin", '<IFRAME style="position: absolute;z-Index=1;" src="about:blank" frameBorder="0" scrolling="no" id="' + lobj_Div.id + '_hvrShm" />'); 
    		var iframeShim = document.getElementById(lobj_Div.id + "_hvrShm"); 
    		iframeShim.style.top = lobj_Div.style.top ;
    		iframeShim.style.left = lobj_Div.style.left ; //iframeShim.style.left + 20
    		iframeShim.style.width = lobj_Div.offsetWidth; 
    		iframeShim.style.height = lobj_Div.offsetHeight;
    		lobj_Div.style.zIndex = iframeShim.style.zIndex + 1
    		lobj_Div.Protect=iframeShim.id;
    	}else{
    		var iframeShim = document.getElementById(lobj_Div.Protect); 
    		iframeShim.style.visibility='visible'
    		iframeShim.style.top = lobj_Div.style.top ;
    		iframeShim.style.left = lobj_Div.style.left ; //iframeShim.style.left + 20
    		iframeShim.style.width = lobj_Div.offsetWidth; 
    		iframeShim.style.height = lobj_Div.offsetHeight;
    	}
    }
    function HideDiv(astr_DivId){
    	eval("var lobj_Div=document.all." + astr_DivId + ";");
    	lobj_Div.style.visibility='hidden';
    	if(lobj_Div.Protect!=null){
    		var iframeShim = document.getElementById(lobj_Div.Protect); 
    		iframeShim.style.visibility='hidden'
    	}
    }
    var glng_IndiceUpload=0;
    function Retirer(IndiceARetirer){
       eval("var lastInput=document.frmExcedent.UploadIndice_" + (IndiceARetirer) + "");
       eval("var CntInput=document.all.CntUpload_" + (IndiceARetirer) + "");
       eval("var lastCell=document.all.UploadLib_" + (IndiceARetirer) + "");
       lastCell.innerHTML="<strike>"  + lastInput.value +"</strike>";
       CntInput.innerHTML='';
    }
    function AjouterFileUpload(){
       //alert('Test');
       if(glng_IndiceUpload>0){
           eval("var lastInput=document.frmExcedent.UploadIndice_" + (glng_IndiceUpload - 1) + "");
           eval("var CntInput=document.all.CntUpload_" + (glng_IndiceUpload - 1) + "");
           eval("var lastCell=document.all.UploadLib_" + (glng_IndiceUpload - 1) + "");
           if(lastInput.value==''){return false;}
           lastCell.innerHTML="<table class=txt cellspacing=0 cellpadding=0 width=100%><tr><td>" + lastInput.value + "</td><td align=right><a href='javascript:Retirer(" + (glng_IndiceUpload - 1) + ")'><img src=CroixRouge.gif border=0 title='Retirer ce document de la liste des documents à télécharger.'></a></td></tr></table>" ;
           CntInput.style.visibility='hidden';
       }
       eval("var lstr_Zone=document.all.ZoneUpload_" + glng_IndiceUpload + ".innerHTML;");
       lstr_Zone="<table class=txt border=0 cellspacing=0 width=100% cellpadding=0><tr><td width=40>";
       if (glng_IndiceUpload ==0){;
           lstr_Zone+=(glng_IndiceUpload + 1) + "<sup>er</sup>&nbsp;";
       }else{
           lstr_Zone+=(glng_IndiceUpload + 1) + "<sup>ème</sup>&nbsp;";
       }
       lstr_Zone+="<span height=15 style=';position:absolute' id=CntUpload_" + glng_IndiceUpload + "><input type=file class=txt onChange='AjouterFileUpload();' name=UploadIndice_" + glng_IndiceUpload + " size=65></span>";
       lstr_Zone+="</td><td id=UploadLib_" + glng_IndiceUpload + " nowrap height=15 width=350></td><td valign=top>";
       lstr_Zone+="</td>"
       lstr_Zone+="<td align=right><table cellspacing=0 cellpadding=0><tr>"
       lstr_Zone+="</tr></table></td>"
       lstr_Zone+="</tr></table><div id=ZoneUpload_" + (glng_IndiceUpload + 1) + "></div>";
       eval("document.all.ZoneUpload_" + glng_IndiceUpload + ".innerHTML=lstr_Zone;");
       glng_IndiceUpload++;
    }
    document.write("<div id=contextMenu style=\"position:absolute;visibility:hidden\" ></div>");
     
    function addEvent(obj,event,fct){
         if(obj.attachEvent)
            obj.attachEvent('on' + event,fct);
         else
            obj.addEventListener(event,fct,true);
    }
     
    function sLight(InfoUser, Decallage) {
    	// Taille de l'écran
    	  var scrX = 0, scrY = 0;
    	  if( typeof( window.innerWidth ) == 'number' ) {
    		//Non-IE
    		scrX = window.innerWidth;
    		scrY = window.innerHeight;
    	  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    		//IE 6+ in 'standards compliant mode'
    		scrX = document.documentElement.clientWidth;
    		scrY = document.documentElement.clientHeight;
    	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    		//IE 4 compatible
    		scrX = document.body.clientWidth;
    		scrY = document.body.clientHeight;
    	  }
    	  scrY = scrY + Decallage;
    	//Couleur de fond
    	var sLayerColor = 'black';
    	//Opacité du fond
    	var sLayerOpacity = 0;
     
    	//Définition du style du lightbox
    	var sLayer = document.createElement('div');
    	sLayer.style.backgroundColor = sLayerColor;
    	sLayer.style.width = scrX+'px';
    	sLayer.style.position = 'absolute';
    	sLayer.style.top = 0;
    	sLayer.style.left = '0';
    	sLayer.style.opacity = sLayerOpacity/100;
    	sLayer.style.filter = 'alpha(opacity='+sLayerOpacity+')';
     
    	var scY = document.body.offsetHeight;
     
    	if(scrY > scY) {
    		sLayer.style.height = scrY+'px';
    	}
    	else {
    		sLayer.style.height = scY+50+'px';
    	}	
     
    	var sTexte = document.createElement('div');
    	sTexte.innerHTML = "<table width='100%'><tr><td align='center'>"+InfoUser+"</td></tr></table>";
    	sTexte.style.width = scrX+'px';
    	sTexte.style.position = 'absolute';
    	sTexte.style.top = scrY/2;
    	sTexte.style.left = '0';
     
    	// Fonction de fermeture et mise dans le document
    	addEvent(sLayer,'click',function () {sClose(sLayer, sTexte)});
    	addEvent(sTexte,'click',function () {sClose(sLayer, sTexte)});
     
    	document.body.appendChild(sLayer);
    	document.body.appendChild(sTexte);
     
    	MasquerListeSelect();
    }
     
    // Suppression du lightbox
    function sClose(sLayer, sTexte) {
    	var paSlayer = sLayer.parentNode;
    	paSlayer.removeChild(sLayer);
    	var paTexte = sTexte.parentNode;
    	paTexte.removeChild(sTexte);
     
    	AfficherListeSelect();
    }
     
    function MasquerListeSelect()
    {
    	for(i = 0; i < document.forms[0].elements.length; i++)
    	{ 
    		 elm = document.forms[0].elements[i];
    		 if (elm.type == 'select-one') {
    			  elm.style.visibility = 'hidden';
    		 } 
    	}
    }
    function AfficherListeSelect()
    {
    	for(i = 0; i < document.forms[0].elements.length; i++)
    	{ 
    		 elm = document.forms[0].elements[i];
    		 if (elm.type == 'select-one') {
    			  elm.style.visibility = 'visible';
    		 } 
    	}
    }

    J'espère que, pour vous tous, c'est un peu plus clair. Pour moi, c'est du chinois

  7. #7
    Membre émérite
    Avatar de Kaamo
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    1 165
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 1 165
    Points : 2 778
    Points
    2 778
    Par défaut
    Voir ma première réponse : #post7689102
    Visiblement, la correction proposée n'a pas été testée

  8. #8
    Futur Membre du Club
    Femme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juillet 2012
    Messages
    16
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Conseil

    Informations forums :
    Inscription : Juillet 2012
    Messages : 16
    Points : 9
    Points
    9
    Par défaut
    Citation Envoyé par Kaamo Voir le message
    Voir ma première réponse : #post7689102
    Visiblement, la correction proposée n'a pas été testée
    Kaamo, j'avais bien modifié l'appel de la fonction ClickBouton mais cela ne change rien et, en plus, il y a d'autres appels que je n'arrive pas à trouver dans le code VB.

    Visiblement, à la fermeture de l'application, la modif n'a pas été sauvegardée. Je vais recorriger et voir pour ta deuxième correction à faire et je te tiens au courant.

    Merci encore.

  9. #9
    Futur Membre du Club
    Femme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juillet 2012
    Messages
    16
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Conseil

    Informations forums :
    Inscription : Juillet 2012
    Messages : 16
    Points : 9
    Points
    9
    Par défaut
    Bonjour,

    J'ai fait les corrections proposées mais j'ai toujours la même erreur. Voici le code HTML généré et la ligne en erreur en rouge :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    <HTML>
    <base href="res://C:\CECILE\SOURCES\SVN\IntranetV3\BLL\BrenntagRessources.dll" > 
    <LINK REL="STYLESHEET" HREF="style.css" TYPE="text/css">
    <SCRIPT type="text/JavaScript" SRC="Script.js"></SCRIPT>
    <SCRIPT type="text/JavaScript" SRC="calendrier.js"></SCRIPT>
    <script>
    function MarquerHauteur(){
        document.frmExcedent.frmHauteurPage.value = document.body.scrollTop
    }
    function RedescendreA(alng_hauteur){scrollTo(0,alng_hauteur);}
    var gary_LstBoutons = new Array();
    function GererBtnEnCours(obj){
        for(var i=0;i<gary_LstBoutons.length;i++){
            eval("document.all." + gary_LstBoutons[i] + ".lockSurvol='N';");
            eval("ChangeCouleurBtn(document.all." + gary_LstBoutons[i] + ",'N');");
        }
        if(obj!=null){
            ChangeCouleurBtn(obj,'L');
            obj.lockSurvol='Y'
            gstr_BtnSubmit=obj.btnCible;
        }else{
            gstr_BtnSubmit="#";
        }
    }
    function ChangeCouleurBtn(obj,Survol){
        if(obj.lockSurvol=='N'){
            obj.cells[0,0].style.backgroundImage='url(BG'+Survol+'.gif)';
            obj.cells[0,1].style.backgroundImage='url(BC'+Survol+'.gif)';
            obj.cells[0,2].style.backgroundImage='url(BD'+Survol+'.gif)';
        }
    }
    var llng_IdxBtn=0;
    function BeforeToSubmit(){
    }
    function SubmitFormulaireDebug(obj){
        var btn;
        if (gbln_CliqueBouton){
            return true;
        }
        else{
            if(gstr_BtnSubmit=="#"){
                return false;
            }
            else{
                eval("btn=document.all." + gstr_BtnSubmit + ";");
                btn.click();
                if(btn.tagName=='A'){return false;}
            }
        }
    }
    </script>
    <body style="margin:0" onscroll="MarquerHauteur()">
    <table class="txt" cellspacing="0" cellpadding="0" width=100% height=100%>
    <form name="frmExcedent" method=post onSubmit="return SubmitFormulaireDebug(this)" ENCTYPE="multipart/form-data">
    <input type="hidden" name="frmAction" value="#">
    <input type="hidden" name="frmParam" value="#">
    <input type="hidden" name="GuidKeyPage" value="1802141201421559822000">
    <input type="hidden" name="frmHauteurPage" value="0">
    <input type="hidden" name="frmCodeUserInterne" value="2154">
    <tr><td valign=top>
     
    <table class=txt cellspacing=0 cellpadding=0  width=100%>
    <tr><td>
    <script>
    function AffichageWait(){
    pageWidth = 0;pageHeight = 0;
    pageWidth =  window.innerWidth;
    pageWidth = (pageWidth)? pageWidth : document.documentElement.clientWidth;
    pageWidth = (pageWidth)? pageWidth: document.body.clientWidth;
    pageHeight =  window.innerHeight;
    pageHeight = (pageHeight)? pageHeight: document.documentElement.clientHeight;
    pageHeight = (pageHeight)? pageHeight: document.body.clientHeight;
    eval("var lobj_Div=document.all.WAIT;");
    var posLeft = (pageWidth-lobj_Div.offsetWidth)/2;
    lobj_Div.style.left = (posLeft<0)?0+"px":posLeft+"px";
    var posTop = (pageHeight-lobj_Div.offsetHeight)/2;
    lobj_Div.style.top = (posTop<0)?0+"px":posTop+"px";
    lobj_Div.style.visibility='visible';
    }
    </script>
    <div id="WAIT" style="position:absolute;width:250px;visibility:hidden">
    </div>
    <table class=txt>
    <tr><td>
    <table class="txt" cellspacing="0" cellpadding="0" border="0" width="899" bgcolor="#FFFFFF">
    <tr>
    <td width="1" rowspan="4"><img src="x.gif" height="100%" width="1"> </td>
    <td width="5" height="1"> <img src="x.gif" width="5" height="1"> </td>
    <td width="100" height="1"> <img src="x.gif" width="150" height="1"> </td>
    <td width="5" height="1"> <img src="x.gif" width="5" height="1"> </td>
    <td width="600" height="1"> <img src="x.gif" width="685" height="1"> </td>
    <td width="5" height="1"> <img src="x.gif" width="5" height="1"> </td>
    </tr>
    <tr>
    <td width="5"><img src="cahg.gif" height="5" width="5"></td>
    <td colspan="3"><img src="bordh.gif" height="5" width="100%"></td>
    <td><img src="cahd.gif" height="5" width="5"></td>
    </tr>
    <tr>
    <td><img src="bordg.gif" height="100%" width="5"></td>
    <td background="FondTblArrondi.gif" align="center"></td>
    <td height="80" background="FondTblArrondi.gif"></td>
    <td background="FondTblArrondi.gif" valign="bottom">
    <table class="txt" width="100%" height="100%" border="0">
    <tr><td align="right"><table class="txt"><tr><td>&nbsp;</td>
    </tr></table></td></tr>
    <script>
    window.onload = function(){RedescendreA(0);}
    </script>
    <tr><td>&nbsp;</td></tr>
    <tr><td class="title" valign="bottom"></td></tr>
    </table></td>
    <td><img src="bordd.gif" height="100%" width="5"></td>
    </tr>
    <tr>
    <td height="5"><img src="bordg.gif" height="5" width="5"></td>
    <td height="5" colspan="2" background="FondTblArrondi.gif"><img src="x.gif" width="150" height="5"></td>
    <td height="5"><img src="bordb.gif" height="5" width="100%"></td>
    <td height="5"><img src="cabd.gif" height="5" width="5"></td>
    </tr>
    <tr>
    <td><img src="x.gif" height="500" width="1"> </td>
    <td colspan="3" valign="top" background="FondTblArrondi.gif" height="100%">
    <table cellspacing="0" cellpadding="0" width="100%" height="100%" border="0" bgcolor="#FFFFFF">
    <tr><td height="0">
    <table class=txt width=100% cellspacing=0 cellpadding=0 border=0>
    <tr>
    <td height=22><img src="bordg.gif" height="22" width="5"></td>
    <td colspan=3 background="FondTblArrondi.gif"><table class=txt cellspacing=0 cellpadding=0><tr>
    <td><img src=x.gif height=22 width=7></td>
    <td><img src=il_fleche1.gif></td>
    <td><img src=x.gif height=22 width=5></td>
    <td height=22><a href="javascript:ClickBouton('$Menu|Explorer.Main.EXPLO')" class=Menu>Explorateur</a></td>
    </tr></table></td>
    <td height=22><img src="bordd.gif" height="22" width="5"></td>
    </tr>
    </table>
     
    </td></tr>
    <tr><td height="100%">
    <table class="txt" width="100%" cellspacing="0" cellpadding="0" height="100%">
    <tr>
    <td background="bordg.gif"><img src="x.gif" height="20" width="5"></td>
    <td width="99%" background="FondTblArrondi.gif"></td>
    <td background="bordd.gif"><img src="x.gif" height="20" width="5"></td>
    </tr>
    </table>
    </td></tr>
    </table>
    </td>
    <td valign="top"><table class="txt" width="100%"><tr><td><table class=txt border=0 cellspacing="0" cellpadding="0" width="100%">
    <tr><td background="onglet_bg.gif"><table class=txt cellspacing="0" cellpadding="0" width=100%><tr>
    <td>
    <table cellspacing="0" cellpadding="0" class=txt>
    <tr>
    <td width=9 height=21 background="ong_left_on.gif"><img  BORDER="0" src=x.gif height=21 width=9></td>
    <td background="ong_middle_on.gif" nowrap ><a class=ongletSelect href="javascript:ClickBouton('$ONG_CHG|BONG_0|NAV');" style="">Explorateur</a></td>
    <td width=9 height=21 background="ong_right_on.gif"><img  BORDER="0" src=x.gif height=21 width=9></td>
    <td width=9 height=21 background="ong_left.gif"><img  BORDER="0" src=x.gif height=21 width=9></td>
    <td background="ong_middle.gif" nowrap><a class=ongletNonSelect href="javascript:ClickBouton('$ONG_CHG|BONG_0|ROOT');" style="">Points d'entrée</a></td>
    <td width=9 height=21 background="ong_right.gif"><img BORDER="0" src=x.gif height=21 width=9></td>
    </tr>
    </table>
    </td>
    </tr></table>
    </td></tr>
    <tr><td id="sous_onglets" height="300" valign="top" >
    <table class=txt border=0 width=100%>
    <tr><td>
    <table class=txt cellspacing=0 cellpadding=0 width="100%" height="100%" border=0 >
    <tr>
    <td height="5" width="5"><img src="cahg.gif" height="5" width="5"></td>
    <td height="5" width="100%"><img src="bordh.gif" height="5" width="100%"></td>
    <td height="5" width="5"><img src="cahd.gif" height="5" width="5"></td>
    </tr>
    <tr>
    <td width="5" height="100%"><img src="bordg.gif" width="5" height="100%"></td>
    <td height="5" width="100%" background="FondTblArrondi.gif" valign=top><table oncontextmenu="return false;" class=txt border=0 width=100%>
    <tr>
    <td colspan=2>
    <table width=100%><tr>
    <td class=saisie><table class=txt><tr>
    <td class=saisie>Point d'entrée :</td>
    <td><select name="frmArbRoot" class=Txt 
    onFocus="GererBtnEnCours(document.all.btnOPA_T)" STYLE="background-color_OBLG_:#FFFACD" ><option value="">Choisir ...</option>
    <option  value="127_2621" >[Admin Fichiers SPV] docs</option>
    <option  value="111_1223" >[Contrib Agenda(s) Groupe] AGENDA GROUPE</option>
    <option  value="5_32" >[Contrib Juridique Assurances (All)] ASSURANCES</option>
    <option  value="114_301" >[Contrib Logistique] LOGISTIQUE</option>
    <option  value="246_42" >[Contrib Marketing (All)] CONTRIB MARKETING</option>
    <option  value="17_31" >[Contrib SERQ (All)] serq</option>
    <option  value="303_66586" selected>[Nathalie ESNAULT] groupe</option>
    <option  value="1_117" >[Public] Assurances</option>
    <option  value="1_1178" >[Public] Communication</option>
    <option  value="1_1222" >[Public] CORDA</option>
    <option  value="1_1224" >[Public] Espace Services</option>
    <option  value="1_1229" >[Public] Finances</option>
    <option  value="1_59" >[Public] Informatique</option>
    <option  value="1_6463" >[Public] Logistique</option>
    <option  value="1_1297" >[Public] Marketing</option>
    <option  value="1_3776" >[Public] RH</option>
    <option  value="1_183" >[Public] SERQ</option>
    <option  value="61_6210" >[Siège] CE SIEGE</option>
    <option  value="61_3288" >[Siège] CHSCT SIEGE</option>
    <option  value="1425_1290" >[User Mktg Produits] produits</option>
    <option  value="1421_1269" >[User Mktg Tous Marchés] alimentaire</option>
    <option  value="1421_1280" >[User Mktg Tous Marchés] detergence</option>
    <option  value="1421_65283" >[User Mktg Tous Marchés] peintures</option>
    <option  value="1421_23646" >[User Mktg Tous Marchés] synthese_pharma</option>
    <option  value="1497_4698" >[User SERQ Revue Dir - Session RAQ - Indicateurs] management_qse</option>
    <option  value="1544_66643" >[User SERQ Sécurité exploit. Autorisation ICPE] stocks</option>
    <option  value="1500_6215" >[User SERQ Sécurité exploit. Report ICPE] reporting_icpe</option>
    </select>
    </td>
    <td><a  id="btnOPA" href="javascript:ClickBouton('ActionRootSelectionner');" onfocus="GererBtnEnCours(document.all.btnOPA_T);" onblur="ChangeCouleurBtn(document.all.btnOPA_T,'N');"><table class=txt id="btnOPA_T" cellspacing=0 cellpadding=0 style="cursor:hand" onmouseover="ChangeCouleurBtn(this,'S')" onmouseout="ChangeCouleurBtn(this,'N')" lockSurvol="N" btnCible="btnOPA" onclick="ClickBouton('ActionRootSelectionner');" title="Ouvrir à partir de ce point d'entrée" ><tr><td style="background-image:url(BGN.gif)"><img BORDER="0" src="x.gif" height=21 width=14></td><td nowrap style="background-image:url(BCN.gif)"><b>Ouvrir</b></td><td style="background-image:url(BDN.gif)"><img BORDER="0" src="x.gif" height=21 width=14></td></tr></table></a>
    <script>
        gary_LstBoutons[llng_IdxBtn++]='btnOPA_T';
    </script>
    </td>
    </tr></table></td>
    </tr></table>
    </td>
    </tr>
    <tr>
    <td colspan=2>
    <table class=txt cellspacing=0 cellpadding=0 width=100%>
    <tr>
    <td align=left><table class=txt cellspacing=0 cellpadding=2><tr>
    <td><a id="" href="javascript:ClickBouton('ActionDossierOuvrir|66586');"><img src="drive.gif" border=0></a></td>
    </tr></table>
    </td>
    </tr>
    </table>
    </tr>
    <tr>
    <td valign=top width=120 height=300><div style="border:inset 2px #EEEEEE;overflow: auto; width : 200; height:450;background-color : #FFFFFF"><table class=txt width=100% border=0 cellspacing=0>
    <tr class=EnteteList>
    <td width=16><img src="file_open.gif" ></td>
    <td align=left width=90%>0 Dossier</td>
    </tr>
    <tr>
    <td height=150 colspan=2  oncontextmenu="return MenuContextuelFichier(this);" menuItems="[Ajouter un dossier#ActionDossierAjouter|#images/agora/add.gif]" ClefApplication="" >&nbsp;</td>
    </tr>
    </table>
    </div></td>
    <td valign=top width=300 height=300><div style="border:inset 2px #EEEEEE;overflow: auto; width : 450; height:450;background-color : #FFFFFF"><table class=txt width=100% border=0 cellspacing=0>
    <tr class=EnteteList>
    <td width=16><img src="file_open.gif" ></td>
    <td align=left width=80%>
    <table class=EnteteList cellspacing=0 cellpadding=0><tr>
    <td>1 Fichier</td>
    <td>&nbsp;</td>
    <td>()</td>
    <td>&nbsp;</td>
    <td><a id="" href="javascript:ClickBouton('ActionMasqueAnnuler');" title="Annuler le masque"><span class=EnteteList>[Voir tous]</span></a></td>
    </tr></table>
    </td>
    <td align=center width=32>&nbsp;</td>
    <td align=center width=60>Taille</td>
    <td align=center width=80>Modifié</td>
    </tr>
    <tr class=LignePaire>
    <td class=cell1 title='Visualisation du fichier' align=center><a id="" href="javascript:ClickBouton('ActionFichierDefaultIcone|66588');"><img src="pdf_petit.gif" border=0></a></td>
    <td  title="  (66586-66588)"  oncontextmenu="return MenuContextuelFichier(this);" menuItems="[Renommer#ActionDossierRenommer|66588#][][Déplacer#ActionDossierDeplacer|66588#][Supprimer#ActionDossierSupprimer|66588','La suppression de ce fichier sera définitive.\n\nVoulez-vous continuer ?#images/agora/sup.gif][][Analyser#ActionDossierAnalyser|66588#]" ClefApplication=""  class=cellx><a id="" href="javascript:ClickBouton('ActionFichierDefaultNom|66588');">prcexp02_preparation_des_marchandises_et_des_tournees_ind00.pdf</a></td>
    <td align=right title='Téléchargement du fichier' nowrap class=cellx><a id="" href="javascript:ClickBouton('ActionFichierTelechargerDepuisExplorateur|66588');"><img src=save.gif border=0></a></td>
    <td align=right nowrap class=cellx>261,17 ko</td>
    <td align=right nowrap class=cellx title="10/02/2010 12:34:23">10/02/2010</td>
    </tr>
    </table>
    </div></td>
    </tr>
    <tr>
    <td colspan=2><table class=txt style="border : 1px solid #000000" width=100% border=0>
    <tr>
    </tr>
    <tr><td>
    <script>
    var glng_IndiceUpload=0;
    function Retirer(IndiceARetirer){
       eval("var lastInput=document.frmExcedent.UploadIndice_" + (IndiceARetirer) + "");
       eval("var CntInput=document.all.CntUpload_" + (IndiceARetirer) + "");
       eval("var lastCell=document.all.UploadLib_" + (IndiceARetirer) + "");
       lastCell.innerHTML="<strike>"  + lastInput.value +"</strike>";
       CntInput.innerHTML='';
    }
    function AjouterFileUpload(){
       if(glng_IndiceUpload>0){
           eval("var lastInput=document.frmExcedent.UploadIndice_" + (glng_IndiceUpload - 1) + "");
           eval("var CntInput=document.all.CntUpload_" + (glng_IndiceUpload - 1) + "");
           eval("var lastCell=document.all.UploadLib_" + (glng_IndiceUpload - 1) + "");
           if(lastInput.value==''){return false;}
           lastCell.innerHTML="<table class=txt cellspacing=0 cellpadding=0 width=100%><tr><td>" + lastInput.value + "</td><td align=right><a href='javascript:Retirer(" + (glng_IndiceUpload - 1) + ")'><img src=CroixRouge.gif border=0 title='Retirer ce document de la liste des documents à télécharger.'></a></td></tr></table>";
           CntInput.style.visibility='hidden';
       }
       eval("var lstr_Zone=document.all.ZoneUpload_" + glng_IndiceUpload + ".innerHTML;");
       lstr_Zone="<table class=txt border=0 cellspacing=0 width=100% cellpadding=0><tr><td width=40>";
       if (glng_IndiceUpload ==0){
           lstr_Zone+=(glng_IndiceUpload + 1) + "<sup>er</sup>&nbsp;";
       }else{
           lstr_Zone+=(glng_IndiceUpload + 1) + "<sup>ème</sup>&nbsp;";
       }
       lstr_Zone+="<span height=15 style=';position:absolute' id=CntUpload_" + glng_IndiceUpload + "><input type=file class=txt onChange='AjouterFileUpload();' name=UploadIndice_" + glng_IndiceUpload + " size=65></span>";
       lstr_Zone+="</td><td id=UploadLib_" + glng_IndiceUpload + " nowrap height=15 width=350></td><td valign=top>";
       lstr_Zone+="</td>";
       lstr_Zone+="<td align=right><table cellspacing=0 cellpadding=0><tr>";
       lstr_Zone+="</tr></table></td>";
       lstr_Zone+="</tr></table><div id=ZoneUpload_" + (glng_IndiceUpload + 1) + "></div>";
       eval("document.all.ZoneUpload_" + glng_IndiceUpload + ".innerHTML=lstr_Zone;");
       glng_IndiceUpload++;
    }
    </script>
    <table class=txt width=100% border=0>
    <tr>
    <td id=ZoneUpload><div id=ZoneUpload_0></div></td>
    </tr>
    </table>
    </td></tr>
    <script>AjouterFileUpload();</script>
    <tr><td><table class=txt cellspacing=0 cellpadding=0 width="100%" height="100%" border=0 >
    <tr>
    <td height="5" width="5"><img src="cahg.gif" height="5" width="5"></td>
    <td height="5" width="100%"><img src="bordh.gif" height="5" width="100%"></td>
    <td height="5" width="5"><img src="cahd.gif" height="5" width="5"></td>
    </tr>
    <tr>
    <td width="5" height="100%"><img src="bordg.gif" width="5" height="100%"></td>
    <td height="5" width="100%" background="FondTblArrondi.gif" valign=top><table class=txt>
    <tr>
    <td class=saisie valign=top>Mise à jour de fichier</td>
    </tr>
    <tr><td>Pour remplacer un fichier existant, <b>ne le supprimez pas</b>. Faite simplement un téléchargement du nouveau fichier avec le même nom. Ceci évite la reconstruction des liens sur les pages.</td></tr>
    </table>
    </td>
    <td width="5" height="100%"><img src="bordd.gif" width="5" height="100%"></td>
    </tr>
    <tr>
    <td height="5" width="5"><img src="cabg.gif" height="5" width="5"></td>
    <td height="5" width="100%"><img src="bordb.gif" height="5" width="100%"></td>
    <td height="5" width="5"><img src="cabd.gif" height="5" width="5"></td>
    </tr>
    </table>
    </td><td align=right><a  id="btnTelechargerFichier" href="javascript:ClickBouton('ActionFichierTelecharger');" onfocus="GererBtnEnCours(document.all.btnTelechargerFichier_T);" onblur="ChangeCouleurBtn(document.all.btnTelechargerFichier_T,'N');"><table class=txt id="btnTelechargerFichier_T" cellspacing=0 cellpadding=0 style="cursor:hand" onmouseover="ChangeCouleurBtn(this,'S')" onmouseout="ChangeCouleurBtn(this,'N')" lockSurvol="N" btnCible="btnTelechargerFichier" onclick="ClickBouton('ActionFichierTelecharger');" title="Télécharger" ><tr><td style="background-image:url(BGN.gif)"><img BORDER="0" src="x.gif" height=21 width=14></td><td nowrap style="background-image:url(BCN.gif)"><b>Télécharger</b></td><td style="background-image:url(BDN.gif)"><img BORDER="0" src="x.gif" height=21 width=14></td></tr></table></a>
    <script>
        gary_LstBoutons[llng_IdxBtn++]='btnTelechargerFichier_T';
    </script>
    </td>
    </table>
    </td>
    </tr>
    </table>
    </td>
    <td width="5" height="100%"><img src="bordd.gif" width="5" height="100%"></td>
    </tr>
    <tr>
    <td height="5" width="5"><img src="cabg.gif" height="5" width="5"></td>
    <td height="5" width="100%"><img src="bordb.gif" height="5" width="100%"></td>
    <td height="5" width="5"><img src="cabd.gif" height="5" width="5"></td>
    </tr>
    </table>
     
    </td></tr>
    </table>
     
    </td></tr>
    </table>
    </td></tr></table></td>
    <td><img src="x.gif" width="5" heigth="100%"></td>
    </tr>
    <tr>
    <td></td>
    <td><img src="cabg.gif" height="5" width="5"></td>
    <td><img src="bordb.gif" height="5" width="100%"></td>
    <td><img src="cabd.gif" height="5" width="5"></td>
    <td><img src="x.gif" height="5" width="685"></td>
    <td><img src="x.gif" height="5" width="5"></td>
    </tr>
    </table>
    </td></tr>
    </table>
     
    </td></tr>
    </table>
    <script>
    function ClickBoutonAvecMessageAttente(astr_ActionAfter,astr_Message){
       var haut = (screen.height - 160)/2
       var gauche = (screen.width - 520)/2
       var msgAttente=window.open('/MessageAttente.asp?msgKey=2014021812_E3BD8D22-43AB-CA4A-9E30-48393338D38F','PopupMessageInfo', 'toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no,width=520,height=160,top=' + haut + 'left=' + gauche + '');
       var date = new Date();
       var curDate = null;
       var millis=2000;
       if(astr_ActionAfter==null){
       }else{
          do{curDate = new Date();
          }while((msgAttente.document.readyState!='complete') && (curDate-date < millis));
          if(astr_Message==null){
              ClickBouton(astr_ActionAfter);
          }else{
              ClickBouton(astr_ActionAfter,astr_Message);
          }
       }
    }
    </script>
     
    </td></tr>
    <input id="EndInput" type="image" height="1" width="1" style="position:absolute">
    </form>
    </table>
    <div id=ZoneCalend style="visibility:hidden;position:absolute"></div>
    </body>
    </HTML>
    Concernant href="javascript:ClickBouton('ActionRootSelectionner');"Lorsque je mets la souris sur le bouton "ouvrir" il m'affiche dans la ligne en bas à gauche de l'écran "javascript:ClickBouton('ActionRootSelectionner')" donc j'imagine que cela sert juste à l'affichage.

    La fonction ClickBoutoun marchait bien sous IE6, ce n'est donc pas un problème de "," dans le passage de paramètres.

  10. #10
    Membre émérite
    Avatar de Kaamo
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    1 165
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 1 165
    Points : 2 778
    Points
    2 778
    Par défaut
    Code javascript : Sélectionner tout - Visualiser dans une fenêtre à part
    <SCRIPT type="text/JavaScript" SRC="Script.js"></SCRIPT>
    Comme je l'ai mis dans le premier post, c'est <script type="text/javascript">, sans les majuscules à javascript. JavaScript, avec les majuscules, c'est quand on l'écrit ailleurs que dans du code
    La ligne en rouge n'a pas changé depuis la dernière fois, et mes modifications proposées dans le #post7689102 n'ont donc pas été appliquées encore ?

  11. #11
    Rédacteur

    Avatar de Bovino
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2008
    Messages
    23 647
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 53
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2008
    Messages : 23 647
    Points : 91 220
    Points
    91 220
    Billets dans le blog
    20
    Par défaut
    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    <base href="res://C:\CECILE\SOURCES\SVN\IntranetV3\BLL\BrenntagRessources.dll" >

    C'est quoi ça ???
    Pas de question technique par MP !
    Tout le monde peut participer à developpez.com, vous avez une idée, contactez-moi !
    Mes formations video2brain : La formation complète sur JavaScriptJavaScript et le DOM par la pratiquePHP 5 et MySQL : les fondamentaux
    Mon livre sur jQuery
    Module Firefox / Chrome d'intégration de JSFiddle et CodePen sur le forum

  12. #12
    Futur Membre du Club
    Femme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juillet 2012
    Messages
    16
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Conseil

    Informations forums :
    Inscription : Juillet 2012
    Messages : 16
    Points : 9
    Points
    9
    Par défaut
    Il s'agit d'une dll de ressources qui est appelée dans le code. Je n'en sais pas plus. Je l'ai "recompilée" sous le nouvel environnement avec un outil déjà en place (exe dont je n'ai pas le code) mais je ne sais pas la tester. A priori, elle ne pose pas de problème. Je crois qu'elle contient des images (fichier .gif, .jpg, .bmp, .css et .htm) et notamment les scripts JavaScript (script.js et calendrier.js).

    Tu crois que c'est ça qui pose problème ?

  13. #13
    Rédacteur

    Avatar de Bovino
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2008
    Messages
    23 647
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 53
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2008
    Messages : 23 647
    Points : 91 220
    Points
    91 220
    Billets dans le blog
    20
    Par défaut
    Heu... tu sais à quoi sert la balise <base> ?

    La fonction ClickBoutoun marchait bien sous IE6
    C'est bien, mais dans les plus de 400 lignes de code que tu n'as bien entendu pas prit la peine de formater convenablement pour le rendre un tant soit peu lisible, il n'y a pas de trace de cette fonction apparemment.

    De toute façon, le code est particulièrement horrible et regroupe un grand nombre des pires pratiques en matière de développement Web...
    Pas de question technique par MP !
    Tout le monde peut participer à developpez.com, vous avez une idée, contactez-moi !
    Mes formations video2brain : La formation complète sur JavaScriptJavaScript et le DOM par la pratiquePHP 5 et MySQL : les fondamentaux
    Mon livre sur jQuery
    Module Firefox / Chrome d'intégration de JSFiddle et CodePen sur le forum

  14. #14
    Futur Membre du Club
    Femme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juillet 2012
    Messages
    16
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Conseil

    Informations forums :
    Inscription : Juillet 2012
    Messages : 16
    Points : 9
    Points
    9
    Par défaut
    Citation Envoyé par Kaamo Voir le message
    Code javascript : Sélectionner tout - Visualiser dans une fenêtre à part
    <SCRIPT type="text/JavaScript" SRC="Script.js"></SCRIPT>
    Comme je l'ai mis dans le premier post, c'est <script type="text/javascript">, sans les majuscules à javascript. JavaScript, avec les majuscules, c'est quand on l'écrit ailleurs que dans du code
    La ligne en rouge n'a pas changé depuis la dernière fois, et mes modifications proposées dans le #post7689102 n'ont donc pas été appliquées encore ?
    Je suis vraiment désolée
    C'est vraiment du chinois pour moi et il y a des appels partout avec plein de guillemets doublés et triplés alors je m'y perds Il faut dire que du VB6 qui génère du HTML qui, lui-même appelle du JavaScript, c'est un peu beaucoup.

    Normalement, ça devrait être correct cette fois-ci.
    Voici le code html généré :
    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    <HTML>
    <base href="res://C:\CECILE\SOURCES\SVN\IntranetV3\BLL\BrenntagRessources.dll" > 
    <LINK REL="STYLESHEET" HREF="style.css" TYPE="text/css">
    <SCRIPT type="text/javascript" SRC="script.js"></SCRIPT>
    <SCRIPT type="text/javascript" SRC="calendrier.js"></SCRIPT>
    <script>
    function MarquerHauteur(){
        document.frmExcedent.frmHauteurPage.value = document.body.scrollTop
    }
    function RedescendreA(alng_hauteur){scrollTo(0,alng_hauteur);}
    var gary_LstBoutons = new Array();
    function GererBtnEnCours(obj){
        for(var i=0;i<gary_LstBoutons.length;i++){
            eval("document.all." + gary_LstBoutons[i] + ".lockSurvol='N';");
            eval("ChangeCouleurBtn(document.all." + gary_LstBoutons[i] + ",'N');");
        }
        if(obj!=null){
            ChangeCouleurBtn(obj,'L');
            obj.lockSurvol='Y'
            gstr_BtnSubmit=obj.btnCible;
        }else{
            gstr_BtnSubmit="#";
        }
    }
    function ChangeCouleurBtn(obj,Survol){
        if(obj.lockSurvol=='N'){
            obj.cells[0,0].style.backgroundImage='url(BG'+Survol+'.gif)';
            obj.cells[0,1].style.backgroundImage='url(BC'+Survol+'.gif)';
            obj.cells[0,2].style.backgroundImage='url(BD'+Survol+'.gif)';
        }
    }
    var llng_IdxBtn=0;
    function BeforeToSubmit(){
    }
    function SubmitFormulaireDebug(obj){
        var btn;
        if (gbln_CliqueBouton){
            return true;
        }
        else{
            if(gstr_BtnSubmit=="#"){
                return false;
            }
            else{
                eval("btn=document.all." + gstr_BtnSubmit + ";");
                btn.click();
                if(btn.tagName=='A'){return false;}
            }
        }
    }
    </script>
    <body style="margin:0" onscroll="MarquerHauteur()">
    <table class="txt" cellspacing="0" cellpadding="0" width=100% height=100%>
    <form name="frmExcedent" method=post onSubmit="return SubmitFormulaireDebug(this)" ENCTYPE="multipart/form-data">
    <input type="hidden" name="frmAction" value="#">
    <input type="hidden" name="frmParam" value="#">
    <input type="hidden" name="GuidKeyPage" value="2002141050141727602437">
    <input type="hidden" name="frmHauteurPage" value="0">
    <input type="hidden" name="frmCodeUserInterne" value="2154">
    <tr><td valign=top>
     
    <table class=txt cellspacing=0 cellpadding=0  width=100%>
    <tr><td>
    <script>
    function AffichageWait(){
    pageWidth = 0;pageHeight = 0;
    pageWidth =  window.innerWidth;
    pageWidth = (pageWidth)? pageWidth : document.documentElement.clientWidth;
    pageWidth = (pageWidth)? pageWidth: document.body.clientWidth;
    pageHeight =  window.innerHeight;
    pageHeight = (pageHeight)? pageHeight: document.documentElement.clientHeight;
    pageHeight = (pageHeight)? pageHeight: document.body.clientHeight;
    eval("var lobj_Div=document.all.WAIT;");
    var posLeft = (pageWidth-lobj_Div.offsetWidth)/2;
    lobj_Div.style.left = (posLeft<0)?0+"px":posLeft+"px";
    var posTop = (pageHeight-lobj_Div.offsetHeight)/2;
    lobj_Div.style.top = (posTop<0)?0+"px":posTop+"px";
    lobj_Div.style.visibility='visible';
    }
    </script>
    <div id="WAIT" style="position:absolute;width:250px;visibility:hidden">
    </div>
    <table class=txt>
    <tr><td>
    <table class="txt" cellspacing="0" cellpadding="0" border="0" width="899" bgcolor="#FFFFFF">
    <tr>
    <td width="1" rowspan="4"><img src="x.gif" height="100%" width="1"> </td>
    <td width="5" height="1"> <img src="x.gif" width="5" height="1"> </td>
    <td width="100" height="1"> <img src="x.gif" width="150" height="1"> </td>
    <td width="5" height="1"> <img src="x.gif" width="5" height="1"> </td>
    <td width="600" height="1"> <img src="x.gif" width="685" height="1"> </td>
    <td width="5" height="1"> <img src="x.gif" width="5" height="1"> </td>
    </tr>
    <tr>
    <td width="5"><img src="cahg.gif" height="5" width="5"></td>
    <td colspan="3"><img src="bordh.gif" height="5" width="100%"></td>
    <td><img src="cahd.gif" height="5" width="5"></td>
    </tr>
    <tr>
    <td><img src="bordg.gif" height="100%" width="5"></td>
    <td background="FondTblArrondi.gif" align="center"></td>
    <td height="80" background="FondTblArrondi.gif"></td>
    <td background="FondTblArrondi.gif" valign="bottom">
    <table class="txt" width="100%" height="100%" border="0">
    <tr><td align="right"><table class="txt"><tr><td>&nbsp;</td>
    </tr></table></td></tr>
    <script>
    window.onload = function(){RedescendreA(0);}
    </script>
    <tr><td>&nbsp;</td></tr>
    <tr><td class="title" valign="bottom"></td></tr>
    </table></td>
    <td><img src="bordd.gif" height="100%" width="5"></td>
    </tr>
    <tr>
    <td height="5"><img src="bordg.gif" height="5" width="5"></td>
    <td height="5" colspan="2" background="FondTblArrondi.gif"><img src="x.gif" width="150" height="5"></td>
    <td height="5"><img src="bordb.gif" height="5" width="100%"></td>
    <td height="5"><img src="cabd.gif" height="5" width="5"></td>
    </tr>
    <tr>
    <td><img src="x.gif" height="500" width="1"> </td>
    <td colspan="3" valign="top" background="FondTblArrondi.gif" height="100%">
    <table cellspacing="0" cellpadding="0" width="100%" height="100%" border="0" bgcolor="#FFFFFF">
    <tr><td height="0">
    <table class=txt width=100% cellspacing=0 cellpadding=0 border=0>
    <tr>
    <td height=22><img src="bordg.gif" height="22" width="5"></td>
    <td colspan=3 background="FondTblArrondi.gif"><table class=txt cellspacing=0 cellpadding=0><tr>
    <td><img src=x.gif height=22 width=7></td>
    <td><img src=il_fleche1.gif></td>
    <td><img src=x.gif height=22 width=5></td>
    <td height=22><a href="#" onclick="ClickBouton('$Menu|Explorer.Main.EXPLO')" class=Menu>Explorateur</a></td>
    </tr></table></td>
    <td height=22><img src="bordd.gif" height="22" width="5"></td>
    </tr>
    </table>
     
    </td></tr>
    <tr><td height="100%">
    <table class="txt" width="100%" cellspacing="0" cellpadding="0" height="100%">
    <tr>
    <td background="bordg.gif"><img src="x.gif" height="20" width="5"></td>
    <td width="99%" background="FondTblArrondi.gif"></td>
    <td background="bordd.gif"><img src="x.gif" height="20" width="5"></td>
    </tr>
    </table>
    </td></tr>
    </table>
    </td>
    <td valign="top"><table class="txt" width="100%"><tr><td><table class=txt border=0 cellspacing="0" cellpadding="0" width="100%">
    <tr><td background="onglet_bg.gif"><table class=txt cellspacing="0" cellpadding="0" width=100%><tr>
    <td>
    <table cellspacing="0" cellpadding="0" class=txt>
    <tr>
    <td width=9 height=21 background="ong_left_on.gif"><img  BORDER="0" src=x.gif height=21 width=9></td>
    <td background="ong_middle_on.gif" nowrap ><a class=ongletSelect href="#" onclick="ClickBouton('$ONG_CHG|BONG_0|NAV');" style="">Explorateur</a></td>
    <td width=9 height=21 background="ong_right_on.gif"><img  BORDER="0" src=x.gif height=21 width=9></td>
    <td width=9 height=21 background="ong_left.gif"><img  BORDER="0" src=x.gif height=21 width=9></td>
    <td background="ong_middle.gif" nowrap><a class=ongletNonSelect href="#" onclick="ClickBouton('$ONG_CHG|BONG_0|ROOT');" style="">Points d'entrée</a></td>
    <td width=9 height=21 background="ong_right.gif"><img BORDER="0" src=x.gif height=21 width=9></td>
    </tr>
    </table>
    </td>
    </tr></table>
    </td></tr>
    <tr><td id="sous_onglets" height="300" valign="top" >
    <table class=txt border=0 width=100%>
    <tr><td>
    <table class=txt cellspacing=0 cellpadding=0 width="100%" height="100%" border=0 >
    <tr>
    <td height="5" width="5"><img src="cahg.gif" height="5" width="5"></td>
    <td height="5" width="100%"><img src="bordh.gif" height="5" width="100%"></td>
    <td height="5" width="5"><img src="cahd.gif" height="5" width="5"></td>
    </tr>
    <tr>
    <td width="5" height="100%"><img src="bordg.gif" width="5" height="100%"></td>
    <td height="5" width="100%" background="FondTblArrondi.gif" valign=top><table oncontextmenu="return false;" class=txt border=0 width=100%>
    <tr>
    <td colspan=2>
    <table width=100%><tr>
    <td class=saisie><table class=txt><tr>
    <td class=saisie>Point d'entrée :</td>
    <td><select name="frmArbRoot" class=Txt 
    onFocus="GererBtnEnCours(document.all.btnOPA_T)" STYLE="background-color_OBLG_:#FFFACD" ><option value="">Choisir ...</option>
    <option  value="127_2621" >[Admin Fichiers SPV] docs</option>
    <option  value="111_1223" >[Contrib Agenda(s) Groupe] AGENDA GROUPE</option>
    <option  value="5_32" >[Contrib Juridique Assurances (All)] ASSURANCES</option>
    <option  value="114_301" >[Contrib Logistique] LOGISTIQUE</option>
    <option  value="246_42" >[Contrib Marketing (All)] CONTRIB MARKETING</option>
    <option  value="17_31" >[Contrib SERQ (All)] serq</option>
    <option  value="303_66586" selected>[Nathalie ESNAULT] groupe</option>
    <option  value="1_117" >[Public] Assurances</option>
    <option  value="1_1178" >[Public] Communication</option>
    <option  value="1_1222" >[Public] CORDA</option>
    <option  value="1_1224" >[Public] Espace Services</option>
    <option  value="1_1229" >[Public] Finances</option>
    <option  value="1_59" >[Public] Informatique</option>
    <option  value="1_6463" >[Public] Logistique</option>
    <option  value="1_1297" >[Public] Marketing</option>
    <option  value="1_3776" >[Public] RH</option>
    <option  value="1_183" >[Public] SERQ</option>
    <option  value="61_6210" >[Siège] CE SIEGE</option>
    <option  value="61_3288" >[Siège] CHSCT SIEGE</option>
    <option  value="1425_1290" >[User Mktg Produits] produits</option>
    <option  value="1421_1269" >[User Mktg Tous Marchés] alimentaire</option>
    <option  value="1421_1280" >[User Mktg Tous Marchés] detergence</option>
    <option  value="1421_65283" >[User Mktg Tous Marchés] peintures</option>
    <option  value="1421_23646" >[User Mktg Tous Marchés] synthese_pharma</option>
    <option  value="1497_4698" >[User SERQ Revue Dir - Session RAQ - Indicateurs] management_qse</option>
    <option  value="1544_66643" >[User SERQ Sécurité exploit. Autorisation ICPE] stocks</option>
    <option  value="1500_6215" >[User SERQ Sécurité exploit. Report ICPE] reporting_icpe</option>
    </select>
    </td>
    <td><a  id="btnOPA" href="#" onclick="ClickBouton('ActionRootSelectionner');" onfocus="GererBtnEnCours(document.all.btnOPA_T);" onblur="ChangeCouleurBtn(document.all.btnOPA_T,'N');"><table class=txt id="btnOPA_T" cellspacing=0 cellpadding=0 style="cursor:hand" onmouseover="ChangeCouleurBtn(this,'S')" onmouseout="ChangeCouleurBtn(this,'N')" lockSurvol="N" btnCible="btnOPA" onclick="ClickBouton('ActionRootSelectionner');" title="Ouvrir à partir de ce point d'entrée" ><tr><td style="background-image:url(BGN.gif)"><img BORDER="0" src="x.gif" height=21 width=14></td><td nowrap style="background-image:url(BCN.gif)"><b>Ouvrir</b></td><td style="background-image:url(BDN.gif)"><img BORDER="0" src="x.gif" height=21 width=14></td></tr></table></a>
    <script>
        gary_LstBoutons[llng_IdxBtn++]='btnOPA_T';
    </script>
    </td>
    </tr></table></td>
    </tr></table>
    </td>
    </tr>
    <tr>
    <td colspan=2>
    <table class=txt cellspacing=0 cellpadding=0 width=100%>
    <tr>
    <td align=left><table class=txt cellspacing=0 cellpadding=2><tr>
    <td><a id="" href="#" onclick="ClickBouton('ActionDossierOuvrir|66586');"><img src="drive.gif" border=0></a></td>
    </tr></table>
    </td>
    </tr>
    </table>
    </tr>
    <tr>
    <td valign=top width=120 height=300><div style="border:inset 2px #EEEEEE;overflow: auto; width : 200; height:450;background-color : #FFFFFF"><table class=txt width=100% border=0 cellspacing=0>
    <tr class=EnteteList>
    <td width=16><img src="file_open.gif" ></td>
    <td align=left width=90%>0 Dossier</td>
    </tr>
    <tr>
    <td height=150 colspan=2  oncontextmenu="return MenuContextuelFichier(this);" menuItems="[Ajouter un dossier#ActionDossierAjouter|#images/agora/add.gif]" ClefApplication="" >&nbsp;</td>
    </tr>
    </table>
    </div></td>
    <td valign=top width=300 height=300><div style="border:inset 2px #EEEEEE;overflow: auto; width : 450; height:450;background-color : #FFFFFF"><table class=txt width=100% border=0 cellspacing=0>
    <tr class=EnteteList>
    <td width=16><img src="file_open.gif" ></td>
    <td align=left width=80%>
    <table class=EnteteList cellspacing=0 cellpadding=0><tr>
    <td>1 Fichier</td>
    <td>&nbsp;</td>
    <td>()</td>
    <td>&nbsp;</td>
    <td><a id="" href="#" onclick="ClickBouton('ActionMasqueAnnuler');" title="Annuler le masque"><span class=EnteteList>[Voir tous]</span></a></td>
    </tr></table>
    </td>
    <td align=center width=32>&nbsp;</td>
    <td align=center width=60>Taille</td>
    <td align=center width=80>Modifié</td>
    </tr>
    <tr class=LignePaire>
    <td class=cell1 title='Visualisation du fichier' align=center><a id="" href="#" onclick="ClickBouton('ActionFichierDefaultIcone|66588');"><img src="pdf_petit.gif" border=0></a></td>
    <td  title="  (66586-66588)"  oncontextmenu="return MenuContextuelFichier(this);" menuItems="[Renommer#ActionDossierRenommer|66588#][][Déplacer#ActionDossierDeplacer|66588#][Supprimer#ActionDossierSupprimer|66588','La suppression de ce fichier sera définitive.\n\nVoulez-vous continuer ?#images/agora/sup.gif][][Analyser#ActionDossierAnalyser|66588#]" ClefApplication=""  class=cellx><a id="" href="#" onclick="ClickBouton('ActionFichierDefaultNom|66588');">prcexp02_preparation_des_marchandises_et_des_tournees_ind00.pdf</a></td>
    <td align=right title='Téléchargement du fichier' nowrap class=cellx><a id="" href="#" onclick="ClickBouton('ActionFichierTelechargerDepuisExplorateur|66588');"><img src=save.gif border=0></a></td>
    <td align=right nowrap class=cellx>261,17 ko</td>
    <td align=right nowrap class=cellx title="10/02/2010 12:34:23">10/02/2010</td>
    </tr>
    </table>
    </div></td>
    </tr>
    <tr>
    <td colspan=2><table class=txt style="border : 1px solid #000000" width=100% border=0>
    <tr>
    </tr>
    <tr><td>
    <script>
    var glng_IndiceUpload=0;
    function Retirer(IndiceARetirer){
       eval("var lastInput=document.frmExcedent.UploadIndice_" + (IndiceARetirer) + "");
       eval("var CntInput=document.all.CntUpload_" + (IndiceARetirer) + "");
       eval("var lastCell=document.all.UploadLib_" + (IndiceARetirer) + "");
       lastCell.innerHTML="<strike>"  + lastInput.value +"</strike>";
       CntInput.innerHTML='';
    }
    function AjouterFileUpload(){
       if(glng_IndiceUpload>0){
           eval("var lastInput=document.frmExcedent.UploadIndice_" + (glng_IndiceUpload - 1) + "");
           eval("var CntInput=document.all.CntUpload_" + (glng_IndiceUpload - 1) + "");
           eval("var lastCell=document.all.UploadLib_" + (glng_IndiceUpload - 1) + "");
           if(lastInput.value==''){return false;}
           lastCell.innerHTML="<table class=txt cellspacing=0 cellpadding=0 width=100%><tr><td>" + lastInput.value + "</td><td align=right><a href='javascript:Retirer(" + (glng_IndiceUpload - 1) + ")'><img src=CroixRouge.gif border=0 title='Retirer ce document de la liste des documents à télécharger.'></a></td></tr></table>";
           CntInput.style.visibility='hidden';
       }
       eval("var lstr_Zone=document.all.ZoneUpload_" + glng_IndiceUpload + ".innerHTML;");
       lstr_Zone="<table class=txt border=0 cellspacing=0 width=100% cellpadding=0><tr><td width=40>";
       if (glng_IndiceUpload ==0){
           lstr_Zone+=(glng_IndiceUpload + 1) + "<sup>er</sup>&nbsp;";
       }else{
           lstr_Zone+=(glng_IndiceUpload + 1) + "<sup>ème</sup>&nbsp;";
       }
       lstr_Zone+="<span height=15 style=';position:absolute' id=CntUpload_" + glng_IndiceUpload + "><input type=file class=txt onChange='AjouterFileUpload();' name=UploadIndice_" + glng_IndiceUpload + " size=65></span>";
       lstr_Zone+="</td><td id=UploadLib_" + glng_IndiceUpload + " nowrap height=15 width=350></td><td valign=top>";
       lstr_Zone+="</td>";
       lstr_Zone+="<td align=right><table cellspacing=0 cellpadding=0><tr>";
       lstr_Zone+="</tr></table></td>";
       lstr_Zone+="</tr></table><div id=ZoneUpload_" + (glng_IndiceUpload + 1) + "></div>";
       eval("document.all.ZoneUpload_" + glng_IndiceUpload + ".innerHTML=lstr_Zone;");
       glng_IndiceUpload++;
    }
    </script>
    <table class=txt width=100% border=0>
    <tr>
    <td id=ZoneUpload><div id=ZoneUpload_0></div></td>
    </tr>
    </table>
    </td></tr>
    <script>AjouterFileUpload();</script>
    <tr><td><table class=txt cellspacing=0 cellpadding=0 width="100%" height="100%" border=0 >
    <tr>
    <td height="5" width="5"><img src="cahg.gif" height="5" width="5"></td>
    <td height="5" width="100%"><img src="bordh.gif" height="5" width="100%"></td>
    <td height="5" width="5"><img src="cahd.gif" height="5" width="5"></td>
    </tr>
    <tr>
    <td width="5" height="100%"><img src="bordg.gif" width="5" height="100%"></td>
    <td height="5" width="100%" background="FondTblArrondi.gif" valign=top><table class=txt>
    <tr>
    <td class=saisie valign=top>Mise à jour de fichier</td>
    </tr>
    <tr><td>Pour remplacer un fichier existant, <b>ne le supprimez pas</b>. Faite simplement un téléchargement du nouveau fichier avec le même nom. Ceci évite la reconstruction des liens sur les pages.</td></tr>
    </table>
    </td>
    <td width="5" height="100%"><img src="bordd.gif" width="5" height="100%"></td>
    </tr>
    <tr>
    <td height="5" width="5"><img src="cabg.gif" height="5" width="5"></td>
    <td height="5" width="100%"><img src="bordb.gif" height="5" width="100%"></td>
    <td height="5" width="5"><img src="cabd.gif" height="5" width="5"></td>
    </tr>
    </table>
    </td><td align=right><a  id="btnTelechargerFichier" href="#" onclick="ClickBouton('ActionFichierTelecharger');" onfocus="GererBtnEnCours(document.all.btnTelechargerFichier_T);" onblur="ChangeCouleurBtn(document.all.btnTelechargerFichier_T,'N');"><table class=txt id="btnTelechargerFichier_T" cellspacing=0 cellpadding=0 style="cursor:hand" onmouseover="ChangeCouleurBtn(this,'S')" onmouseout="ChangeCouleurBtn(this,'N')" lockSurvol="N" btnCible="btnTelechargerFichier" onclick="ClickBouton('ActionFichierTelecharger');" title="Télécharger" ><tr><td style="background-image:url(BGN.gif)"><img BORDER="0" src="x.gif" height=21 width=14></td><td nowrap style="background-image:url(BCN.gif)"><b>Télécharger</b></td><td style="background-image:url(BDN.gif)"><img BORDER="0" src="x.gif" height=21 width=14></td></tr></table></a>
    <script>
        gary_LstBoutons[llng_IdxBtn++]='btnTelechargerFichier_T';
    </script>
    </td>
    </table>
    </td>
    </tr>
    </table>
    </td>
    <td width="5" height="100%"><img src="bordd.gif" width="5" height="100%"></td>
    </tr>
    <tr>
    <td height="5" width="5"><img src="cabg.gif" height="5" width="5"></td>
    <td height="5" width="100%"><img src="bordb.gif" height="5" width="100%"></td>
    <td height="5" width="5"><img src="cabd.gif" height="5" width="5"></td>
    </tr>
    </table>
     
    </td></tr>
    </table>
     
    </td></tr>
    </table>
    </td></tr></table></td>
    <td><img src="x.gif" width="5" heigth="100%"></td>
    </tr>
    <tr>
    <td></td>
    <td><img src="cabg.gif" height="5" width="5"></td>
    <td><img src="bordb.gif" height="5" width="100%"></td>
    <td><img src="cabd.gif" height="5" width="5"></td>
    <td><img src="x.gif" height="5" width="685"></td>
    <td><img src="x.gif" height="5" width="5"></td>
    </tr>
    </table>
    </td></tr>
    </table>
     
    </td></tr>
    </table>
    <script>
    function ClickBoutonAvecMessageAttente(astr_ActionAfter,astr_Message){
       var haut = (screen.height - 160)/2
       var gauche = (screen.width - 520)/2
       var msgAttente=window.open('/MessageAttente.asp?msgKey=2014022010_F6139813-3352-C24D-BE96-5840225ED1E6','PopupMessageInfo', 'toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no,width=520,height=160,top=' + haut + 'left=' + gauche + '');
       var date = new Date();
       var curDate = null;
       var millis=2000;
       if(astr_ActionAfter==null){
       }else{
          do{curDate = new Date();
          }while((msgAttente.document.readyState!='complete') && (curDate-date < millis));
          if(astr_Message==null){
              ClickBouton(astr_ActionAfter);
          }else{
              ClickBouton(astr_ActionAfter,astr_Message);
          }
       }
    }
    </script>
     
    </td></tr>
    <input id="EndInput" type="image" height="1" width="1" style="position:absolute">
    </form>
    </table>
    <div id=ZoneCalend style="visibility:hidden;position:absolute"></div>
    </body>
    </HTML>

    Ca plante toujours de la même manière malgré tout (ligne 215).

    Ce qui me chagrinne sur cette ligne, c'est qu'en rajoutant "onclick", je me retrouve avec "onclick" deux fois sur la même commande : une fois derrière le href et une fois en fin de commande. Quel appel va-t-il choisir ?

    Il y a autre chose qui m'interpelle (mais comme je n'y connais rien...) : Je ne vois pas la fonction JavaScript "ClickBouton" dans la page html générée alors que je vois la fonction ClickBoutonAvecMessageAttente. Est-ce que ça a un lien avec l'erreur ?
    Pourtant, elle est bien dans le fichier script.js (cf premier mail pour le lien).

    Voilà. Vos idées lumineuses sont les bien venues

  15. #15
    Membre émérite
    Avatar de Kaamo
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    1 165
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 37
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 1 165
    Points : 2 778
    Points
    2 778
    Par défaut
    Ce qui me chagrinne sur cette ligne, c'est qu'en rajoutant "onclick", je me retrouve avec "onclick" deux fois sur la même commande : une fois derrière le href et une fois en fin de commande. Quel appel va-t-il choisir ?
    Il ne doit rien y avoir dans le href justement.

    Je ne vois pas la fonction JavaScript "ClickBouton" dans la page html générée alors que je vois la fonction ClickBoutonAvecMessageAttente. Est-ce que ça a un lien avec l'erreur ?
    Pourtant, elle est bien dans le fichier script.js (cf premier mail pour le lien).
    Si ClickBouton est dans script.js, et que script.js est bien inclus dans le code généré, il n'y a pas de problème, la fonction est accessible.

    C'est vraiment du chinois pour moi et il y a des appels partout avec plein de guillemets doublés et triplés alors je m'y perds
    (mais comme je n'y connais rien...)
    Alors pourquoi quelqu'un d'autre avec les compétences n'est-il pas en charge de cela ?
    Il n'y a pas 36 solutions :
    - Soit quelqu'un avec les compétences doit repasser sur le code
    - Soit il faut apprendre et repartir de la base pour refaire un code propre, fonctionnel et surtout maintenable pour le prochain qui devra le lire

  16. #16
    Futur Membre du Club
    Femme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juillet 2012
    Messages
    16
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Conseil

    Informations forums :
    Inscription : Juillet 2012
    Messages : 16
    Points : 9
    Points
    9
    Par défaut
    Citation Envoyé par Bovino Voir le message
    Heu... tu sais à quoi sert la balise <base> ?


    C'est bien, mais dans les plus de 400 lignes de code que tu n'as bien entendu pas prit la peine de formater convenablement pour le rendre un tant soit peu lisible, il n'y a pas de trace de cette fonction apparemment.

    De toute façon, le code est particulièrement horrible et regroupe un grand nombre des pires pratiques en matière de développement Web...
    Je ne sais pas à quoi sert la balise <base>.
    En regardant sur le web, j'ai ça :

    L'élément HTML base définit l'URL de base à utiliser pour toutes les URLs relatives contenues dans un document

    Je maintiens cette application depuis 2 ans mais je ne connaissais pas cette partie du code. je la découvre et j'avoue que coder tout en une seule ligne est assez indigeste. J'ai bien l'impression que je n'arriverai pas à déboguer cette m...

    Je ne sais pas comment formatter mieux le code. Dis-moi comment le faire et je le ferai. Je n'y connais pas grand chose en html. J'ai trouvé dans les autres messages qu'en mettant des balises CODE /CODE, on pouvait mettre du code dans une fenêtre avec ascenseur. En mettant les balises CODEinline et /CODEinline, ça irait mieux ?

Discussions similaires

  1. Jquery fonction qui ne s'execute pas sous IE6 IE7
    Par boutmos dans le forum jQuery
    Réponses: 2
    Dernier message: 06/10/2009, 14h54
  2. Jquery fonction qui ne s'execute pas sous IE6 IE7
    Par boutmos dans le forum Général JavaScript
    Réponses: 0
    Dernier message: 06/10/2009, 11h44
  3. Float qui ne sont pas pris en compte sous ie6
    Par luna6 dans le forum Mise en page CSS
    Réponses: 9
    Dernier message: 11/03/2009, 14h11
  4. ok sous IE6, IE7,Firefox2x,pas sous firefox3
    Par cashstart dans le forum Mise en page CSS
    Réponses: 3
    Dernier message: 16/06/2008, 21h52
  5. Div qui tombe en bas de la page sous IE6
    Par entreri dans le forum Mise en page CSS
    Réponses: 3
    Dernier message: 09/10/2007, 10h00

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo