cif使用ajax返回的数据,Consuming Web Services from AJAX Applications

摘要:

Web applications require new and innovative techniques to manage the increased amount and variety of information they handle. The response to the challenge of Rich Internet Applications' (RIA) requirements is a new web development methodology called AJAX (Asynchronous Java-Script And XML). AJAX is a set of technologies that work together, to leverage browser capa-bilities in order to reduce the amount and frequency of server postbacks. With AJAX, regular postback cycles are eliminated or replaced by requests, typically asynchronous, for some spe-cific data that result in partial updates of the Web page. This considerably reduces the load on the Web Server and enhances scalability of the server side resources, while making interactive Web applications more responsive. When an AJAX application makes a server request it is most often talking to a piece of code residing on the Web server. This piece of code may con-nect to a database or another server in order to collect some data which is then sent to the client. When the client call is for a Web service method, developers are faced with a couple of problems to solve, and decisions they have to make: (1) architectural – call the service di-rectly or via the Web server, (2) technical – how to correctly format a request and how to process the returned response, and (3) security – prevent or deal with cross-site scripting re-strictions. In this paper we use a specific example in order to illustrate how to consume Web services in an AJAX application and to provide some general guidelines which make the proc-ess more structured and easier to understand.

展开

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值