--- Philip Tellis <[EMAIL PROTECTED]> wrote:

> don't port it - you'll be porting for the rest of your life with every 
> new browser that comes out.  follow a layered development approach 
> (LSM).  Read up on progressive enhancement and behavioural separation.
> 

Indeed. There are several well documented means of separating presentation from
content and behaviour.

At work, we use the Behaviour Javascript library regularly, along with
Prototype, Scriptaculous, Dojo, GWT, Yahoo UI Library, etc.

Using Behaviour lets us author code such that the generated/static HTML
contains HTML markup + data + classes + IDs. Our CSS is stored in a separate
file, and the Javascript is bound to the HTML elements via Behaviour's
bindings. The HTML content doesn't even have any "onclick" or "onload".

See http://bennolan.com/behaviour/ (Ignore the mandatory AJAX mentions if your
app's not AJAX).

-- Sriram

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to