boh! :master: questa è la pagina. Prova se va![]()
codice:<!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><title> Pagina senza titolo </title> <script type="text/javascript" src="../js/prototype.js"></script> <script language="javascript" type="text/javascript"> // <!CDATA[ function Button1_onclick() { test(); } function test() { document.getElementById("info").innerHTML = "leggo..."; //miaFunzioneAjax(); window.setTimeout(miaFunzioneAjax, 1); } function miaFunzioneAjax() { new Ajax.Request("?ajax_comando=1", {onComplete:showResponse, asynchronous:false} ); function showResponse(originalRequest) { var t = originalRequest.responseText; document.getElementById("info").innerHTML = t + " letto!"; } } // ]]> </script> </head> <body> <form name="form1" method="post" action="b.aspx" id="form1"> <input id="Button1" type="button" value="button" onclick="return Button1_onclick()" /> <div id="info"></div> </form> </body> </html>

Rispondi quotando