Archive

Posts Tagged ‘ria’

hi5 to html5

May 3, 2010 5 comments

Last few days I have been digging around to understand what is so great about HTML5…soon I realized, that this is what I always wanted, when ever I did HTML coding…HTML5 seems to be logically the right step towards RIA.

Why should I install plugins such as Silverlight, Java FX etc?? why can’t the browsers have it in-built?? why can’t the HTML move beyond SUBMIT button, INPUT elements etc??…HTML5 is my dream come true…and I was really happy to read in the news that Microsoft, Mac and everybody else seems to embrace this standard…Does that mean we are going to get rid of JavaScript based Dojo or Silverlight or Flex or JavaFX??? I don’t think so, I think we still need them for a VRIA (very rich internet application…don’t search the web for VRIA…its a word, I coined, and I use it for myself ;-) to refer to highly interactive and rich internet application.)..HTML5 should take care of my basic RIA applications.

So here are a few things I learnt about HTML5, that I would like to share with you all.

Semantics – HTML5 has simplified the semantics. the elements are more meaningful, and readable..to give a few examples for header, for navigation (menus), – generic sections, – for content, – footer…and there are a few new elements, which we always wanted, – to insert audio content, – for video…The API is also enhanced to support these new elements..so writing JavaScript to handle the HTML5 elements just got better.
There is one more interesting element , which can be used to draw anything (using JavaScript). to draw menus, which supports both toolbar menu and context menu…no need to struggle with JavaScript to create menus anymore. ain’t that cool?
Then there is element which can be used to draw the data grids, tables..and then there are , and whole host of FORM elements such as datetime, range, email, color, number etc..please go check out the HTML5 semantics.

Native DnD support – Drag Drop was a big challenge to implement on web pages, I have used dojo and various other JavaScript based frameworks to get DnD working, and at any point, I can never promise that DnD will work for sure :-) its always tough to get these things working..and now its a big relief to see HTML5 comes with native DnD support..so how simple is DnD?? create a 2 divs, one the drag source and the other drag target. Now implement the JavaScript events ondragstart and ondragdrop..and see it working..ofcourse there are a few things we need to do to get the events working ..which I will cover in my next blogs with live examples

Web Sockets – Now we can use JavaScript to create websockets from the web page and communicate with the other servers…yes CROSS DOMAIN..how cool is that??..and these sockets support both normal(wss) and secured (wss)..now imagine how this can help in building HTML5 frontends with REST backends?? that too CROSS DOMAIN REST…or are we going back to the classic client server model.. :-) ..but more built on standards such as HTML, XML, browser runtime based??

Server side events – Oh what a relief?? no need to keep polling the server if the latest data has arrived anymore…just relax..the server will send a notification, when the data has arrived. I think this is a huge step in making AJAX easier.

Offline mode – HTML5 comes with native offline support, which is much needed as we are not just looking HTML for the PC based browsers..but also to be used on handhelds..where the offline mode is very much required. So HTML5 comes with the feature to store the data and work offline – Both Session Storage and Local Storage features.

So is that all?? no there are lot more..these are the top things which caught my eye…will get back with more deep dives and examples…until then..what do you guys think about HTML5…

Categories: Technology Tags: , , , ,

Falling in love with RIA

August 4, 2009 3 comments

RIA is not the name of my girl friend..even if it is I wouldn’t blog about her..as my wife is watching me this blog :-) Rich Internet Applications (RIA) is the new avatar of what we used to do sometime back using Applets and then later Java Web Start..RIA provides a rich user interface platform on web…Java FX, Flex, Silverlight are all on race to get their share in this world. We did try doing this using Flash long time back..where the whole web application was done as a Flash embedded into a web page…I wondered how is RIA different from what we have been trying to do? ..I googled, downloaded a few APIs..tried them…most of the material I could find were marketing and hyped..I did not really buy into RIA…I wondered how is it that I am not able to accept this technology…The mind block I had was..I always was trying to compare RIA with flash, applet, etc…that was the problem…it took sometime for me to realize that RIA has evolved over these technologies and RIA is just a name coined for such applications…and starting from this..RIA offers a lot more focused direction towards offering some of the features like prefetching of data, working offline (Google gears)..and all the advantages that Webstart gave us..like versioning, cross platform etc…On top of all this..security is one another focus area of RIA.

So I downloaded Netbeans and Java FX to get a feel of this (try this out http://www.javafx.com/)…The concept of Common profile is pretty intresting…this means build the UI and u should be able to view it in any device (desktop or mobile)..and the widgets..imagine..u find a widget..lets say a calendar..on your web page..and u would love to have it on your desktop..u just need to drag and drop that widget onto your desktop…isn’t that cool?..there are lot of such features..which are cool…I can go on..but I just got started..so will post more as I find more.

To get a feel of what I am talking about..go to http://www.javafx.com/learn/training.jsp

Now coming back to the questions that are running in my mind..on one side we are looking at stratedization by moving towards XML, Webservices, SOA etc…on the other hand we are creating new platforms for RIA :-) I know these platforms come free of cost as a plugin to my browser…but then I am not that comfortable having to install so many plugins on my browser…why can’t be there a common RIA standard or something…and a common runtime for RIA applications…while Adobe, Java & Microsoft can restrict the RIA at the IDE??..but I am falling in love with RIA…:-) and even my wife cannot stop it ;-)

11-Aug-2009
Check this out people


Follow

Get every new post delivered to your Inbox.