关于XMLhttp的问题,在线======!

my0707 2003-12-10 03:02:38
我是做ASP的,一直为无刷新问题烦恼
现在听说了XMLhttp,可是不知道它到底是什么东西
请哪位朋友指点一下它的用法
分不够可以+
...全文
79 9 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
my0707 2003-12-12
  • 打赏
  • 举报
回复
谢谢二位~~~结贴!
im_yh 2003-12-10
  • 打赏
  • 举报
回复
http://www.csdn.net/Develop/article/16/16493.shtm
my0707 2003-12-10
  • 打赏
  • 举报
回复
up up!~
my0707 2003-12-10
  • 打赏
  • 举报
回复
唐兄~~~~~有中文的资料吗?我的E文实在很差呀
my0707 2003-12-10
  • 打赏
  • 举报
回复
谢谢~~~我运行后可以打开CSDN的首页

已经收藏

不过代码我现在还看不懂
比如XMLhttp的属性和方法等等

我看了几篇关于XMLhttp的文章,有的是在客户端用js实现的,也有的是像唐兄在服务器端实现的,不过关于XMLhttp的属性和方法我还不了解

例如XMLhttp.open "get",url,false和XMLhttp.open "post",url,true有什么区别呀?
XMLhttp.responseBody和XMLhttp.responseText等等
Jaron 2003-12-10
  • 打赏
  • 举报
回复
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/htm/sdk_intro_6g53.asp
Jaron 2003-12-10
  • 打赏
  • 举报
回复
response.write getHTTPPage("http://www.csdn.net") '用GET的方法

function getHTTPPage(url)
on error resume next
dim http
set http=Server.createobject("Msxml2.XMLHTTP")
Http.open "GET",url,false
Http.send()
if Http.readystate<>4 then exit function
getHTTPPage=bytes2BSTR(Http.responseBody)
set http=nothing
if err.number<>0 then err.Clear
end function

Function bytes2BSTR(vIn)
dim strReturn
dim i,ThisCharCode,NextCharCode
strReturn = ""
For i = 1 To LenB(vIn)
ThisCharCode = AscB(MidB(vIn,i,1))
If ThisCharCode < &H80 Then
strReturn = strReturn & Chr(ThisCharCode)
Else
NextCharCode = AscB(MidB(vIn,i+1,1))
strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
i = i + 1
End If
Next
bytes2BSTR = strReturn
End Function
my0707 2003-12-10
  • 打赏
  • 举报
回复
to Jaron(唐伯虎点蚊香)
谢谢你的文章,我看了一遍,不过没看懂多少
好象我能用它做个站内搜索

可是我想详细了解一下关于XMLhttp的一些用法,尤其是关于GET或POST返回数据流的技术
有相关的资料吗?
Jaron 2003-12-10
  • 打赏
  • 举报
回复
上个月偶发的:http://expert.csdn.net/Expert/TopicView1.asp?id=2451559

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧