- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
外文原文
来源: 《Mastering Ajax》 14 Aug 2007 From OReilly Media Inc.
3 Ajax and the Server-Side Technologies
Thus far, this book has already established that the major difference between the way server-side technologies normally work (the “add data-send-wait” model) and the way in which Ajax works (by calling the server asynchronously) is the primary way in which Ajax alters the traditional pattern of web page usage.
Ajax isn’t restricted to just one pattern of usage, and in Chapter 9 you will see how there are varying patterns by which Ajax can alter the flow of data from the client to the server. The one similarity all these patterns share is that you are no longer tied to having to explicitly submit a form and then wait for its response. Let’s talk a little about how forms and HTML controls are used in the page.
Forms and HTML Controls
Ajax doesn’t alter the fundamental way in which HTML controls work and the way in which data is retrieved from them. You still have a set of HTML controls (such as drop-down lists, radio buttons, check boxes, text boxes, and text areas), and these are still submitted to the server. The server picks them up in the same way.
There are two big changes, however. The first is the way in which the server-side page is called, and the second is the fact that the HTML form can be completely removed from the page or doctored to such an extent that it doesn’t work in the expected way. Let’s explain this by first taking a closer look at how the existing model of submitting a form to the server side works.
The Forms Model of Submission
With any server-side technology, the normal way of submitting a form is to have a form with a button that is submitted to the server when the user clicks the button.
Classic ASP and PHP would use the form’s ACTION attribute to redirect the user from an original page to a response page. The processing is done on the server before the user is redirected to a new page, and the new page is used to display the data (F
您可能关注的文档
- 《复变函数教学课件》4-3.ppt
- 《复变函数教学课件》4-4.ppt
- 《复变函数教学课件》4xt.ppt
- 《复变函数教学课件》5-1.ppt
- 《复变函数教学课件》5-2.ppt
- 《复变函数教学课件》5-3(新).ppt
- 《复变函数教学课件》5-3.ppt
- 《复变函数教学课件》5-4.ppt
- 《复变函数教学课件》5xt.ppt
- 《复变函数教学课件》6-1.ppt
- 外文翻译4 Ajax and the Sever-Side Technologles.doc
- 外文翻译Building a Database-Driven Web Site Using JSP and MySQL.docx
- 外文翻译EJB security.doc
- 外文翻译Finding Environment and Compiler Problems.doc
- 外文翻译Introducing Ajax.doc
- 外文翻译JAVARMI and CORBA.doc
- 外文翻译javaScript的学习.doc
- 外文翻译Writing Container-Managed Persistent Entity Beans.doc
- 校园信息资源主题网系统设计.doc
- 用户求租求购意向信息管理功能设计与实现.doc
文档评论(0)