资源描述:
《外文翻译流行的ajax》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、外文原文之一PopularAjax作者:DaveCrane国籍:USA出处:Ajaxcn.org原文正文:Ajax(AsynchronousJavaScript+XML)isarelativelyrecentname,coinedbyJesseJamesGarrettofAdaptivePath.SomepartsofAjaxhavebeenpreviouslydescribedasDynamicHTMLandremotescripting.Theclassical“webapplication”thatwehavebecomeusedtoisbeginningtocrea
2、kunderthestrainthatincreasinglysophisticatedweb-basedservicesareplacingonit.Avarietyoftechno-logiesarelininguptofillthegapwithricher,smarter,orotherwiseimprovedclients.Ajaxisabletodeliverthisbetter,smarterrichnessusingonlytechnologiesthatarealreadyinstalledonthemajorityofmoderncomputers.Wi
3、thAjax,wearetakingabunchofdustyoldtechnologiesandstretchingthemwellbeyondtheiroriginalscope.Weneedtobeabletomanagethecomplexitythatwehaveintroduced.Theclient/serverandrelatedn-tierarchitecturesareessentialforcollaborativeorcentrallycoordinatedapplications,buttheyraisethespecterofnetworklat
4、ency,withitsabilitytobreakthespellofuserproductivity.Althoughageneralpurposesolutiontotheconflictbetweenthetwoexistsinasynchronousremoteeventhandling,thetraditionalrequest-responsemodeloftheclassicwebapplicationisillsuitedtobenefitfromit.We’vesetagoalforourselves,andforAjax,inthischapterof
5、deliveringusablesovereignapplicationsthroughawebbrowser,therebysatisfyingthegoalsofuserproductivity,networking,andeffortless,centralizedmaintenanceofanapplicationallatonce.Inorderforthismissiontosucceed,weneedtostartthinkingaboutourwebpagesandapplicationsinafundamentallydifferentway.We’vei
6、dentifiedthekeyideasthatweneedtolearnandthosethatweneedtounlearn:lThebrowserhostsanapplication,notcontent.lTheserverdeliversdata,notcontent.lTheuserinteractscontinuouslywiththeapplication,andmostrequeststotheserverareimplicitratherthanexplicit.lOurcodebaseislarge,complex,andwellstructured.
7、Itisafirst-classcitizeninourarchitecture,andwemusttakegoodcareofit.Ajaxisn’tasingletechnology.Rather,it’sacollectionoffourtechnologiesthatcomplementoneanother.JavaScriptJavaScriptisageneral-purposescriptinglanguagedesignedtobeembeddedinsideapplications.TheJava