易截截图软件、单文件、免安装、纯绿色、仅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详解的疑问

第14章 的树型菜单的例子不能在IE中正常显示(树的结构可以展开,但展开后再点击就不能收缩了),但能在谷歌浏览器中使用,有看此书的朋友能指点下吗?
好贴 呵

dfgfgfgffffff


谢谢。
......

为什么页面一加上Ajax就出错

查看源文件时出来的
<script type="text/javascript">
// <![CDATA[
Sys.Application.initialize();
Sys.Application.add_init(function() {
    $create(Sys.UI._Upd ......

ajax的使用问题

ajax使用中遇到几个问题,请各位帮忙。

1、使用 alert(xmlhttp.responsetext); 弹出的却是整个页面的HTML文本。
2、使用xmlhttp发出的请求,在另一页面的Page_Load里,通过语句得到一个表的值,如何将这个 ......

国庆散分,顺便讨论一个AJAX问题

假如一个页面上有N个操作,都要用AJAX  不用控件,自己写JS
  例如 <a href="#" onclick="">aaaa </a>
      <a href="#" onclick= ......

ajax问题

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xht ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号