无刷新页面

.NET 世界中的远程脚本
http://www.microsoft.com/china/msdn/archives/library/dndotnetclinic/html/scripting11122001.asp


文中提到:

WebService 行为中与 RSGetASPObject 对应的函数是 UseServiceUseService 可以创建一个客户端对象的实例,以便访问所提供的 Web 服务上的所有方法。
例如,service.useService("clsWeather.asmx?WSDL","svcWeather") 将在服务对象上创建一个属性 svcWeather,并为其指定一个基于 clsWeather.asmx Web 服务的客户端对象。
创建该对象后,远程方法的调用将通过以下方式完成:在返回的对象上调用 callService 方法,并使用回调函数的名称、Web 服务上的方法及其参数作为该方法的参数。当返回 getConditions 方法时,WebService 行为会调用 showWeather 函数,该函数把 innerHTML 设置为返回结果的值。

service.useService("clsWeather.asmx?WSDL","svcWeather")
   // 在 svcWeather Web 服务上调用 getConditions 方法
   iCallID = service.svcWeather.callService(showWeather,"getConditions",txtCity.value)
function showWeather(result)
{
       // 显示状况
        divWeather.innerHTML = result.value
}



利用WebService技术实现远程数据库存取
http://www.itonline.gd.cn/ittech/list.asp?id=519

http://gd8u8.myrice.com/chat/chat12_1.htm
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值