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

AjaxÎÞË¢ÐÂÏÂÔØ Çë¸÷λ´óϺÃǰï°ïæ°¡~

<script language="javascript">
  var XMLHttpReq;
  var cont=true;
//´´½¨XMLHttpRequest¶ÔÏó     
    function createXMLHttpRequest() {
if(window.XMLHttpRequest) { //Mozilla ä¯ÀÀÆ÷
XMLHttpReq = new XMLHttpRequest();
}
else if (window.ActiveXObject) { // IEä¯ÀÀÆ÷
try {
XMLHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
XMLHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
}
  function sendPackaging(prjid)
{
    alert(prjid);
    createXMLHttpRequest();
        var url = 'http://localhost:8080//p//front//ZipProject?prjid='+prjid;
XMLHttpReq.open("GET", url,"_self");
XMLHttpReq.onreadystatechange = getPackaging;//Ö¸¶¨ÏìÓ¦º¯Êý
XMLHttpReq.send(null);
}
function getPackaging()
{
alert(XMLHttpReq.readyState);
if (XMLHttpReq.readyState == 4) { // Åж϶ÔÏó״̬
        if (XMLHttpReq.status == 200) { // ÐÅÏ¢ÒѾ­³É¹¦·µ»Ø£¬¿ªÊ¼´¦ÀíÐÅÏ¢
            } else { //Ò³Ãæ²»Õý³£
                window.alert("ÄúµÄÇëÇóÓÐÒì³£");
&n


Ïà¹ØÎÊ´ð£º

Hibernate+spting+struts+ajax ÕûºÏÎÊÌâ

´ó¼ÒºÃ£¬Çë¸ßÊÖÃÇÖ¸µã
ÎÒµÄservletÎļþÊÇ£º
package com.ljc.rank.ajax;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
......

ajaxÔõôʵÏÖÐÂÔöÏÂÀ­ÁбíÎÞˢР- Web ¿ª·¢ / Ajax

ajaxÔõôʵÏÖÐÂÔöÏÂÀ­ÁбíÎÞˢС£ÀàËÆ
http://hi.baidu.com/comasp/blog/item/aa34e736bfc269320a55a9ad.html¡£
»¹ÓÐÍøÒ×163Blog£¬Ìí¼Óblogʱ£¬Èç¹ûдµÄÎÄÕÂûÓкÏÊʵķÖÀà¿ÉÑ¡£¬¿ÉÒÔµã»÷Ìí¼ÓеÄÎÄÕÂÀàÐÍ£¬È»ºóÌ ......

-----Ö»Òªµ÷ÓÃÒÔÏÂAJAX ´úÂë¾Í³öÏÖHTTP ´íÎó 403 ----

C#.netÖÐ £¬Èç¹ûµ÷ÓÃÒÔÏ´úÂë¾Í»á³öÏÖÏÂÃæµÄ´íÎó¡£Çë¸ßÊÖÖ¸½Ì¡£
HTTP ´íÎó 403 - ½ûÖ¹·ÃÎÊ 
Internet Explorer 
function postdata(msg,url,data)
{
   
var xmlhttp=createxmlhttp ......

ajaxµäÐÍÓ¦ÓÃ

ÄÄλÐÖµÜÓС¶Õ÷·þasp.net2.0 ajaxµäÐÍÓ¦Óá·Õâ±¾ÊéµÄ¹âÅÌ×ÊÁϰ¡£¬Óеû°´«ÎÒÒ»·Ý£¬ÎÒÈ¥¿ÌÅÌÁË»¹Ñ§Ð£¡£ÒòΪÎÒ°ÑѧУͼÊé¹ÝµÄ¹âÅÌÕÛ¶ÏÁË£¬ÏÖÔÚÒª¸øÑ§Ð£ÅâÒ»ÕÅ¡£
¶î¡£¹âÅÌ×ÊÁϺÜÄÑÕÒ°¡

¶î¡£¡£Ã»ÓÐŶ

ÓÐÐֵܸøÎÒ· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ