Wiki source code of ERDivaLook
Last modified by Ravi Mendis on 2010/09/10 01:14
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | == What is Div#a Look? == | ||
| 2 | |||
| 3 | Much like ExcelLook, that vends excel pages, Diva look generates a Web 2.0 interface for DirectToWeb. | ||
| 4 | More specifically, it generates pages that are: | ||
| 5 | |||
| 6 | * **Tablesless** or use [[Semantic markup>>url:http://en.wikipedia.org/wiki/Semantic_HTML||shape="rect"]] | ||
| 7 | * (x)HTML5 compliant | ||
| 8 | * Sans images, inline styles or presentation attributes | ||
| 9 | |||
| 10 | They make use of: | ||
| 11 | |||
| 12 | * CSS **themes** | ||
| 13 | * Scriptaculous **effects** | ||
| 14 | * Javascript **widgets** | ||
| 15 | * **Ajax** | ||
| 16 | |||
| 17 | == Why Table-less Markup? == | ||
| 18 | |||
| 19 | Scriptaculous, jQuery effects, etc work by manipulating CSS attributes. | ||
| 20 | Mostly they don't work very well on tables, if at all. | ||
| 21 | Furthermore, the more sophisticated widgets (like accordions) make use of effects and so don't function as they should without. | ||
| 22 | |||
| 23 | This is even more true for unobtrusive javascript for which table-less markup is usually a prerequisite. | ||
| 24 | Like jQuery, which takes this a step further, by applying functionality via CSS selectors. | ||
| 25 | (So for jQuery it is an absolute requirement). | ||
| 26 | |||
| 27 | Therefore, if you are developing a Web 2.0/Ajax UI, the transition to table-less markup is an imperative. | ||
| 28 | |||
| 29 | === What is a Diva Theme? === | ||
| 30 | |||
| 31 | In ERDivaLook, or Diva for short, your application is not complete without a CSS theme. | ||
| 32 | All images, layout, colors and font information are maintained in the CSS. | ||
| 33 | |||
| 34 | All your customizations to the look and layout of your application is also done in the CSS (and via D2W rules). | ||
| 35 | |||
| 36 | **Examples:** | ||
| 37 | |||
| 38 | |=((( | ||
| 39 | Neutral | ||
| 40 | )))|=((( | ||
| 41 | WebObjects | ||
| 42 | )))|=((( | ||
| 43 | Simple | ||
| 44 | )))|=((( | ||
| 45 | Organica Creativa | ||
| 46 | ))) | ||
| 47 | |((( | ||
| 48 | [[image:attach:Picture 1.jpg]] | ||
| 49 | )))|((( | ||
| 50 | [[image:attach:Picture 2.jpg]] | ||
| 51 | )))|((( | ||
| 52 | [[image:attach:Picture 3.jpg]] | ||
| 53 | )))|((( | ||
| 54 | [[image:attach:slides_directtoweb_04.jpg.jpeg]] | ||
| 55 | ))) | ||
| 56 | |((( | ||
| 57 | D2W Neutral look reverse engineered | ||
| 58 | as a Diva Theme | ||
| 59 | )))|((( | ||
| 60 | D2W WebObjects look reverse engineered | ||
| 61 | as a Diva Theme | ||
| 62 | )))|((( | ||
| 63 | [[//Simple//>>url:http://www.csszengarden.com/?cssfile=/174/174.css&page=2||shape="rect"]] theme from css Zen Garden | ||
| 64 | )))|((( | ||
| 65 | [[//Organica Creativa//>>url:http://www.csszengarden.com/?cssfile=/188/188.css&page=0||shape="rect"]] theme from css Zen Garden | ||
| 66 | ))) | ||
| 67 | |((( | ||
| 68 | //Included in ERDivaLookExample// | ||
| 69 | )))|((( | ||
| 70 | //Included in ERDivaLookExample// | ||
| 71 | )))|((( | ||
| 72 | Shawn Chin [[schin@shawnchin.net>>mailto:schin@shawnchin.net||shape="rect"]] | ||
| 73 | )))|((( | ||
| 74 | Eduardo Cesario [[design@criaturacreativa.com.ar>>mailto:design@criaturacreativa.com.ar||shape="rect"]] | ||
| 75 | ))) | ||
| 76 | |||
| 77 | The above are a sample of themes for Diva look. The first two are included in the {{code language="none"}}Wonder/Examples/Ajax/ERDivaLookExample{{/code}} app. | ||
| 78 | The graphics designer Eduardo Cesario wrote up his experience of developing his //Organica Creativa// design for an early prototype of ERDivaLook on his [[blog>>url:http://www.organicacreativa.com/directtoweb-mutation/||shape="rect"]]. | ||
| 79 | |||
| 80 | == HowTos == | ||
| 81 | |||
| 82 | {{children all="true"/}} | ||
| 83 | |||
| 84 | == Features == | ||
| 85 | |||
| 86 | === 1. CSS Themes === | ||
| 87 | |||
| 88 | CSS theme you give your application is **fully-customizable**. | ||
| 89 | However, Diva lacks CSS theming tools (such as jQuery ThemeRoller). | ||
| 90 | |||
| 91 | Instead, the CSS themes need to be hand-rolled. | ||
| 92 | |||
| 93 | === 2. Scriptaculous Effects === | ||
| 94 | |||
| 95 | The effects library used for ERDivaLook is Wonder's choice - Scriptaculous. | ||
| 96 | |||
| 97 | === 3. Javascript Widgets === | ||
| 98 | |||
| 99 | The [[widgets>>doc:documentation.Home.Frameworks.ERPrototaculous.WebHome]] are all in the Prototype+Scriptaculous family. | ||
| 100 | |||
| 101 | === 4. Well-Formed Semantic Markup === | ||
| 102 | |||
| 103 | The pages produced by Diva look will pretty much validate as (x)HTML5. Features of the DOM: | ||
| 104 | |||
| 105 | * Unique IDs for elements | ||
| 106 | * Unique form control names | ||
| 107 | * Use of multiple CSS classes | ||
| 108 | * Table-less markup (except for tabular data) | ||
| 109 | |||
| 110 | === 5. Ajax Page Configurations === | ||
| 111 | |||
| 112 | Prototype provides the Ajax functionality in Diva in the form of [[ERPrototaculous>>doc:documentation.Home.Frameworks.ERPrototaculous.WebHome]]. | ||
| 113 | Diva look introduces the concept of **Ajax pageConfigs**. | ||
| 114 | Example page configurations: | ||
| 115 | |||
| 116 | * {{code language="none"}}AjaxQueryMovie{{/code}} | ||
| 117 | * {{code language="none"}}AjaxEditStudio{{/code}} | ||
| 118 | * {{code language="none"}}AjaxListTalent{{/code}} | ||
| 119 | |||
| 120 | === 6. Dynamic D2W === | ||
| 121 | |||
| 122 | Ajax + //delayed// D2W rules = [[dynamic D2W>>doc:documentation.Home.Frameworks.ERDivaLook.How to use Dynamic D2W.WebHome]]. | ||
| 123 | |||
| 124 | == External Links == | ||
| 125 | |||
| 126 | WOWODC 10' - [[DirecToWeb 2.0>>url:http://www.wocommunity.org/wowodc10/slides/D2W2.pdf||shape="rect"]] |