资源描述:
《ajax技术原理及工作原理简介》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、ajax技术原理及工作原理简介IntroductiontotheprinciplesandprinciplesofajaxtechnologyAuthor:anonymoussource:originalclick:500time:2007-12-2AJAX,called"AsynchronousJavaScriptandXML〃(AsynchronousJavaScriptandXML),isawebdevelopmenttechniquethatcreatesinteractivewebapplications・Thefollowingtechn
2、iquesaremainlyincludedAjax(AsynchronousJavaScript+XML)definitionPresentationofXHTML+CSSbasedonthestandards-basedpresentationUsingtheDOM(DocumentObjectModel)todynamicallydisplayandinteract:UsingXMLandXSLTfordataexchangeandrelatedoperations:UsingXMLHttpRequestforasynchronousdatal
3、ookupandretrieval;UseJavaScripttobindeverythingtogether・SeethetextofJesseJamesGarrett,anajax-maninEnglish・LikeDHTMLorLAMP,AJAXdoesnotmeanasingletechnique,butratheraseriesofrelatedtechnologies・Infact,someajax-based^derivative/composite^technologiesareemerging,suchas〃AFLAX〃・AJAXa
4、pplicationsusewebbrowsersthatsupportthesetechnologiesasthenmningplatform・ThesebrowserscurrentlyincludeMozilla,Firefox,InternetExplorer,Opera,KonquerorandSafari.ButOperadoesnotsupportXSLformatobjectsorXSLT.ComparetotraditionalwebapplicationsTraditionalwebapplicationsallowusersto
5、fillinformsandsendarequesttothewebserverwhentheformissubmitted.Theserverreceivesandprocessestheincomingformandreturnsanewpage・ThiswastesalotofbandwidthbecausemostoftheHTMLcodeonbothpagesisoftenthesame・Becauseeachapplicationisrequiredtosendarequesttotheserver,theresponsetimeofth
6、eapplicationdependsontheresponsetimeoftheserver・Thisresultsinuserinterfaceresponsesmuchslowerthanlocalapplications・Contrast,AJAXapplicationscanonlysendandretrievethenecessarydatatotheserver,itUSEStheSOAPorotherwebserviceinterfacebasedonXML,andontheclientsideusingJavaScriptproce
7、ssingresponsesfromtheserver・Becausetheamountofdataexchangedbetweentheserverandthebrowserisgreatlyreduced,wecanseethefasterapplicationoftheresponse・Atthesametime,alotofprocessingcanbedoneontherequestingclientmachine,sotheprocessingtimefortheWebserverisreduced・TheadvantageofAjaxa
8、pplicationsis:Theuserexperienceisenhancedbyasynchronou