Ciao a tutti,
ho quasi scoperto per caso questa simil "tecnologia". Dopo essermi documentato un po', sono partito con qualche prova base base...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento senza titolo</title>
<script type="text/javascript">
var xmlHttp;
function createXMLHttpRequest() {
if (window.ActiveXObject) {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
}
}
function startRequest() {
createXMLHttpRequest();
xmlHttp.onreadystatechange = handleStateChange;
xmlHttp.open("GET","simpleResponse.xml",true);
xmlHttp.send(null);
}
function handleStateChange() {
if (xmlHttp.readyState == 4) {
if (xmlHttp.status == 200) {
alert("Response: "+ xmlHttp.responseText);
}
}
}
</script>
</head>
<body>
<label>
<input type="button" value="Invia" onclick="startRequest();"/>
</label>
</body>
</html>
Bene... in Firefox non ho problemi...
in IE invece mi viene restituito un errore:
riga: 12
carattere: 3
errore: il server di automazione non puo' creare l'oggetto
Se il buon giorno si vede dal mattino, sono morto!![]()