Erreur de javascript
hamza.bakkali
Messages postés
1
Statut
Membre
-
sarouch23 -
sarouch23 -
j essaie de mettre des styles dans un tableau dynamiquement ajouté
direfox m affiche les styles correctement par contre en IE ca marche pas
j utilise la fonction
setAttribute('style','...
voici le code
var table = document.createElement('TABLE')
var tbody = document.createElement('TBODY')
var TR2 = document.createElement('TR')
var TD2 = document.createElement('TD')
var TD3 = document.createElement('TD')
table.id="table_seminar"
tbody.setAttribute( 'style' , 'border-style:solid;border-right-width:1px;border-left-width:1px; border-top-width:1px;border-bottom-width:1px;border-color:#000000' )
TD2.className = '<%=tdc()%>'
TD2.innerHTML = '<font class="g2"><%=a_Localizer.GetText("SEMINAR_TITLE")%> : </font>'
TD2.setAttribute( 'width' , '30%' )
TD3.setAttribute( 'width' , '70%' )
TD2.setAttribute( 'style' , 'border-style:solid;border-right-width:0px;border-left-width:0px; border-top-width:0px;border-bottom-width:1px;border-color:black' )
TD3.setAttribute( 'style' , 'border-style:solid;border-right-width:0px;border-left-width:1px; border-top-width:0px;border-bottom-width:1px;border-color:black' )
TD3.className = '<%=tdc()%>'
TR2.appendChild(TD2)
TD3.innerHTML = "<input type='text' id='SEMINAR_TITLE' name='SEMINAR_TITLE' maxlenght='100' siz='40' value="+value+">"
TR2.appendChild(TD3)
tbody.appendChild(TR2)
table.appendChild(tbody)
table.setAttribute( 'width' , '100%' )
table.setAttribute( 'cellspacing' , '0px' )
table.setAttribute( 'cellpadding' , '2px' )
// table.setAttribute( 'border' , '0px' )
document.getElementById("td1").appendChild(table)
direfox m affiche les styles correctement par contre en IE ca marche pas
j utilise la fonction
setAttribute('style','...
voici le code
var table = document.createElement('TABLE')
var tbody = document.createElement('TBODY')
var TR2 = document.createElement('TR')
var TD2 = document.createElement('TD')
var TD3 = document.createElement('TD')
table.id="table_seminar"
tbody.setAttribute( 'style' , 'border-style:solid;border-right-width:1px;border-left-width:1px; border-top-width:1px;border-bottom-width:1px;border-color:#000000' )
TD2.className = '<%=tdc()%>'
TD2.innerHTML = '<font class="g2"><%=a_Localizer.GetText("SEMINAR_TITLE")%> : </font>'
TD2.setAttribute( 'width' , '30%' )
TD3.setAttribute( 'width' , '70%' )
TD2.setAttribute( 'style' , 'border-style:solid;border-right-width:0px;border-left-width:0px; border-top-width:0px;border-bottom-width:1px;border-color:black' )
TD3.setAttribute( 'style' , 'border-style:solid;border-right-width:0px;border-left-width:1px; border-top-width:0px;border-bottom-width:1px;border-color:black' )
TD3.className = '<%=tdc()%>'
TR2.appendChild(TD2)
TD3.innerHTML = "<input type='text' id='SEMINAR_TITLE' name='SEMINAR_TITLE' maxlenght='100' siz='40' value="+value+">"
TR2.appendChild(TD3)
tbody.appendChild(TR2)
table.appendChild(tbody)
table.setAttribute( 'width' , '100%' )
table.setAttribute( 'cellspacing' , '0px' )
table.setAttribute( 'cellpadding' , '2px' )
// table.setAttribute( 'border' , '0px' )
document.getElementById("td1").appendChild(table)
A voir également:
- Erreur de javascript
- Erreur upes 1025 - Forum Téléviseurs
- Erreur t32 ✓ - Forum Livebox
- Erreur 3000 france tv - Forum Lecteurs et supports vidéo
- Une erreur s'est produite instagram ✓ - Forum Instagram
- Erreur 0x80070643 - Accueil - Windows