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 :

Erreur InnerHTML uniquement sous IE


Sujet :

JavaScript

  1. #1
    Membre habitué
    Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2003
    Messages
    447
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Octobre 2003
    Messages : 447
    Points : 173
    Points
    173
    Par défaut Erreur InnerHTML uniquement sous IE
    Bonjour a tous,

    Je parviens a exécuter ces quelques lignes dans un InnerHTML sous Firefox, Chrome, Netscape, mais des que je passe sous IE, rien ne se passe ormis une erreur JavaScript lors de la tentative d'affiche de mon InnerHTML.

    Voici les lignes que je voudrais voir dans mon innerHTML
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    <table border=0 cellspacing=0 cellpadding=0 style="border:1.5pt outset"> <tr class="MBTi">  <td>   <table border="0">    <tr>     <td>      <Table width=100%>       <tr OnClick="HideMenuRecherche()">        <td class="MBTi" align=left >          &nbsp;<span>Rechercher un article</span>        </td>        <td align=right>         &nbsp;<img src="Img/Close.gif" title="Fermer" OnClick="HideMenuRecherche();">        </td>       </tr>      </table>     </td>    </tr>    <tr height="10px"><td><Table border=0 cellspacing=0 cellpadding=0 width=100%>    <tr class="MBLi" >     <td align=center >      <table border=0 width=100%  onmouseover="this.style.background='#FFF7E5'; "  onmouseout= "this.style.background='';" >       <tr>        <td align=center width=1px>         &nbsp;        </td>        <td class="MBLi" >            <b Class=text> Grammage entre : </b>       <input Type=Text Class=Onglet name=XGRAM_MIN id=XGRAM_MIN style=width:40px value=>    et   <input Type=Text Class=Onglet name=XGRAM_MAX id=XGRAM_MAX style=width:40px value=>&nbsp;        </td>       </tr>      </table>     </td>    </tr>    <tr class="MBLi" >     <td align=center >      <table border=0 width=100%  onmouseover="this.style.background='#FFF7E5'; "  onmouseout= "this.style.background='';" >       <tr>        <td align=center width=1px>         &nbsp;        </td>        <td class="MBLi" >            <b Class=text> Longueur entre : </b>              <input Type=Text Class=Onglet name=XFORMAT_MIN id=XFORMAT_MIN style=width:40px value=>    et   <input Type=Text Class=Onglet name=XFORMAT_MAX id=XFORMAT_MAX style=width:40px value=>&nbsp;        </td>       </tr>      </table>     </td>    </tr>    <tr class="MBLi" >     <td align=center >      <table border=0 width=100%  onmouseover="this.style.background='#FFF7E5'; "  onmouseout= "this.style.background='';" >       <tr>        <td align=center width=1px>         &nbsp;        </td>        <td class="MBLi" >            <b Class=text> Largeur entre : </b>                 <input Type=Text Class=Onglet name=XLAIZE_MIN id=XLAIZE_MIN style=width:40px value=>    et   <input Type=Text Class=Onglet name=XLAIZE_MAX id=XLAIZE_MAX style=width:40px value=>&nbsp;        </td>       </tr>      </table>     </td>    </tr>    <tr class="MBLi" >     <td align=center >      <table border=0 width=100%  onmouseover="this.style.background='#FFF7E5'; "  onmouseout= "this.style.background='';" >       <tr>        <td align=center width=1px>         &nbsp;        </td>        <td class="MBLi" >          &nbsp;        </td>       </tr>      </table>     </td>    </tr>    <tr class="MBLi" onClick="HideMenu();ValidFiltre();" style="cursor:pointer;">     <td align=center >      <table border=0 width=100%  onmouseover="this.style.background='#FFF7E5'; "  onmouseout= "this.style.background='';" >       <tr>        <td align=center width=1px>         &nbsp;        </td>        <td class="MBLi" >         <td style=cursor:pointer><div id=BTA_G> </div><div id=BTA_T><b Class=text>Rechercher</b></div><div id=BTA_D> </div></td>&nbsp;        </td>       </tr>      </table>     </td>    </tr>    <tr class="MBLi" onClick="HideMenu();EffaceFiltre();" style="cursor:pointer;">     <td align=center >      <table border=0 width=100%  onmouseover="this.style.background='#FFF7E5'; "  onmouseout= "this.style.background='';" >       <tr>        <td align=center width=1px>         &nbsp;        </td>        <td class="MBLi" >         <td style=cursor:pointer><div id=BTA_G> </div><div id=BTA_T><b Class=text>Effacer</b></div><div id=BTA_D> </div></td>&nbsp;        </td>       </tr>      </table>     </td>    </tr>   </table></td></tr>   </table>  </td> </tr></table>

  2. #2
    Membre émérite
    Avatar de supersnail
    Homme Profil pro
    Inscrit en
    Novembre 2006
    Messages
    1 719
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 1 719
    Points : 2 793
    Points
    2 793
    Par défaut
    Bonjour,

    Pourrait-on voir ton code javascript?

  3. #3
    Membre habitué
    Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2003
    Messages
    447
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Octobre 2003
    Messages : 447
    Points : 173
    Points
    173
    Par défaut Voici le code
    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
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
     
     
    function AffMenuRecherche( e, Type, content){	
    var IB=new Object;
    var posX=700;
    var posY=10;
    var iNbLgn= 0;
    var xOffset=0;yOffset=0;
    var xOffsetMB=80;yOffsetMB=0;
    var xOffsetVg=20;yOffsetVg=-20;
    var CoulCrt;
    var AffBgOn = "";
     
    var strChUserAgent = navigator.userAgent;
    var intSplitStart = strChUserAgent.indexOf("(",0);
    var intSplitEnd = strChUserAgent.indexOf(")",0);
    var strChStart = strChUserAgent.substring(0,intSplitStart);
    var strChMid = strChUserAgent.substring(intSplitStart, intSplitEnd);
    var strChEnd = strChUserAgent.substring(strChEnd);
     
    if(strChMid.indexOf("MSIE 7") != -1)
    nav = "IE7";
    else if(strChMid.indexOf("MSIE 8") != -1)
    nav = "IE8";
    else if(strChMid.indexOf("MSIE 6") != -1)
    nav = "IE6";
    else if(strChEnd.indexOf("Firefox/2") != -1)
    nav = "FIREFOX2";
    else if(strChEnd.indexOf("Firefox") != -1)
    nav = "FIREFOX";
    else if(strChEnd.indexOf("Netscape/7") != -1)
    nav = "NETSCAPE7";
    else if(strChEnd.indexOf("Netscape") != -1)
    nav = "NETSCAPE";
    else if(strChStart.indexOf("Opera/9") != -1)
    nav = "OPERA9";
    else if(strChStart.indexOf("Opera") != -1)
    nav = "OPERA";
    else
    nav = "AUTRE";
     
    function setOpacity(el, Opc) {
    	/* Opc de 0 à 99 */
      if( Opc != 100)
      {
    	el.style.filter="alpha(opacity:"+ Opc+")";
    	el.style.KHTMLOpacity="0."+ Opc;
    	el.style.MozOpacity="0."+ Opc;
    	el.style.opacity="0."+ Opc;
      }
    }
     
    function getTopOrBottom(e) {
      var winH = getHeight();
    	var cursorY = 0;
    	if( typeof( e.pageY) == 'number') {
    		// Mozilla page Y is relative to top of body, so subtract scroll
    		var scrollY = getScrollY();
    		cursorY = e.pageY - scrollY;
    	} 
    	else if (typeof(e.clientY) == 'number') {
    		// IE is relative to viewable area
    		cursorY = e.clientY;
    	}
     
    	// Show to either the top or the bottom, based on which has more room
    	if (cursorY > (winH-cursorY+30)) {
    		return "top";
    	} 
    	else {
    		return "bottom";
    	}
    }
     
    // Gets height of viewable area in browser
    function getHeight() {
      var height = 0;
      if (typeof(window.innerWidth) == 'number') {
        // Non-IE
        height = window.innerHeight;
      } else if (document.documentElement && document.documentElement.clientHeight) {
        // IE 6+ in 'standards compliant mode'
        height = document.documentElement.clientHeight;
      } else if (document.body && document.body.clientHeight) {
        // IE 4 compatible
        height = document.body.clientHeight;
      }
      return height;
    }
     
    // Gets the height of page that has been scrolled above view
    function getScrollY() {
    	var scrollY = 0;
    	if (document.documentElement && document.documentElement.scrollTop) {
        scrollY = document.documentElement.scrollTop;
      } else if (document.body && document.body.scrollTop) {
        scrollY = document.body.scrollTop;
      } else if (typeof(window.pageYOffset) == 'number') {
      	scrollY = window.pageYOffset;
      }
    	return scrollY;
    }
     
    function GetCol(strChaine, iCol, strSep){
    	var j=1;	
    	var strRetour=""
     
    	if (strSep == ""){
    		strSep = "#";
    	}
     
    	while (j<=iCol){
    		strRetour = strChaine.substring(0, strChaine.indexOf(strSep,0));
    		if (strRetour=="" && strChaine!=""){
    			if 	(j==iCol){
    				strRetour=strChaine;
    			}else if (strChaine.indexOf(strSep,0)!=0){
    				strRetour=""
    				j=iCol
    			}	
    		}
     
    		if (j==iCol && strChaine.indexOf(strSep,0)==0){
          // Le caractére suivant étant le séparateur, on a donc une chaîne vide à renvoyer
    			strRetour="";
    		}
    		strChaine = strChaine.substring(strChaine.indexOf(strSep,0)+1,strChaine.length);
    		j=j+1;
    	}
    	return strRetour;
    }
     
    function HideMenuRecherche() {
    	var Menu = document.getElementById("MenuGraphRecherche");
     	Menu.style.display = 'none';
    }
     
    function HideMenu() {
    	var Menu = document.getElementById("MenuGraph");
     	Menu.style.display = 'none';
    }
     
    function AffMenuRecherche( e, Type, content){	
    	var TopOrBottom= getTopOrBottom(e);
    	var Menu = document.getElementById("MenuGraphRecherche");
      YoffsetTopBottom = 0;	
     
    	switch (Type) {
    		case "Vig" :
    			xOffset= xOffsetVg;
    			yOffset= yOffsetVg;		
    			setOpacity( Menu, 95);
    			YoffsetTopBottom = TopOrBottom == "top" ? -730 : 0;	
    			break;
     
    		default : 
    			xOffset= xOffsetMB;
    			yOffset= yOffsetMB;
    			setOpacity( Menu, 99);
    			var iTopAjust= (iNbLgn+1)*25;
    			YoffsetTopBottom = TopOrBottom == "top" ? -iTopAjust : 0;	
    			break
    	}
     
    	Menu.style.display = 'block';
    	document.getElementById('Essai').value = content;
    	Menu.innerHTML = content;
     
     
    	var posx=0,posy=0;
     
    	if(e==null) 
    		e=window.event;
    	if(e.pageX || e.pageY) {
    		posx= e.pageX; 
    		posy= e.pageY;
    	}else if(e.clientX || e.clientY){
    		if(document.documentElement.scrollTop) {
    			posx= e.clientX+ document.documentElement.scrollLeft;
    			posy= e.clientY+ document.documentElement.scrollTop;
    		}else{
    			posx= e.clientX+ document.body.scrollLeft;
    			posy= e.clientY+ document.body.scrollTop;
    		}
    	}
     
    	if( (posx + xOffset) < 10)
    	  xOffset = 10- posx;
     
    	//change the position of the image showing
    	Menu.style.top= (posy+ yOffset+ YoffsetTopBottom)+"px";
    	Menu.style.left= (posx+ xOffset)+"px";
    }
     
    function AffMenu( e, Type, content){	
    	var TopOrBottom= getTopOrBottom(e);
    	var Menu = document.getElementById("MenuGraph");
      YoffsetTopBottom = 0;	
     
    	switch (Type) {
    		case "Vig" :
    			xOffset= xOffsetVg;
    			yOffset= yOffsetVg;		
    			setOpacity( Menu, 95);
    			YoffsetTopBottom = TopOrBottom == "top" ? -730 : 0;	
    			break;
     
    		default : 
    			xOffset= xOffsetMB;
    			yOffset= yOffsetMB;
    			setOpacity( Menu, 99);
    			var iTopAjust= (iNbLgn+1)*25;
    			YoffsetTopBottom = TopOrBottom == "top" ? -iTopAjust : 0;	
    			break
    	}
     
    	Menu.style.display = 'block';
    	Menu.innerHTML = content;
     
    	var posx=0;
    	var posy=0;
     
    	if(e==null) 
    		e=window.event;
    	if(e.pageX || e.pageY) {
    		posx= e.pageX; 
    		posy= e.pageY;
    	}else if(e.clientX || e.clientY){
    		if(document.documentElement.scrollTop) {
    			posx= e.clientX+ document.documentElement.scrollLeft;
    			posy= e.clientY+ document.documentElement.scrollTop;
    		}else{
    			posx= e.clientX+ document.body.scrollLeft;
    			posy= e.clientY+ document.body.scrollTop;
    		}
    	}
     
    	if( (posx + xOffset) < 10)
    	  xOffset = 10- posx;
     
    	//change the position of the image showing
    	if((nav=="IE6")||(nav=="IE7")||(nav=="IE8")){
    		Menu.style.top= (posy+ yOffset)+"px";
    		Menu.style.left= (posx+ xOffset)+"px";
    	}else{
    		Menu.style.top= (posy+ yOffset+ YoffsetTopBottom)+"px";
    		Menu.style.left= (posx+ xOffset+YoffsetTopBottom)+"px";		
    	}
    }
     
    function AffMenuDyna( Titre, Liste){
      xOffset= xOffsetMB;
      yOffset= yOffsetMB;
     
      var content =
      '<table border="0" cellspacing="0" cellpadding="0" style="border:1.5pt outset" >'+
      ' <tr class=\'MBTi\'>'+
      '  <td>'+
      '   <table border="0">'+
      ''+ AffMenuTitre( Titre, 1)+ 
      '    <tr><td><Table border="0" cellspacing="0" cellpadding="0" width="100%">';
    	var i = 1
    	LigneCrt = GetCol( Liste, i, "¤")
    	while( LigneCrt != ""){
    		content = content + AffMenuLigne( GetCol( LigneCrt, 1, "£"), GetCol( LigneCrt, 2, "£"), GetCol( LigneCrt, 3, "£"))
    		i=i+1
    		LigneCrt= GetCol( Liste, i, "¤")                
    	}    
      content = content +
      '    </tr></table></td>'+
      '   </table>'+
      '  </td>'+
      ' </tr>'+
      '</table>';
    }
     
    function AffMenuTitreRecherche( Titre, Close){
      var StrLigneTitre= "";
      var StrClose= "";
      var OnClickClose= "";
      if( Close == 2){
        StrClose='<img src="Img/Close.gif" title="Fermer" OnClick="HideMenuRecherche();">';
        OnClickClose= 'OnClick="HideMenuRecherche()"';
      }
      StrTitre= ''+
      '    <tr>'+
      '     <td>'+
      '      <Table width="100%">'+
      '       <tr '+ OnClickClose+'>'+  
      '        <td class="MBTi" align="left" >'+
      '          &nbsp;<span>'+ Titre +'</span>'+
      '        </td>'+
      '        <td align="right">'+
      '         &nbsp;'+ StrClose+  
      '        </td>'+  
      '       </tr>'+
      '      </table>'+
      '     </td>'+
      '    </tr>';
      return StrTitre;
    }
     
    function AffMenuTitre( Titre, Close){
      var StrLigneTitre= "";
      var StrClose= "";
      var OnClickClose= "";
      if( Close == 2){
        StrClose='<img src="Img/Close.gif" title="Fermer" OnClick="HideMenu();">';
        OnClickClose= 'OnClick="HideMenu()"';
      }
      StrTitre= ''+
      '    <tr>'+
      '     <td>'+
      '      <Table width="100%">'+
      '       <tr '+ OnClickClose+'>'+  
      '        <td class="MBTi" align="left" >'+
      '          &nbsp;<span>'+ Titre +'</span>'+
      '        </td>'+
      '        <td align="right">'+
      '         &nbsp;'+ StrClose+  
      '        </td>'+  
      '       </tr>'+
      '      </table>'+
      '     </td>'+
      '    </tr>';
      return StrTitre;
    }
     
    function AffMenuLigne( Txt, Img, Lien){ 
      var StrLigne= "";
    	if( Img != "" && Img != "None"){ 	
        StrImg = 
    		'        <td align="center" width="28px">'+
    		'         <img src="'+ Img +'">'+
    		'        </td>';
    	}else{
        StrImg = 
    		'        <td align="center" width="1px">'+
    		'         &nbsp;'+
    		'        </td>';
      }
     
    	if( Txt != ""){ 	
    		if( Lien != "" && Lien != "None"){
    			if( Lien.indexOf(".open") != -1){
    				StrLigne= ''+
    				'    <tr class="MBLi" onClick="HideMenu();'+ Lien+'" style="cursor:pointer;">'
    			}else if( Lien.indexOf(".asp") != -1){
    				StrLigne= ''+
    				'    <tr class="MBLi" onClick="HideMenu();self.location.href=\'' + Lien + '\'" style="cursor:pointer;">'
    				'    <tr class="MBLi" onClick="self.location.href=\'' + Lien + '\'" style="cursor:pointer;">'
    			}else{
    				StrLigne= ''+
    				'    <tr class="MBLi" onClick="HideMenu();'+ Lien+'" style="cursor:pointer;">'
    				'    <tr class="MBLi" onClick="'+ Lien+'" style="cursor:pointer;">'
    			}
    		}else{
    			StrLigne= ''+
    			'    <tr class="MBLi" >'
    		}
     
    		StrLigne= StrLigne +
    		'     <td align="center" >'+     
    		'      <table border="0" width="100%" '+
    		' onmouseover="this.style.background="'+AffBgOn+'"; " '+
    		' onmouseout= "this.style.background="";" '+
    		'>'+
    		'       <tr>'+ 		
    		         StrImg +
    		'        <td class="MBLi" >'+
    		'         '+ Txt+ '&nbsp;'+
    		'        </td>'+
    		'       </tr>'+
    		'      </table>'+ 
    		'     </td>'+
    		'    </tr>'+
    		'';
    	}
    	return StrLigne;	
    }
     
    //Recherche
    function AffMenuGraphRecherche( e, Titre, Liste, couleurAppli){
      xOffset= xOffsetMB;
      yOffset= yOffsetMB;
      iNbLgn= 0;
     
      switch (couleurAppli){
    	case "Rouge" :
    			AffBgOn = "FFFFFF";
    	  		break;
     
    	case "Bleu" : 
    			AffBgOn = "#FFF7E5";
    	  		break;
     
    	case "Mauve" : 
    			AffBgOn = "#F3F2F7";
    	  		break;
      }
      var content =
      '<table border="0" cellspacing="0" cellpadding="0" style="border:1.5pt outset">'+
      ' <tr class="MBTi">'+
      '  <td>'+
      '   <table border="0">'+
      ''+ AffMenuTitreRecherche( Titre, 2)+ 
      '    <tr height="10px"><td><Table border="0" cellspacing="0" cellpadding="0" width="100%">';
    	var i = 1
    	LigneCrt = GetCol( Liste, i, "¤")
    	while( LigneCrt != ""){
    		content = content + AffMenuLigne( GetCol( LigneCrt, 1, "£"), GetCol( LigneCrt, 2, "£"), GetCol( LigneCrt, 3, "£"))
    		i=i+1
    		LigneCrt = GetCol( Liste, i, "¤")
    		iNbLgn= iNbLgn+ 1;
    	}
      content = content +
      '   </table></td></tr>'+
      '   </table>'+
      '  </td>'+
      ' </tr>'+
      '</table>';
      AffMenuRecherche( e, "Menu", content);
    }
     
    function AffMenuGraph( e, Titre, Liste, couleurAppli){
      xOffset= xOffsetMB;
      yOffset= yOffsetMB;
      iNbLgn= 0;
     
      switch (couleurAppli) {
    	case "Rouge" :
    			AffBgOn = "FFFFFF";
    	  		break;
     
    	case "Bleu" : 
    			AffBgOn = "#FFF7E5";
    	  		break;
     
    	case "Mauve" : 
    			AffBgOn = "#F3F2F7";
    	  		break;
      }
      var content =
      '<table border="0" cellspacing="0" cellpadding="0" style="border:1.5pt outset">'+
      ' <tr class="MBTi">'+
      '  <td>'+
      '   <table border="0">'+
      ''+ AffMenuTitre( Titre, 2)+ 
      '    <tr height="10px"><td><Table border="0" cellspacing="0" cellpadding="0" width="100%">';
    	var i = 1
    	LigneCrt = GetCol( Liste, i, "¤")
    	while( LigneCrt != ""){
    		content = content + AffMenuLigne( GetCol( LigneCrt, 1, "£"), GetCol( LigneCrt, 2, "£"), GetCol( LigneCrt, 3, "£"))
    		i=i+1
    		LigneCrt = GetCol( Liste, i, "¤")
    		iNbLgn= iNbLgn+ 1;
    	}
      content = content +
      '   </table></td></tr>'+
      '   </table>'+
      '  </td>'+
      ' </tr>'+
      '</table>';
      AffMenu( e, "Menu", content);
    }
     
    function HideVignette( e){
      HideMenu();	
    }
     
    function AffVignetteCoul( e, Titre, NbVig, Liste) {
      iNbLgn= 0;
    	if( NbVig > 0 ) { // et longeur de Liste > 1
    		var content =
    		'<table border="0" cellspacing="0" cellpadding="0" style="border:1.5pt outset" >'+
    		' <tr class="MBTi">'+
    		'  <td>'+
    		'   <table border="0">'+
    		''+ AffMenuTitre( Titre, 0)+ 
    		'    <tr><td><Table border="0" cellspacing="0" cellpadding="0" width="100%">';
    		content = content + 
    		'    <tr class="MBLi">'+
    		'     <td align="center">'+                          
    		'      <table border="0" width="100%">'
     
    		VigCrt=1;
    		if ( NbVig == 3)
    			NbVig = 3;
    		while ( VigCrt <= NbVig) {
    			VigImg= GetCol( Liste, VigCrt, "¤");
    			if(VigCrt==2){
    			  // Indication du nombre de pages couleur / nombre de pages total
    			  content = content +
    			  '       <tr>'+
    			  '        <td class="MBLi">'+
    			  '         <b>'+VigImg +'</b>'+
    			  '        </td>'+
    			  '       </tr>'				
    			}else{
    			 if( VigImg != ""){
    			  content = content +
    			  '       <tr>'+
    			  '        <td class="MBLi">'+
    			  '         <b>'+VigImg +'</b>'+
    			  '        </td>'+
    			  '       </tr>'
    			 }
    			}
    			VigCrt= VigCrt+1;
    		}
     
    		content = content + 
    		'      </table>'+ 
    		'     </td>'+
    		'    </tr>'+
    		'' 
     
    		content = content +
    		'    </tr></table></td>'+
     
    		'   </table>'+
    		'  </td>'+
    		' </tr>'+
    		'</table>';
     
    		AffMenu( e, "Vig", content);
    	}
    	else
    	HideVignette( e);
    }
     
    function AffVignette( e, Titre, NbVig, Liste) {
     
       iNbLgn= 0;
     
    	if( NbVig > 0 ) { // et longeur de Liste > 1
     
    		var content =
    		'<table border="0" cellspacing="0" cellpadding="0" style="border:1.5pt outset" >'+
    		' <tr class="MBTi">'+
    		'  <td>'+
    		'   <table border="0">'+
     
    		''+ AffMenuTitre( Titre, 0)+ 
     
    		'    <tr><td><Table border="0" cellspacing="0" cellpadding="0" width="100%">';
     
    		content = content + 
    		'    <tr class="MBLi">'+
    		'     <td align="center">'+                          
    		'      <table border="0" width="100%">'+
    		'       <tr>'
     
    		VigCrt=1;
    		if ( NbVig == 3)
    			NbVig = 3;
    		while ( VigCrt <= NbVig) {
    			VigImg= GetCol( Liste, VigCrt, "¤");
    			VigH="250";
    			VigW="200";
     
    			if( NbVig == 1) {
    				VigH="320";
    				VigW="210";     
    			}
    			else if( NbVig == 2) {
    				VigH="300";
    				VigW="190";     
    			}
    			else if( NbVig == 3) {
    				VigH="150";
    				VigW="160";			   
    			}
     
     
    			if( VigImg != ""){
    				content = content + 
    				'        <td class="MBLi">'+
    				'         <img id="Vig'+VigCrt +'" width="'+ VigW+'px" src="'+VigImg +'" >'+
    				'        </td>'
    			}
    			VigCrt= VigCrt+1;
    		}
     
    		content = content + 
    		'       </tr>'+
    		'      </table>'+ 
    		'     </td>'+
    		'    </tr>'+
    		'' 
     
    		content = content +
    		'    </tr></table></td>'+
    		'   </table>'+
    		'  </td>'+
    		' </tr>'+
    		'</table>';
     
    		AffMenu( e, "Vig", content);
    	}
    	else
    	HideVignette( e);
    }

  4. #4
    Membre émérite
    Avatar de supersnail
    Homme Profil pro
    Inscrit en
    Novembre 2006
    Messages
    1 719
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 1 719
    Points : 2 793
    Points
    2 793
    Par défaut
    Et quelle est l'erreur donnée par Internet Explorer?

    (ton code n'a pas l'air d'être incorrect )

  5. #5
    Membre habitué
    Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2003
    Messages
    447
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Octobre 2003
    Messages : 447
    Points : 173
    Points
    173
    Par défaut message d'erreur
    j'ai deux message pile aux deux lignes Menu.innerHTML = content; (en ligne 164 et 215)

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    Erreur d'exécution inconnue ligne 164
    Code 0
     
    Erreur d'exécution inconnue ligne 215
    Code 0

  6. #6
    Membre émérite
    Avatar de supersnail
    Homme Profil pro
    Inscrit en
    Novembre 2006
    Messages
    1 719
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 1 719
    Points : 2 793
    Points
    2 793
    Par défaut
    Bonjour,

    Si tu remplaces ta variable "content" par un texte sans intérêt (par exemple faire
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Menu.innerHTML="coucou"
    ) , le message d'erreur apparaît toujours?

    Et si tu fais un alert sur ta variable "content", que se passe-t-il?

  7. #7
    Membre habitué
    Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2003
    Messages
    447
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Octobre 2003
    Messages : 447
    Points : 173
    Points
    173
    Par défaut déjà tenter
    avec Menu.innerHTML="coucou", je vois bien ce message afficher sur les différents navigateur, mon soucis vient donc de mon content, mais je ne parviens à localiser d'ou, j'ai beau relire ce code mais sans résultat ...

  8. #8
    Membre habitué
    Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2003
    Messages
    447
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Octobre 2003
    Messages : 447
    Points : 173
    Points
    173
    Par défaut Mise en page du content
    j'ai remis le content en forme pour qu'il soit plus lisible

    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
     
    <table border="0" cellspacing="0" cellpadding="0" style="border:1.5pt outset">
    	<tr class="MBTi">
    		<td>
    			<table border="0">
    				<tr>
    					<td>
    						<Table width="100%">
    							<tr OnClick="HideMenuRecherche()">
    								<td class="MBTi" align="left" >&nbsp;<span>Rechercher un article</span></td>
    								<td align="right">&nbsp;<img src="Img/Close.gif" title="Fermer" OnClick="HideMenuRecherche();"></td>
    							</tr>
    						</table>
    					</td>
    				</tr>
    				<tr height="10px">
    					<td>
    						<Table border="0" cellspacing="0" cellpadding="0" width="100%">
    							<tr class="MBLi" >
    								<td align="center" >
    									<table border="0" width="100%"  onmouseover="this.style.background="#FFF7E5"; "  onmouseout= "this.style.background="";" >
    										<tr>
    											<td align="center" width="1px">&nbsp;</td>
    											<td class="MBLi" >
    												<b Class=text> Grammage entre : </b>
    												<input Type=Text Class=Onglet name=XGRAM_MIN id=XGRAM_MIN style=width:40px value=>
    												et
    												<input Type=Text Class=Onglet name=XGRAM_MAX id=XGRAM_MAX style=width:40px value=>&nbsp;
    											</td>
    										</tr>
    									</table>
    								</td>
    							</tr>
    							<tr class="MBLi" >
    								<td align="center" >
    								  <table border="0" width="100%"  onmouseover="this.style.background="#FFF7E5"; "  onmouseout= "this.style.background="";" >
    								  	<tr>
    								  		<td align="center" width="1px">&nbsp;</td>
    								  		<td class="MBLi" >
    								  			<b Class=text> Longueur entre : </b>
    								  			<input Type=Text Class=Onglet name=XFORMAT_MIN id=XFORMAT_MIN style=width:40px value=>
    								  			et
    								  			<input Type=Text Class=Onglet name=XFORMAT_MAX id=XFORMAT_MAX style=width:40px value=>&nbsp;</td>
    								  		</tr>
    								  	</table>
    								  </td>
    								</tr>
    								<tr class="MBLi" >
    									<td align="center" >
    										<table border="0" width="100%"  onmouseover="this.style.background="#FFF7E5"; "  onmouseout= "this.style.background="";" >
    											<tr>
    												<td align="center" width="1px">&nbsp;</td>
    												<td class="MBLi" >
    													<b Class=text> Largeur entre : </b>
    													<input Type=Text Class=Onglet name=XLAIZE_MIN id=XLAIZE_MIN style=width:40px value=>
    													et
    													<input Type=Text Class=Onglet name=XLAIZE_MAX id=XLAIZE_MAX style=width:40px value=>&nbsp;
    												</td>
    											</tr>
    										</table>
    									</td>
    								</tr>
    								<tr class="MBLi" >
    									<td align="center" >
    										<table border="0" width="100%"  onmouseover="this.style.background="#FFF7E5"; "  onmouseout= "this.style.background="";" >
    											<tr>
    												<td align="center" width="1px">&nbsp;</td>
    												<td class="MBLi" >&nbsp;</td>
    											</tr>
    										</table>
    									</td>
    								</tr>
    							  <tr class="MBLi" onClick="HideMenu();ValidFiltre();" style="cursor:pointer;">
    							  	<td align="center" >
    							  		<table border="0" width="100%"  onmouseover="this.style.background="#FFF7E5"; "  onmouseout= "this.style.background="";" >
    							  			<tr>
    							  				<td align="center" width="1px">&nbsp;</td>
    							  				<td class="MBLi" >
    							  					<td style=cursor:pointer>
    							  						<div id=BTA_G> </div>
    							  						<div id=BTA_T><b Class=text>Rechercher</b></div>
    							  						<div id=BTA_D> </div>
    							  					</td>&nbsp;
    							  				</td>
    							  			</tr>
    							  		</table>
    							  	</td>
    							  </tr>
    							  <tr class="MBLi" onClick="HideMenu();EffaceFiltre();" style="cursor:pointer;">
    							 		<td align="center" >
    							 			<table border="0" width="100%"  onmouseover="this.style.background="#FFF7E5"; "  onmouseout= "this.style.background="";" >
    							 				<tr>
    							 					<td align="center" width="1px">&nbsp;</td>
    							 					<td class="MBLi" >
    							 						<td style=cursor:pointer>
    							 							<div id=BTA_G> </div>
    							 							<div id=BTA_T><b Class=text>Effacer</b></div>
    							 							<div id=BTA_D> </div>
    							 						</td>
    							 						&nbsp;
    							 					</td>
    							 				</tr>
    							 			</table>
    							 		</td>
    							 	</tr>
    							</table>
    						</td>
    					</tr>
    				</table>
    			</td>
    		</tr>
    	</table>

  9. #9
    Membre émérite
    Avatar de supersnail
    Homme Profil pro
    Inscrit en
    Novembre 2006
    Messages
    1 719
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 1 719
    Points : 2 793
    Points
    2 793
    Par défaut
    Bonjour,

    Je pense que c'est ceci:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
     onmouseover="this.style.background="#FFF7E5"; "  onmouseout= "this.style.background="";"
    qui pose problème...

    Ce serait plus correct d'écrire
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
     onmouseover="this.style.background='#FFF7E5'; "  onmouseout= "this.style.background='';"
    , je pense

  10. #10
    Membre habitué
    Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2003
    Messages
    447
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Octobre 2003
    Messages : 447
    Points : 173
    Points
    173
    Par défaut Essai non fructueux
    j'ai tenté de corrigé, mais cela ne donne rien avec

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    onmouseover="this.style.background='#FFF7E5'; "  onmouseout= "this.style.background='';"

  11. #11
    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 640
    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 640
    Points : 66 663
    Points
    66 663
    Billets dans le blog
    1
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    onmouseover="this.style.backgroundColor='#FFF7E5'; "  onmouseout= "this.style.backgroundColor='transparent';"

  12. #12
    Membre habitué
    Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2003
    Messages
    447
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Octobre 2003
    Messages : 447
    Points : 173
    Points
    173
    Par défaut Toujours pareil
    j'ai toujours ces erreur d'exécution sur mes lignes Innerhtml avec un code 0

  13. #13
    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 640
    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 640
    Points : 66 663
    Points
    66 663
    Billets dans le blog
    1
    Par défaut
    les attributs html doivent être entre quotes
    et tu as quoi au juste sur les lignes incriminées ou aux environs ( + - 5 lignes )

  14. #14
    Membre habitué
    Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2003
    Messages
    447
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Octobre 2003
    Messages : 447
    Points : 173
    Points
    173
    Par défaut Function
    J'ai repris tous mon code pour y mettre les attributs entre quotte.

    Voici ma fonction au complet si cela peut t'aider :

    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
     
    function AffMenuRecherche( e, Type, content){	
    	var TopOrBottom= getTopOrBottom(e);
    	var Menu = document.getElementById("MenuGraphRecherche");
    	YoffsetTopBottom = 0;	
     
    	switch (Type) {
    		case "Vig" :
    			xOffset= xOffsetVg;
    			yOffset= yOffsetVg;		
    			setOpacity( Menu, 95);
    			YoffsetTopBottom = TopOrBottom == "top" ? -730 : 0;	
    			break;
     
    		default : 
    			xOffset= xOffsetMB;
    			yOffset= yOffsetMB;
    			setOpacity( Menu, 99);
    			var iTopAjust= (iNbLgn+1)*25;
    			YoffsetTopBottom = TopOrBottom == "top" ? -iTopAjust : 0;	
    			break
    	}
     
    	Menu.style.display = 'block';
    	document.getElementById('Essai').value = content;
    	Menu.innerHTML = content;
     
    	var posx=0,posy=0;
     
    	if(e==null) 
    		e=window.event;
    	if(e.pageX || e.pageY) {
    		posx= e.pageX; 
    		posy= e.pageY;
    	}else if(e.clientX || e.clientY){
    		if(document.documentElement.scrollTop) {
    			posx= e.clientX+ document.documentElement.scrollLeft;
    			posy= e.clientY+ document.documentElement.scrollTop;
    		}else{
    			posx= e.clientX+ document.body.scrollLeft;
    			posy= e.clientY+ document.body.scrollTop;
    		}
    	}
     
    	if( (posx + xOffset) < 10)
    	  xOffset = 10- posx;
     
    	//change the position of the image showing
    	Menu.style.top= (posy+ yOffset+ YoffsetTopBottom)+"px";
    	Menu.style.left= (posx+ xOffset)+"px";
    }

  15. #15
    Membre habitué
    Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2003
    Messages
    447
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Octobre 2003
    Messages : 447
    Points : 173
    Points
    173
    Par défaut essai non probant
    J'ai tenter de passer des balises html dans mon content, mais cela me géère toujours une erreur Javascript sur mon Innerhtml :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    	content = '<table><tr><td><table><tr><td><span>Coucou</span></td></tr></table></td></tr></table>';
    	Menu.innerHTML = content;

  16. #16
    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 640
    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 640
    Points : 66 663
    Points
    66 663
    Billets dans le blog
    1
    Par défaut
    a quel moment lances tu la fonction ?
    Menu est il implémenté ?

  17. #17
    Membre habitué
    Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2003
    Messages
    447
    Détails du profil
    Informations personnelles :
    Âge : 42
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Octobre 2003
    Messages : 447
    Points : 173
    Points
    173
    Par défaut plus d'info
    Voici l'appel de ma fonction

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    <td OnClick='AffMenuGraphRecherche(event,"<?php echo TXT_ACTION_RECHERCHE_ART_STOCK ?>","<?php echo $AffCritereRecherche; ?>","Bleu"); return true;' onMouseOver="window.status='<?php echo TXT_ACTION_RECHERCHE; ?>'; return true; " style="cursor:pointer">
    <div id="BTA_G">&nbsp;</div>
    <div id="BTA_T"><b Class="text"><?php echo TXT_ACTION_RECHERCHE; ?></b></div>
    <div id="BTA_D">&nbsp;</div>
    </td>
    Menu est bien implémenter puisque ce code fonctionne sous FireFox et Chrome

  18. #18
    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 640
    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 640
    Points : 66 663
    Points
    66 663
    Billets dans le blog
    1
    Par défaut
    En effet on dirait que IE n'aime pas l'insertion d'un table en innerHTML, y'en a pourtant qui prônent cette méthode

    Il ne te reste plus qu'a passer par document.createElement avec insertrow et insertcell

  19. #19
    Expert éminent sénior
    Avatar de Auteur
    Profil pro
    Inscrit en
    Avril 2004
    Messages
    7 650
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2004
    Messages : 7 650
    Points : 11 142
    Points
    11 142
    Par défaut
    bonsoir,

    * vérifie que "content" n'est pas un mot clef de IE....
    * vérifie également que tu n'as pas un objet ayant "content" pour id ou name

    Ensuite, j'ai remarqué qu'il y avait un peu de laisser-aller dans ton code HTML :
    tu écris parfois "class", parfois "Class", tu oublies parfois d'encadrer les valeurs des attributs de guillemets, tu écris tes balises en minuscules ou en majuscules...
    => Ecris tout en minuscules

  20. #20
    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 640
    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 640
    Points : 66 663
    Points
    66 663
    Billets dans le blog
    1
    Par défaut
    Auteur essaye de coller un code de table en innerHTML, tu verras IE n'aime pas ...

Discussions similaires

  1. Réponses: 6
    Dernier message: 20/12/2012, 14h47
  2. [CKEditor] Obtention d'une erreur uniquement sous Firefox
    Par Lépine dans le forum Bibliothèques & Frameworks
    Réponses: 1
    Dernier message: 21/12/2006, 11h03
  3. Erreurs d'exécution sous delphi 5
    Par nkd dans le forum Langage
    Réponses: 3
    Dernier message: 06/11/2004, 17h25
  4. Erreur démarrage "filesystem" sous RedHat 8
    Par stewen dans le forum Administration système
    Réponses: 14
    Dernier message: 02/12/2003, 11h37
  5. Réponses: 1
    Dernier message: 23/10/2002, 13h40

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