Widget Window's Modes: what about different "content" tags

Hello.

I'll briefly introduce myself.
I'm Ivan De Marino; Software Engineer for France Telecom R&D.
My current focus is on Widget Runtime developments.

I would like to raise a point about "Window's Modes".
Currently this specs are going in the direction of using the "@media" parameter to define refer to different CSSes and, based on that, make the Widget "able to adapt" to different sizes and contexts.
I can see that this is very close to the current way of making websites' layout flexible through multiple CSS (screen, print, mobile and so on...).

This has 2 costs from my point of view; costs that are "important" on the mobile:
1) Page size and Load time: even if our device are become more and more powerful, using a smaller web page with very focused code is better. Having code that adapts based on the CSS makes the HTML document itself way bigger.
2) Javascript resizing: In the specs and some emails there are descriptions of "Javascript events" that should help the widget to "understand the current environment and adapt". Apart from the need of implementing new APIs and Events in Javascript, that leaves everything up to the Browse Developers, here is a matter of performance. Javascript is undoubtly an "heavy" language, and misusage of it, from the side of the final Widget's Developer, could lead to a general CPU-bound Widget.

What about a solution based on "multiple content tags" into the config.xml file?
Adding something like:
- "mode" attribute
- "default" attribute (to choose which one should be opened in case it's uncertain/undefined
- "size parameters" (those needs to be defined better)

I could go more in details with my idea and concerns, but I prefer to hear from you before I go ahead.

Regards

 <<Picture (Metafile)>> 
Ivan De Marino
Orange Labs
Mobile and Web Software Engineer, R&D UK
tel. +44 20 8849 5806
mob. +44 7515 955 861
mob. +44 7974 156 216
ivan.demarino@orange-ftgroup.com <mailto:firstname.lastname@orange-ftgroup.com> 
 <<Picture (Metafile)>> 

This e-mail, and any files transmitted with it, is intended only for the use of the person/s or entity to whom it is addressed. If you are not the intended recipient (or authorised to receive information for the intended recipient) you must not use, disclose, copy, print or rely on this e-mail. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail and delete all copies of this e-mail.  Thank you.

France Telecom R&D UK Ltd is a company registered in England and Wales with company number 4193379. Our registered office is Minerva House, Montague Close, London, SE1 9BB.

Received on Monday, 26 January 2009 13:12:22 UTC