外文翻译-Ajax的应用.docx
《外文翻译-Ajax的应用.docx》由会员分享,可在线阅读,更多相关《外文翻译-Ajax的应用.docx(9页珍藏版)》请在三一办公上搜索。
1、附录1TheapplicationofAjaxSpendafewminutesusingyourapplicationyouselected(browserexcept),writeitdowntowhatuserinteraction,andthenimmediatelyback.Forthesakeofbrevity,Igiveanexampleofelectronicform,however,pointsinvolvedhereisgeneralenoughforvariouscases,thetexteditor.Well,westarted.Firstinthespreadsheet
2、toinputsomeequalities,payattentionto,caninteractinseveralways:editdata,browsingthedatausingthekeyboardandmouse,alsocanusethemousetodragtoreorganizethedata.Idotheseoperations,theprogramgavemefeedback.Whenmovingthemouse,thecursorchangesshape;whenthemousestopsabove,buttonbright;selectedtextcanchangecol
3、or.Whenawindowordialogboxisselected,andusuallyisnotthesame,etc.Thesearetheso-calledrichuinteraction.Ofcourse,therearestillsomeroomforimprovement,butthisisagoodstart.OK,aspreadsheetisarichclientprogram7Absolutelynot.Inaspreadsheetorsimilardesktopapplications,businesslogicanddatamodelisruninaclosedenv
4、ironment.Inthisenvironment,theyclearlyunderstandeachother,andcanvisiteachother,andtheenvironmentoutsideofthings,isunknowntothem.Whatistheclient?Itisaseparateprocessofmutualcommunicationprogram,whichisusuallyrunontheserver.Ingeneral,theserverisalwaysbiggerthantheclient,ability,dispositionisbetter,bec
5、ausetheserverisusuallystoredmultitudeinformation.Theclientprogramenablestheenduserscanviewandmodifytheinformation,whenmultipleclientsconnectedtothesameserver,canshareinformationbetweenthem.Showsasimpleclient/serverarchitecture.Inthenlayerarchitectureinthemodem,theserveroftenandfurthertheback-endserv
6、er(suchasadatabase)communication,soCallednIniddlewarenIayeralsoplaysaroleofclientandserver.EndofourAjaxapplicationinthechain,itisonlyastheclient,therefore,fortheconvenienceofdiscussion,wecanpulthewholensystemasalabeledasblackboxserver.SpreadsheetapplicationsIonlyneedtomanageitsownsavedasmallamountof
7、datainmemoryorinthelocalfilesystem.Ifthedesignofwellstructure,couplingformdataanditcanbeveryloose,butIcan,tpassanetworktosplitorSharethemthroughnetwork.Inthissense,theapplicationofelectronicformisnotaclient.ThecorrespondingWebbrowserisatypicalclient,whichcommunicatewiththeWebserver,therequestpage.Th
8、ebrowserhasabundantfunctions,usedtomanageuserbrowsingbehavior,thecommonfunctionofthebackbutton,thehistorylistandtabbedbrowsingmultipledocumentsetc.ButwhenweputthesitespecificWebpagesasanapplication,thesegeneralbrowsingfunctionactuallyandapplicationis,atbest,suchasspreadsheetsandWindowsbegantherelati
9、onshipbetweenbuttonorthewindowlist.WeconsidertheapplicationofmodernWeb.Forthesakeofsimplicity,wechoseAearthpeopleknowonlinebookstore.OpentheAmazonsiteinthebrowser,becausebeforeIvisited,itwillshowmeafriendlygreeting,Somerecommendedbibliography,andmypurchasehistoryinformation.Clickonanyoneoftherecomme
10、ndedbibliography,willgotoanotherpage(atthistime,thepagetorefresh,withinafewsecondsIwhatalsodontsee).Thenewpageistheinformationrelevanttothebookreview:otherbooks,second-handbooks,offerthesameauthor,andotherbooksIread.Inshort,appearstobeveryrich,highdegreeofassociatedinformationinfrontofme.Butforme,in
11、teractivewayistoclickonthehyperlink,andthenfillinsomeforms.Suppose1atthekeyboardaccidentallyfellasleep,wakeupseconddays,ifnotrefreshthepage,IdontknowuHarryPorterseriesofbookshavebeenpublished,norwillmylistfromonepagetoanotherpage,ifIwanttoseemorethingstoo,becauseIcannotchangethelocalcontentareapages
12、ize.IseemtobeinthecriticismoftheAmazoninterface,butitisnotthecase,Ijusttookitasanexample.Infact,inthetraditionalWebdevelopmentoftheshackles,theyhavedoneverywell.Butcomparedtothespreadsheet,andtheinteractionmodelisundoubtedlytoolimited.WhyWebistheapplicationofmodemstillhavesomanyIimitationsTThecurren
13、tsituationhassomereasonabletechnicalreasons,wehavetoconsidernow.TheblueprintfortheInternetisallthecomputerintheworldareconnected,formingahugecomputingresources.Ifthelocaldataandremoteinvocationequated,thenboththeanalysisofproteincomponentsorcracksignalsfromouterspace,usersneednotconsiderthephysicall
14、ocationofthemachines,therestofthecomputationonlypleasure.Butunfortunately,thelocalcallandremoteinvocationissomethingtotallydifferent.Underthecurrentleveloftechnology,thenetworkcommunicationisstillacostlythings(thatistosay,isusuallyveryslow,butunreliable).Intheabsenceofanetworkcalledthesituation,meth
15、odandfunctionofdifferentdataandtheiroperationsarelocatedinthesamelocalmemory,totransferdataandreturntheresultsobtainedareverydirect.Inaremotecall,communicationinthenetworkatbothendsofthetwosidestosendandreceivedatarequiresalotofcomputationatthebottom.Comparedwiththedatabackandforthontheline,thesecal
16、culationsrequiremoretimeconsuming.Thetransmissionofabinarydata,togothroughmanystepsofcodinganddecoding,errorchecking,failure,packetretransmissionsplitandreorganization,dataintoOand1binarysignal,throughtheline(orwirelessconnectiontotheotherparty).Inthelocal,callthefunctioncallrequestisencodedasanobje
17、ct,thentheobjectisserializedasaseriesofbytes,theapplicationlayerprotocol(usuallyHTTP)viathephysicaltransmissionmedium(suchascoppercable,opticalfiberorradio)sendout.Ontheremotemachine,theapplicationlayerprotocoldecoding,thebytedeserializethedataobtained,tocreateacopyoftherequestedobject.Thenthedatamo
18、delisappliedtotheobjectandgeneratesaresponseobject.Inordertomaketheresponseobjectispassedtothecallbackfunctionlocal,allserializationdeserializationoperation,andthetransportlayerwillbebackagain.Finally,theresponseobjectispassedtothefunctioncalllocal.Thisinteractiveprocessisverycomplex,butfortunately,
19、itcanbedone.Modernprogrammingenvironmentssuchas.NETJavaandMicrosoftframeworkarebuiltwiththisability.However,theexecutionofremotecalls,alltheseoperationswillstillbeintheinternalexecution.IfWewereusingtheremoteinvocation,performancewillbeaffected.Thatistosay,aremotecallisunlikelytohaveefficiencyandloc
20、alcall.Whatisworse,theinstabilityofnetworkmakestheefficiencylossisunpredictable,itisdifficultto.Incontrast,alocalcalltorunonthelocalmemory,willundoubtedlyhaveanadvantagemoreatthispoint.Andsoon,saidremotecallhalfaday,betweenthisandtheavailabilityofsoftware?Theansweris,arelationship.Asuccessfulcompute
21、ruserinterfacemustbeabletoatleastlevelsimulationWeexperienceintherealworld.Oneofthebasicrulesofinteractionis,whenwepush,prickorpokeaboutsomething,itwillimmediatelyresponse.Responsetimeaslongasalittlebitoutalittle,willmakepeopleconfused,distracted,toshiftthefocusfromthetaskathandtotheuserinterface.Re
22、motecallsacrossthenetwork,needtoperformadditionaloperationsingreatquantities,theytendtoputthesystemtoslowdown,theuserperceiveddelay.Indesktopapplications,onlywhentheusabilitydesignisverybad,willappearthiskindofmakesusersfeelfullofbug,unresponsivetotheuserinterface,butintheapplicationofnetwork,whatdo
23、notgetalargenumberofsuchinterface.Becausethenetworkdelayisunpredictable,thiskindofinterfaceproblemsoftencomeandgolikeashadow,itisdifficulttocarryouttheapplicationresponsetest.Inotherwords,thenetworkdelayistheresultofacommoncauseofthepracticalapplicationoftheinteraction.Userinterfacedevelopersfornetw
24、orkdelaycanonlyassumetheworst.Saysimply,istotrytomaketheuserinterfaceandnetworkactivitiesunrelatedto.Programmershavealreadycreatedatrulyeffectiveandprovensolutions,tosolvethisproblem.TosellaGuan,letusintotherealworld.InthemorningIwilldo,averyimportantistowakemykidsgotoschool.Icanstandontheedgeoftheb
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 外文 翻译 Ajax 应用

链接地址:https://www.31ppt.com/p-4326008.html