13.07.2015 Views

Thesis full text PDF - Politecnico di Milano

Thesis full text PDF - Politecnico di Milano

Thesis full text PDF - Politecnico di Milano

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

frameworks. They allow you to map JavaScript methods to back end services, treating the clientsideJavaScript as though it could <strong>di</strong>rectly access your server-side objects.iframesPrior to the broad adoption of the XMLHttpRequest object, many web applications were using ahidden iframe to accomplish in-page round trips back to the server. An iframe is just like anormal HTML frame (a container that can be targeted at a URL and render the results) exceptthat it is embedded in another page. These applications simply created an iframe of 0px by 0px,then caused it to refresh against a given URL in order to pull more data back from the server.While the technique is valid, and worked for many, there were two main problems. The first is, ifyou wanted multiple asynchronous requests, you had to have multiple iframes. More important isthe question of co<strong>di</strong>ng intentionally, while XMLHttpRequest, is an object specifically designed forinitiating, monitoring, and harvesting the results of in-page postbacks, iframe always feels a littlelike cheating.UI ToolkitAbove, or potentially alongside, remoting toolkits we find JavaScript UI libraries. These give usthe ability to use rich UI components and effects out of the box, but <strong>di</strong>fferent in many ways.Richer UI ComponentsToolkits such as Dojo give us rich widgets like trees, tabbed panes or menus. These are selfcontained,instantiable UI components that can be used to compose a rich, though still very“web-ish” application. The result is still unmistakably an HTML UI.Web Application ToolkitToolkits such as SmartClient aim to give you widgets that build a UI that looks and feels thesame as a native application on Windows or Mac OSX. These are useful if you are buil<strong>di</strong>ng anapplication that happens to be on the web, versus a website that uses a couple of UI effects andcomponents. SmartClient, for example, features widgets that make the page look and feelexactly like a Windows NT application.Markup BasedBackbase allows you to add rich components through a markup programming API. Such a systemcould potentially enable a new generation of visual development tools. Part of the problem withsuch tools is the conflict between markup and code. Tra<strong>di</strong>tional JavaScript based pages havecaused problems for such tools because it is <strong>di</strong>fficult to provide visual representations of coderesources. An all-markup framework, on the other hand, would provide the right abstractions forthese kinds of development environments. See, for example, the markup-based components inASP.NET, Tapestry and Java Server Faces.Simple JavaScript Driven Effects19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!