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

ajax ÇëÇóÓòÃû²»Í¬sessionÎÊÌâ

s.com ÓòÃûÏÂÓÐÒ»Îļþprocess.asp
VBScript code:

Response.Buffer = True
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "No-Cache"
Response.charset="gb2312"
response.Write Session("UserID")




ÏëÒªÔÚh.comÏÂÓÃajaxÀ´·ÃÎÊ
VBScript code:

response.Write getHTTPPage("http://s.com/process.asp")


Function getHTTPPage(url)
dim http
set http=Server.createobject("Msxml2.ServerXMLHTTP")
Http.open "get",url,false
Http.send()
if Http.readystate<>4 then
getHTTPPage = "error"
exit function
end if
getHTTPPage=bytesToBSTR(Http.responseBody,"GB2312")
set http=nothing
if err.number<>0 then Response.write(err.number)
End function

Function BytesToBstr(body,Cset)
dim objstream
set objstream = Server.CreateObject("adodb.stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = Cset
BytesToBstr = objstream.ReadText
objstream.Close
set objstream = nothing
End F


Ïà¹ØÎÊ´ð£º

ÎªÊ²Ã´Ò³ÃæÒ»¼ÓÉÏAjax¾Í³ö´í

²é¿´Ô´Îļþʱ³öÀ´µÄ
<script type="text/javascript">
// <![CDATA[
Sys.Application.initialize();
Sys.Application.add_init(function() {
    $create(Sys.UI._Upd ......

AjaxÖлص÷º¯ÊýµÄ´¦Àí½á¹ûûÓзµ»Ø£¿

JScript code:

function callback() {
alert(18); //²âÊÔÊÇ·ñµ÷ÓÃÁËcallback»Øµ÷º¯Êý
if (httpRequest.readyState==4) {
if(httpRequest.status==200){
alert(3); //²âÊÔÊ ......

ajax È¡²»µ½Êý¾Ý

http://localhost:8080/xx/zz.do  ÏÔʾ outµÄ xml Êý¾Ý

xml.open("GET",arguments[0],true);// arguments[0]ÊÇ /xx/zz.do

xml.send();

alert(arguments[0]);//Õâ±ßÓÐ

x ......

Çë½Ì¸ßÈËjquery+json+ajaxÎÊÌ⣿£¿

JS Îļþ
var test={

show:function(){

var userifo=new Array();
userifo.push(1);
userifo.push(2);
userifo.push(3);
//alert("aaa");

$. ......

¹ØÓÚajaxµÄSessionÎÊÌâ

Ïȼòµ¥ËµÃ÷Ï£¬ÎÒÒª×öµÄÕâ¸öÍøÕ¾Òª¿ª·¢Óû§×ÛºÏÉçÇø£¬ÎÒÃÇÀϰåÒªµÄ£¬ÏóQQÄÇÑùµÄÔÚÏß״̬£¬²¢ÇÒ¼´Ê±½ÓÊÕÏûÏ¢£¬¸ù¾ÝÔÚÏßʱ³¤¼ÆËã»ý·ÖµÈµÈ¡£ÎÒ¸úËû˵ÁËÕâÊÇÍøÕ¾£¬ÊÇWebÓ¦ÓóÌÐò£¬¸úQQÄÇWindowsÓ¦ÓóÌÐò²»Ì«Ò»Ñù£¬»¹Òª¿¼ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ