Archive for May, 2007

Web hosting contract - CHAPTER 3 CONTENT CHUNKING PATTERN 59 Defining

Thursday, May 3rd, 2007

CHAPTER 3 CONTENT CHUNKING PATTERN 59 Defining the Content Within a Content Chunk The content chunks referenced by the XMLHttpRequest object can be in any form that both the client and server can understand. Whatever the server sends must be understood by the client. In Figure 3-4, the content chunks would be in HTML because the chunks would be injected directly into the HTML page. HTML, though, is not the only format that can be sent to and from the server. The following formats are covered in this chapter: HTML: The server can send HTML to the client directly. The received HTML would not be processed, but injected directly into the HTML page. This is a blind processing approach in that the client has no idea what the HTML does, and knows only that it should be injected into a certain area of the HTML document. Injecting HTML directly is a very simple and foolproof way of building content. The client has to do no processing and needs to know only the destination area of the HTML content. If processing is necessary, the received content (if it is XML compliant) would also be available as an instantiated object model. Using the instantiated object model, it is possible to manually manipulate the received HTML content. It is advised that the HTML content sent to the client be XHTML compliant (HTML that implements a particular XML schema) or at least XML compliant. Images: It is not possible to directly send images because images are binary, and the XMLHttpRequest object cannot process binary data. Typically, image references are sent as HTML tags that are injected into the HTML document, resulting in the remote image to be loaded. It is possible to download and reference binary data if the data has been encoded and decoded by using Base64 encoding. However, manipulating binary data directly is not recommended because that will create more problems than it solves. JavaScript: The server can send JavaScript to the client that can be executed by using the JavaScript eval statement, and the client can send persisted JavaScript objects to the server for further processing. A first impression may be that executing arbitrary JavaScript presents a security problem. It is not typically a problem because the JavaScript engines in all browsers use the same origin and sandbox policies. Sending arbitrary JavaScript to execute could be a security problem if there is a bug in the JavaScript engine. Sending JavaScript is desirable if you want to dynamically execute and add logic on the client that was not loaded when the initial HTML page was loaded. It is a very powerful method of enhancing the functionality of a client without the client having to be aware of that. For example, let s say an HTML form element needs validation. Because different users have different validations, it would not be desirable to send all validation implementations to the client. A solution would be to let the user decide which HTML form element they are presented with, and then dynamically download the validation of the form element as a content chunk. Be forewarned, though, that sending JavaScript chunks could open up your application to hackers. So think before using this technique.
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision best web hosting services

CHAPTER 3 CONTENT CHUNKING PATTERN Figure 3-4. (Web hosting packages)

Thursday, May 3rd, 2007

Web hosting contract - CHAPTER 3 CONTENT CHUNKING PATTERN Figure 3-3.

Wednesday, May 2nd, 2007

CHAPTER 3 CONTENT CHUNKING PATTERN Figure 3-2. (Php web hosting)

Wednesday, May 2nd, 2007

Web site design and hosting - CHAPTER 3 CONTENT CHUNKING PATTERN When

Wednesday, May 2nd, 2007

CHAPTER 3 CONTENT CHUNKING PATTERN Figure 3-1. (Net web server)

Wednesday, May 2nd, 2007

CHAPTER 3 Content Chunking Pattern

Tuesday, May 1st, 2007

Web design tools - CHAPTER 2 THE NUTS AND BOLTS OF

Tuesday, May 1st, 2007

Web hosting comparison - CHAPTER 2 THE NUTS AND BOLTS OF

Tuesday, May 1st, 2007

CHAPTER 2 THE NUTS AND BOLTS OF (Web hosting resellers)

Tuesday, May 1st, 2007