devo passare dati da un sito da un altro sito.
appena arrivo alla pagina A del sito X, devo passare dei parametri alla pagina B del sito Y
ho provato ad usare questa ma dà errori di permessi , boh:
function GetData (nomepag, str) {
if (navigator.appName == "Microsoft Internet Explorer" ){
var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.open( "GET", nomepag+"?sid=" + Math.random());
}
else {
var xmlhttp=new XMLHttpRequest();
xmlhttp.open( "POST", nomepag);
}
xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
xmlhttp.onreadystatechange=function() {
if(xmlhttp.readyState==4)
{
//quando ha finito cosa fa
document.getElementById("pippo").innerHTML = xmlhttp.ResponseText
}
}
xmlhttp.send(str);
}