Client-Side MVC using XMLHttpObject
Approaches to Bu ld ng H gh Performance Web Appl cat ons
Copyright ?© 2007, Idea Group Inc. Copying or distributing in print or electronic forms without written permission
of Idea Group Inc. is prohibited.
XML, plain text, or JavaScript. The response text is then processed by the logic in JavaScript
methods. Using DHTML, the content is displayed on the Web page.
Another use of this design pattern is depicted in Figure 15. As the user enters the employee??™s
name for the search, the type-ahead engine makes a service call to retrieve matches from
BluePages user dictionary. The list of potential names is displayed in the pull-down list based
on the retrieved matches. As the user types more characters, the search is refined. In this
scenario, it is important that the list retrieval is faster than the end user??™s typing speed.
Network Bandwidth Savings
Client-side MVC has another important advantage: network bandwidth savings. Since client-
side MVC makes use of static templates to render the user interface, the look and feel
for an application can be cached in the client browser. The data that gets transferred to the
client browser becomes much smaller.
While client-side MVC introduces some additional design complexity for Web applications,
it can be worthwhile to achieve richer interfaces and more responsive Web experiences.
Pages:
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335