Next Gen Off-line Capable Web Apps with HTML & Java Script-Dion Almaer & Ben Galbrai

Source: Internet
Author: User

I designed the architecture of a new product for the company. I originally wanted to use smart client. However, I recently came into contact with many BI products and found that many of the rich client functions can be implemented on browser, so jeet is still using B/S or smart client. Today, I saw this article on therserverside for your reference. You are also welcome to give your comments.

Ben and Dion teamed up to show us what's new and cool on the client side, dispelling the myth that compelling rich user interfaces cannot be delivered with current browser technology. rich Client technologies include HTML, Java Script, Applets, Flash, and SVG. this set of technologies is now being referred to as Ajax; a framework for building rich UIs. these technologies have been around for a long time. now there are improvements and new features that make rich clients worth another look. most notably: DOM and XMLHttpRequests.

Ajax relies upon the XMLHttpRequest object, which was first introduced in Internet Explorer. opera, Safari and Mozilla have all now implemented a version of XMLHttpRequest that is accessible to JavaScript. A standard is also in the works from the W3C. although there are some differences in the implementation of XmlHttpRequest (the IE version is an ActiveX control), the Ajax framework does acts away the differences and provides a uniied API.

Java Script/DHTML have been plagued by browser incompatibility and poor debugging tools. in the past, the most common method of writing Java Script was to write two versions of the same code; one version for IE and one version for Netscape. this code is generally intermixed with frequent browser type checks. java Script tends to be painful and most Java developers prefer to avoid it. several members of the audience expressed great contempt for Java Script.

With the latest browsers, improvements have been made to write browser compatible Java Script. this is done using the Document Object Model (DOM) API. A lot of developers, including Ben are not happy with the dom api. it is clunky and non-intuitive, but everyone who works with XML knows it well; so it is a good fit for Java Script. in the tool space, IE needs a better solution than the current script debugger. the script debugger in Mozilla is much better, but better tools are needed.

XMLHttpRequests allow Java Script to make remote CILS and dynamically update page data without having to do a full page refresh. the key benefit of asynchronous requests is the ability to process a user request or update the page without requiring a full rebuild of the page. this helps reduce the load at the server as the need to repeat potentially expensive operations such as loading data from Database can be avoided. for example, a user cocould enter their zip code and an XMLHttpRequest can be used to retrieve and populate city and state fields. according to Matt Raible's blog, XMLHttpRequests have been around for a few years and most folks just didn't know about it. i'm in that "didn't know about it" group. so who uses this? Google Maps, Google Suggest, and Ta-Da List.

The presentation concluded with a look at a modified version of the RSS reader demon that cached the feeds locally to allow them to be read offline. dion explained that this cocould be taken a stage further if signed scripts were used to enable data to be read and written tothe client's local drive. this app will be available on their new site: http://www.ajaxian.com

.

.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.