会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
代码改变世界
Cnblogs
Dashboard
Login
Home
Contact
Gallery
Subscribe
RSS
BAsil
<h4>I am nobody,but I have a dream.</h4> <!-- <marquee id="marq" direction=up height=60 scrollamount=1 scrolldelay=50> Basil <br><br>MSN:wang_hua_jie@hotmail.com <br><br>E-Mail:<a rel="nofollow noopener" href="mailto:hua_jie_wang@163.com">hua_jie_wang@163.com</a> </marquee>-->
在javascript中用微软的htc组件调用web service
2006-12-23 14:41
BAsil
阅读(
595
) 评论(
0
)
编辑
收藏
举报
<
script
>
function
init()
{
service.useService(
"
http://localhost/YSGL/YSEstablish/YuSuanHistory.asmx?WSDL
"
,
"
test
"
);
var
iCallID
=
service.test.callService(
"
getResult
"
);
}
function
onWSresult()
{
alert(event.result.value);
}
</
script
>
<
body
>
<
div
id
="service"
style
="behavior:url(webservice.htc)"
onresult
="onWSresult()"
></
div
>
</
body
>
webservice
[WebMethod]
public
string
getResult()
{
return
"
Hello World
"
;
}
最近在项目中尝试使用了部分YUI,等项目写完了,介绍一下。其实主要是一些简单的用法,还没有深入。另外YUI的邮件组真是好东西,我的很多问题都在上面找到了答案。
会员力量,点亮园子希望
刷新页面
返回顶部
About