()
| 105 | return encodeURIComponent(contenu); |
| 106 | } |
| 107 | function createXHR() { |
| 108 | var resultat = null; |
| 109 | try { |
| 110 | resultat = new XMLHttpRequest(); |
| 111 | } catch (Error) { |
| 112 | try { |
| 113 | resultat = new ActiveXObject("Msxml2.XMLHTTP"); |
| 114 | } catch (Error) { |
| 115 | try { |
| 116 | resultat = new ActiveXObject("Microsoft.XMLHTTP"); |
| 117 | } catch (Error) { |
| 118 | resultat = null; |
| 119 | } |
| 120 | } |
| 121 | } |
| 122 | return resultat; |
| 123 | } |
| 124 | function supprimerContenu(element) { |
| 125 | if (element != null) { |
| 126 | while (element.firstChild) |