aprés plein d'essais, marche toujours pas .....
Dans un textarea, j'ai bien du html propret sur IE7 mais impossible de faire la sortie dans un DIV avec
Sortie TEXTAREA
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
|
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-15">
<title>Liste des enregistrements</title>
</head>
<body text="#000000" bgcolor="#ffffff">
<form method="post">
<table width="100%" cellspacing="0" border="1">
<tr>
<th align="left">Departement</th><th align="left">CP</th><th align="left">Secteur DV</th><th align="left">Secteur Manager</th><th align="left">Secteur commercial</th>
</tr>
<tr>
<td align="left"><a href="browserecord.xsl?-lay=Wdepartements&-recid=177&-find=-find">Seine-Maritime</a></td><td align="left">76</td><td align="left">France</td><td align="left">France</td><td align="left">France</td>
</tr>
<tr>
<td align="left"><a href="browserecord.xsl?-lay=Wdepartements&-recid=178&-find=-find">Seine-et-Marne</a></td><td align="left">77</td><td align="left">France</td><td align="left">France</td><td align="left">France</td>
</tr>
<tr>
<td align="left"><a href="browserecord.xsl?-lay=Wdepartements&-recid=193&-find=-find">Hauts de Seine</a></td><td align="left">92</td><td align="left">France</td><td align="left">France</td><td align="left">France</td>
</tr>
<tr>
<td align="left"><a href="browserecord.xsl?-lay=Wdepartements&-recid=194&-find=-find">Seine Saint Denis</a></td><td align="left">93</td><td align="left">France</td><td align="left">France</td><td align="left">France</td>
</tr>
</table>
</form>
</body>
</html> |
1 2 3 4 5 6 7 8 9 10 11 12
| function go(cible){
getXhr();
xhr.onreadystatechange = function(){
if(xhr.readyState == 4 && xhr.status == 200){
leselect = xhr.responseText;
document.getElementById('pseudoboxa').innerHTML = leselect;
}
}
xhr.open("POST","result.xsl",true);
xhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
xhr.send('-lay=Wdepartements&departement.op=cn&departement='+ escape(cible) +'&CP.op=cn&CP=§eurdv.op=eq§eurdv=§eurmanager.op=eq§eurmanager=§eurcommerciaux.op=eq§eurcommerciaux=&-lop=and&-find=Rechercher+des+enregistrements');
} |
<div id="pseudoboxa"></div>
Une idée ?
Partager