Components ... a web interface modeling framework

D

David Mark

Hi there

Components is a new hight-level JavaScript framework -

http://code.google.com/p/components-js/

It's about object-modeling your interface around markup structure.
Check it out, I hope you find it useful

Strange. I don't recall a "bind" method on the document object.
Perhaps your library added an expando? It would have been a good idea
to read the newsgroup and its FAQ before creating a JavaScript-based
framework.
 
A

adambones

Strange.  I don't recall a "bind" method on the document object.
Perhaps your library added an expando?  It would have been a good idea
to read the newsgroup and its FAQ before creating a JavaScript-based
framework.

Hi there David

I should read the FAQ before writing a framework? Mmmmm...

Yeah there is an extension to the document that binds a JS class
wrapper to an HTML class/id. I personally don't understand the problem
with this - how is it different to defining a 'top-level' function
which will be assigned to the window?

Adam
 
T

Thomas 'PointedEars' Lahn

adambones said:
Yeah there is an extension to the document that binds a JS class wrapper

There is no such thing as the programming languages in question do not
support classes.
to an HTML class/id.

There is no such thing as a `HTML class' either. While `class' is a HTML 4+
attribute, its value refers to CSS classes.
I personally don't understand the problem with this - how is it different
to defining a 'top-level' function which will be assigned to the window?

A top-level function is a method of the Global Object, and it would not be
assigned to it but the Global Object would be automagically augmented with
it upon variable instantiation of the global execution context. The Global
Object MAY have a `window' property that refers to the Global Object itself,
there is no requirement for it at all.

`document' refers to a host object which does not need to allow for
augmentation, as specified. `window' may refer to such an object as well.
We have discussed this ad nauseam here before, hence the good recommendation
to read the FAQ.


HTH

PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,141
Messages
2,570,814
Members
47,360
Latest member
kathdev

Latest Threads

Top