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
Ïà¹ØÎÊ´ð£º
ÎÒµÄÒ³ÃæÀïÓõÄAJAX¿Ø¼þ µ«Ò³Ãæ¾²Ö¹Ò»¶Îʱ¼ä¾Í»á³öÏÖÉÏÃæµÄÒ»¸ö´íÎóÊÇÔõô»áÊÂѽ Ôõô½â¾ö°¡
¸ßÊÖ°ï°ïæ°¡
½«ÏîÄ¿Éϼ¶Ä¿Â¼ÖеÄÖÐÎÄÃû³ÆÈ«²¿¸Ä³ÉÓ¢ÎÄ
Â¥ÉÏ˵µÄºÜÇå³þÁË¡£°ï¶¥Ò»Ï°É
Õâ¸öÎÊÌâ²»ÊǺܳ£ ......
ÔÚ¼ÒÑо¿ajax£¬¿´Á˱ðÈ˵ÄÒ»¸öÍøÉϹºÎïÉ̳ÇÏîÄ¿µÄÔ´´úÂ룬×Ô¼ºÒ²À´·Â±ðÈ˵Ķ«Î÷Á·Ï°Á·Ï°£¬Ã»Ïë³öÎÊÌâÁË£¡Ò»ÏµÄÕâЩ´úÂëÊÇÎÒ·ÂÕÕ±ðÈËдµÄ¡£ÎÒÊÇÏëÈÃ×¢²áµÄÈËÌîдÓû§Ãû£¬¹â±êÀ뿪Óû§ÃûºóÃæµÄÌîд¿Õ°×´¦ºóÁ¢¿ÌÀûÓÃaj ......
°´Å¥·ÅÔÚUpdatePanel1£¬Ïëͨ¹ýµã»÷µ÷ÓÃDictionaryTvAdd.aspxµ¯³öÒ»¸ö×Ó´°Ìå
ÓÃÏÂÃæµÄÓï¾äÌáʾÎÒȱÉÙ¶ÔÏó
protected void Button1_Click(object sender, EventArgs e)
{
ScriptManager.R ......
ÎÒÔÚÍøÕ¾ÀïÃæ¼ÓÉÏÁËAJAXµÄÓ¦Óá£ÔÀ´²¶×½session timeoutÊÇÔÚON_PAGELOADʼþÀïÃæ´¦ÀíµÄ¡£µ«ÊǼÓÉÏajaxºó¾Í²»ÔÙÆð×÷ÓÃÁË¡£ ÀÏÊÇÏÔʾObject reference not set to an instance of an object.Ó¦¸Ã¾ÍÊÇsessionÖµÒѾÇå¿ ......
Hi£¬everybody£¡
×î½üÓÐÒ»¸öϵͳÏÔʾ²ãÓõÄÊÇstruts£¬ÆäÖÐÓÐÒ»¸ö¹¦ÄܾÍÊÇ£¬ÔÚÒ»¸öjspÒ³ÃæÉÏÓкܶà±í¸ñ£¬Ã¿Ò»¸ö±í¸ñÉ϶¼ÓÐÒ»¸ö¶ÔÓ¦µÄidµ±µã»÷Õâ¸ö±í¸ñµÄʱºòµ¯³öÒ»¸öģ̬¶Ô»°¿ò£¬È»ºóÊäÈëÄÚÈÝÔÙÌá½»£¡ÒªÇó¾Í ......