RSS
Recortes: 3
JavaScript
XMLHttpRequest
Ajax
csharp
public static void ShowMessage(System.Web.UI.Page p, string message) { message = message.Replace("'", @"\'"); message = message.Replace("\"", @"\" + '"'); //MessageBox Script String scriptString = "<script language=JavaScript>"; scriptString += "alert('" + message + "');"; scriptString += "</script>"; p.RegisterStartupScript("ShowMessage", scriptString); }
function getContent(sURL) { var xmlhttp; if(window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET", sURL, false); xmlhttp.send(null); } else if (window.ActiveXObject) { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); if(xmlhttp) { xmlhttp.open("GET", sURL, false); xmlhttp.send(); } } return xmlhttp.responseXML; }...
function getContent(sURL) { var xmlhttp; if(window.XMLHttpRequest) { xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET", sURL, false); xmlhttp.send(null); } else if (window.ActiveXObject) { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); if(xmlhttp) { xmlhttp.open("GET", sURL, false); xmlhttp.send(); } } return xmlhttp.responseText; }...