:master: sinceramente a me non dà errore. Almeno, se ho capito bene la domanda
in pratica, nella prova fatta, il server mi restituisce:
codice:
string comando_ajax = lib.RequestParams("comando_ajax");
if (comando_ajax == "1")
{
string s = "x&_nbsp;x&_nbsp;x&_nbsp;";
this.Response.Write(s);
this.Response.End();
}
Il client la butta dentro un div:
codice:
ajax("?comando_ajax=1", onload);
function onload()
{
var t = this.request.responseText;
//var tx = this.request.responseXML;
//alert(t);
$("div1").innerHTML = t;
}
guardando il sorgente generato con firefox trovo:
<div id="div1">x&_nbsp;x&_nbsp;x&_nbsp;</div>
che è esattamente quello voluto