js调用ASP问题

yh235 2007-05-14 02:35:27
如何在JS中调用ASP内容?
实现html静态更新
麻烦给个简单的例子!谢谢!!
...全文
230 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
mrshelly 2007-05-16
  • 打赏
  • 举报
回复
呵呵.这样倒分有意义么?
benaheng 2007-05-16
  • 打赏
  • 举报
回复
给你发过了去代码
qqhe325 2007-05-14
  • 打赏
  • 举报
回复
试试com
yh235 2007-05-14
  • 打赏
  • 举报
回复
不明白....
chouchy 2007-05-14
  • 打赏
  • 举报
回复
var xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");//用兼容IE,FF的xmlhttprequest创建方法替换
xmlhttp.open("GET","xxx.asp",true);//调用xxx.asp
xmlhttp.onreadystatechange = function()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
showDiv.innerHTML = xmlhttp.responseText;//把xxx.asp的内容显示到指定的showDiv中
}
xmlhttp.send(null);

28,391

社区成员

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

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