From Ajax Patterns
|Revision as of 10:08, 19 July 2012
Mikeharry089 (Talk | contribs)
← Previous diff
|Revision as of 21:27, 16 August 2012
18.104.22.168 (Talk | contribs)
Next diff →
|Line 78:||Line 78:|
|[http://www.thietkewebsitehanoi.net/thiet-ke-web/18/thiet-ke-web-gia-re.html/ Thiet ke web gia re]||[http://www.thietkewebsitehanoi.net/thiet-ke-web/18/thiet-ke-web-gia-re.html/ Thiet ke web gia re]|
|[http://tkwebgiare.com/ Thiet ke website dep]||[http://tkwebgiare.com/ Thiet ke website dep]|
|+||[http://creditloanadvice.com/best-top-10-english-songs-2012-ten-latest-list-2011/ Top 10 songs]|
|[http://www.thietkewebsitehanoi.net/thiet-ke-web.html/ Thiet ke web]||[http://www.thietkewebsitehanoi.net/thiet-ke-web.html/ Thiet ke web]|
|[http://www.thietkewebsitehanoi.net/dich-vu-thiet-ke-web.html/ Dich vu thiet ke web]||[http://www.thietkewebsitehanoi.net/dich-vu-thiet-ke-web.html/ Dich vu thiet ke web]|
Revision as of 21:27, 16 August 2012
Tags: Data Fact Information Raw Semantic
In A Blink
Diagam Server talks (balloon) HTML.
- Browser: "Tell me about the account balance."
- Server: "Cr3000000|Db1000000|Bal2000000."
Devi's producing a web statistics report so that managers can see how much each web page is being viewed. Fortunately, all the page access data is already exposed as XML by an existing RESTful service, being used by link building service the billing department. Devi's browser script only has to grab an XML document from that service, and transform it to HTML.
What format should be used for server responses?
- Ajaxian applications usually require interaction between browser and server, which necessitates a form of message-passing.
- The browser contains display-related information, while the server usually contains business and application logic.
- It's undesirable to couple server-side services to browser display.
Have the server respond with abstract, semantic, data. Server-side services output data structures in the form of XML, JSON, or some custom, text-based, format. Because the data is not web-specific, it is often in a generic form which can be used by external applications as well as the browser script. Hair Transplant in Pakistan
For example, imagine you're designing a weather website. You accepts queries like http://www.example.com/temperature/max/melbourne and respond with the current weather, using a semantic message like this:
<weather> <location>Melbourne</location> <date><year>2005</year>1<month></month<day>1</day></date> <time>14:00</time> <temperature format="celcius">32</temperature> </weather>
The browser application can use semantic content in different ways:
- Transform some or all of it into HTML to present it to the user.
- Interrogate the content to decide what to do next.
- Modify it based on client state and upload it again.
Semantic Responses provide a clean separation by preventing the server from knowing HTML and encapsulating the entire UI in the browser. Message content and format must be suitable for manipulation on both sides. The precise message format will vary, but the key characteristic is raw, semantic, data; as opposed to code or display detail.
Note that the emphasis here is on the response from server to browser. Semantic content can also be passed from browser to server. Indeed that's what usually happens anyway. When the browser sends a GET query, the query usually consists of abstract concepts, e.g. in the query, http://www.example.com/games?manufacturer=namco (Not working), the manufacturer name and value are semantic content.
Pool Pumps pacquiao vs marquez loan modification pop up display Diploma Programme essay writing buy research paper phone number lookup seo services forex Hair Transplant in Pakistan Vorsorgen seo vietnam Thiet ke web gia re Thiet ke web ban hang Thiet ke web gia re Thiet ke website dep Top 10 songs Thiet ke web Dich vu thiet ke web Thiet ke web chuyen nghiep Thiet ke web gia re Thiet ke website chuyen nha chuyen nha gia re chuyen van phong Mua thanh lý đồ cũ Chuyên mua đồ thanh lý các loại
welding-schools Welding Training Culinary Training Culinary Schools viec lam sinh vien bcs championship tickets daytona 500 tickets berto vs ortiz tickets condit vs diaz evans vs davis tickets lesnar vs overeem live streaming dịch vụ seo seo gía rẻ rao vat seo uy tin dịch vụ seo là gì dịch vụ seo miễn phí
Atlanta General Contractor Atlanta Bathroom Remodeling Tennessee Spinal Surgeon Neurosurgeon in Kentucky Garden Weddings Garden Wedding Locations Garden Wedding Venues Wedding Tux Wedding Tuxedos Tuxedo Rentals Wedding Tuxedos Dunlop Q2 Tires Dunlop 401 Tires Dunlop 404 Tires Metzeler 880 Tires
Which message format to use?
Semantic Responses can be represented in several different forms. Each of the following is captured as a separate pattern.
macklin vs martinez tickets pacquiao vs bradley tickets bradley vs pacquiao tickets mayweather vs cotto mayweather vs cotto tickets mayweather vs cotto tickets bcs national championship tickets cotto vs mayweather tickets bradley vs pacquiao tickets pacquiao vs bradley ticket pacquiao vs bradley live streaming mayweather vs cotto live streaming pacquiao vs bradley pacquiao vs bradley tickets
Each of the above patterns discusses its own strengths and weaknesses. There are several factors involved:
- Browser-Side Environment: Which browser versions are being targeted will affect feasibility of message formats. In particular, XML support is limited in older browsers.
- Server-Side Environment: What sort of support is there for the message formats in the server-side coding environment. If using JSON, for example, is there a suitable binding for the server-side language?
- Developer Skills: What sort of skill base is available to deal with the message format? You might be tempted to use XML because you feel browser-based XSLT is the most elegant solution, but that requires XSLT talent.
- External Agents: The browser and the server may not be the only things that access the message. If the server is offering a generic REST service, the message format will need to be suitable for external applications too.
ib program downloads geographic information in a semantic, XML, format. See XML Message for more details.
Jim Ley's Route Planning For Round the World Flights downloads flight route information using JSON format. See JSON Message for more details.
HTML Response involves sending display information as opposed to semantic data. Usually, the browser transforms Semantic Responses into HTML, whereas it's the server that handles HTML generation in the case of HTML Response.
RESTful Services generally deliver Semantic Responses.
Ajax Stub relies on a generic framework to make calls between the browser and the server. The message from browser to server is a remote call including a function name and arguments, and the message from server to browser is a result. These are a form of Semantic Response, but developers using such frameworks don't need to be aware of the precise format.
Sending a semantic message is like sending a textual description of an object - the facts are there and they can be rendered as the receiver sees fit, or used in other ways such as being synthesised with related descriptions. http://www.rentalprotectionagency.com/background-check.php