Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 ÎÊÌâ

×î½üѧϰAJAX,²ÎÕÕhttp://dev.yesky.com/msdn/183/2426683.shtml×Ô¼º×öÁËÒ»¸öÁÐ×Ó£¬µ«ÊÇ×ÜÊÇÔÚJS´¦±¨´í_Default䶨Ò壬²»ÖªµÀʲôԭÒò¡£
ǰ̨ҳÃ棺
function comit_onclick()
{
¡¡var name=document. ......

ajax³¬Ê±ÎÊÌâ

var xmlHttp = null;
function Getxmlhttp()
{
var url = "update.php";

if (xmlHttp == null)
{
xmlHttp=GetXmlHttpObject();
  if (xmlHttp==null)
  &n ......

AJAXÎÊÌ⣡£¡

Ò»¸öButton
Ò»¸öModalPopupExtender
Ò»¸öPanel

ÎÊÌâÊÇÕâÑùµÄ£ºÔÚ×öÐÞ¸Äʱºò µ±µãÐÞ¸ÄButton Panel ÏÔʾÁËÒ²ÓÐÒõӰЧ¹û£»
µ«ÊÇÎÒÐÞ¸ÄButtonÓÐbtn_Update_Clickʼþ£¬ÕâʼþÊÇ°ó¶¨Êý¾ÝµÄ£»
ÏÖÔÚµÄÐ ......

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

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