Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

chromeÀïµÄajax, status=0??? - Web ¿ª·¢ / Ajax

ΪºÎXMLHttpRequestÔÚIEÏÂÕý³£ÔËÐУ¨readyState=4,status=200£©£¬
¿ÉÊÇchromeÀïµÄreadyStateÄÜ´ïµ½4£¬¶østatusһֱΪ0£¿


JScript code:

function getHttp() {
var xmlhttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP")
if (xmlhttp == null) return;
try
{
alert("1");
xmlhttp.open("get", "http://www.baidu.com");
alert("2");
}
catch (e)
{
xmlhttp = null;
return;
}
alert("3");
xmlhttp.onreadystatechange = function()
{
if (!xmlhttp) return;
if (xmlhttp.readyState == 4)
{
alert("4");
if (xmlhttp.responseText)
{
alert("5");
alert(xmlhttp.responseText);
}
xmlhttp = null;
}
}
alert("6");
xmlhttp.send(null);
}


ajax ²»ÄÜ¿çÓòµÄ¡£

³ÌÐòÐè·ÅÔÚ·þÎñÆ÷¶ËÖ´ÐÐ ·ñÔò»á³öÏÖÕâÖÖÇé¿östatusΪ0

ÒýÓÃ

ajax ²»ÄÜ¿çÓòµÄ¡£

ÒýÓÃ

³ÌÐòÐè·ÅÔÚ·þÎñÆ÷¶ËÖ´ÐÐ ·ñÔò»á³öÏÖÕâÖÖÇé¿östatusΪ0


¶ò£¬Õâ²»ÊÇÖ÷ÒªÎÊÌâ¡­¡­
Ö÷ÒªÎÊÌâÊÇÔÚIEÀïÉÏÃæµÄ´úÂëÖ´ÐÐÕý³££¬ÔÚChromeÀïÈ´²»Äܵõ½Êý¾Ý¡­¡­
Ϊʲô°¡£¿

ÈçºÎ½â¾öÕâ¸ö¼æÈÝÐÔ


Ïà¹ØÎÊ´ð£º

ajax´«µÝ²ÎÊý»ñÈ¡µÄÎÊÌâ - Web ¿ª·¢ / Ajax

ÀûÓÃAjax´«µÝÒ»¸ö²ÎÊýµ½getreslt.asp£¬µ«ÊÇ·¢ÏÖgetreslt.aspÓ¦¸ÃÊÇûÄÜ»ñÈ¡µ½£¬¼ì²éÁË·¢ËͲ¿·Ö£¬Ó¦¸ÃÊÇ·¢³öÈ¥Á˵ģ¬µ±Ö¸¶¨getreslt.aspµÄ²éѯÌõ¼þ£¬Ò²Äܵõ½responseµÄ½á¹û¡£Âé·³¸÷λ¿´¿´£¬Õâ¸öÊÇ·¢ËͲ¿·ÖÓÐÎÊÌ⻹ÊÇ ......

ajaxµÄÎÊÌâ - .NET¼¼Êõ / ASP.NET

ÎÒÅóÓѵÄÒ»¸öASP.NETÒýÓÃÁËajax¼¼Êõ£¬binĿ¼ÏÂÃæÒ²ÓÐajaxpro.dll£¬ÎªÊ²Ã´·þÎñÆ÷²»ÐèÒª°²×°ajax²å¼þÒ²¿ÉÒÔÔËÐÐÄØ£¬ÕÕÀí˵Ӧ¸ÃÒª°²×°ASPAJAXExtSetup.msi
ÓÐ ajaxpro.dll¾Í¿ÉÒÔÁË

²»Í¬µÄaajx×é¼þ
AjaxPro¾ÍÊÇ¿ò¼ ......

PHP+AJAX ÐÂÊÖÌáÎÊ - PHP / Framework

ÎÒÏëѧϰһÏÂAJAX£¬°´×ÅÍøÉϵÄʵÀýÊÔÁËһϣ¬Ìá½»ºóûÓÐÈκη´Ó¦£¬Çë¸ßÊÖÖ¸½ÌÒÔÏ£¬´úÂëÈçÏ£¬
<script language="javascript">
function saveUserInfo()
{
//»ñÈ¡½ÓÊÜ·µ»ØÐÅÏ¢²ã
var msg = do ......

AJAX ºǫ́Ôõôȡ²»µ½Ö± - .NET¼¼Êõ / ASP.NET

´úÂëÈçÏ Çë¸ßÊÖ Ö¸µãÏ лл
ajax_http.js
-------------
function getXMLHTTP() {
  var xmlhttp;
  if (window.ActiveXObject) {
  //IE
  try {
  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ