Home > Microsoft .Net Development News > Silverlight, Ajax and the Rich Internet Application
Microsoft .Net Development News:
EMAIL THIS

Silverlight, Ajax and the Rich Internet Application

By George Lawton, Contributor
01 Aug 2007 | SearchVB.com

.NET News Channel
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google

SAN FRANCISCO -- In recent months Silverlight has emerged as a possible challenger both to Flash and to Ajax in the realm of Rich Internet Application development.

At The Ajax Experience in San Francisco last week, Matt Gibbs, a development manager at Microsoft, presented an overview of Silverlight, the company's framework for Rich Internet Application development, and offered a bit of a comparison between Silverlight and Ajax development.
To be able to successfully compete, we need to target Firefox [and] the Mac, and we have made good inroads into Opera.
Matt Gibbs
program manager, Microsoft

Silverlight's selling point is that it is strives to be both platform- and browser-agnostic -- and that is something with which Ajax struggles.

"We have a renewed focus that is not all about Internet Explorer," Gibbs said. "To be able to successfully compete, we need to target Firefox [and] the Mac, and we have made good inroads into Opera."

It was also important for Microsoft to focus on creating a system that could operate in a sandbox in order to provide a high level of security, Gibbs said.

"We are going to find a set of standard capabilities and make them available without prompting the user," he continued, adding that there will be no "backdoor" that users can opt into to make an application do more than it is intended to do.

However, the Silverlight sandbox does, like an Ajax-enabled Web application, allow for some isolated storage on the client. This allows the applications to store some data on the client without going back to the server.

Silverlight and Ajax: Four differences

Throughout his talk Gibbs pointed out four distinct differences between Silverlight and Ajax development. (Additional insight on the Silverlight-Ajax relationship can be found in two blog posts by Microsoft program manager Dare Obasanjo -- What comes after Ajax? and Silverlight: AJAX is now an endangered species.)

  • First, the primary language for developing Silverlight applications now is C#, Gibbs said. The one challenge is that some of its dynamic characteristics are lost with JavaScript, but programmers gain some nice advantages in terms of being able to pre-compile code.

    For Silverlight 1.1 -- the version, currently in alpha, which includes a trimmed-down version of the .NET Framework -- programmers will be able to use dynamic languages like JavaScript, IronRuby, IronPython and Visual Basic. (A dynamic version of Visual Basic, called VBx, is in the works.)

  • Second, both Silverlight versions also make use of XAML, the Extensible Application Markup Language, which offers markup capabilities that target user interface creation and programmable object creation. Silverlight takes advantage of this through Canvas, an object type that represents the presentation layer and, thus, allows developers, artists and others to set up properties on a text block.

    Canvas allows for a number of rich graphics effects like rotate, scale, skew, translate and matrix transforms. "You can still code it by hand, but I would not," Gibbs said.
    More on Rich Internet Application development
    Silverlight Learning Guide

    Silverlight tutorial: .NET, rich media come together

    Checklist: What developers need to know about Silverlight

    ASP.NET AJAX Learning Guide

    From MSDN: Silverlight architecture overview

  • Third, unlike Ajax but like Flash, Silverlight requires a browser plug-in. One of Microsoft's biggest challenges has been minimizing the download required to execute the Silverlight framework. The company currently has the Silverlight framework trimmed down to about 4 MB and aims to hold the line there while adding more features. Even at this size, Gibbs fears they are pushing a barrier that will be resisted by many developers: "We are working hard to make sure the install is fast and easy. We need to make sure we don't have some of the bloat as with the [client version of the] .NET Framework."

    Microsoft is also working on a model where additional features, like Python support, can be added as a 300 KB download instead of a standard feature that is forced upon all Silverlight apps, Gibbs added.

  • Fourth, Silverlight offers cross-domain support for applications. This is different from the kinds of restrictions placed on most Ajax applications, which limit requests from applications to a single domain. Gibbs said Microsoft has set it up so developers can call services from any originating domain, not just the one from which you downloaded the system.

    Silverlight and Ajax: Three similarities

    That said, there are a few ways in which Silverlight and Ajax behave similarly.

  • First, Silverlight does not support synchronous calls, although a number of developers have asked for that, Gibbs said. Furthermore, he added, Microsoft does not plan to support synchronous calls, as they could hang the browser.

  • Second, it is possible for developers to take an existing Web application and enrich it with pieces of Silverlight, instead of rewriting everything in Silverlight.

  • Third, like Ajax, Silverlight poses some forward/backward integration problems, Gibbs noted. Microsoft is working to solve the problem that occurs when, for example, someone hits the Back button on the browser, only to discover an empty shopping cart.

    Finally, since only five programmers, out of an audience of about 50, indicated that they were using Visual Studio, Gibbs that the Visual Studio Expression Edition is free, both for VS 2005 and VS 2008.

    Tags: Silverlight and Expression application developmentASP.NET and Ajax developmentVIEW ALL TAGS

    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


    RELATED CONTENT
    Silverlight and Expression application development
    How to write an out-of-browser Silverlight 3 application in 3 steps
    Silverlight 3 beta SDK download lets developers try new RIA features
    Silverlight plug-in for Eclipse highlights Microsoft's work on interop
    Microsoft announces Silverlight 3, Expression Blend 3 at MIX09
    Moonlight 1.0 release brings Silverlight to Linux
    Silverlight, Ajax components require different approach to UI
    Microsoft PDC gives a taste of Windows 7, Visual Studio 2010
    Silverlight 2 brings .NET, debugging to Flash competitor
    Silverlight at Beijing Olympics
    Fast guide: Silverlight blogs

    ASP.NET and Ajax development
    How to use jQuery to solve Javascript browser compatibility problems
    Silverlight, Ajax components require different approach to UI
    Visual Studio's IntelliSense for jQuery doesn't autocomplete correctly
    Internet Explorer 8 beta's development tools add source visualizations
    Microsoft PDC gives a taste of Windows 7, Visual Studio 2010
    Widgetbox provides good example of how to use Facebook Developer Toolkit
    VBScript Tutorial
    Ajax Learning Guide
    Mainsoft introduces .NET-to-Java translation tool
    Ajax.NET Professional retired

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    Expression  (SearchWinDevelopment.com)
    Expression Graphic Designer  (SearchWinDevelopment.com)
    Expression Interactive Designer  (SearchWinDevelopment.com)
    Expression Web Designer  (SearchWinDevelopment.com)
    Moonlight  (SearchWinDevelopment.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary



  • Development Solutions - Silverlight, WinForms, ASP.NET
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts