Re: accessing a script's tag (and attributes)
- From: rein.petersen@xxxxxxxxx
- Date: 3 Feb 2006 15:11:02 -0800
The idea is to simplify AJAX by component-izing functionality. The
custom properties on the script tag would make it easier for HTML
designers to include functionality on the page. Events and methods
would still be handled in javascript.
Of course, you could make the entire page from javascript but I don't
think the designers would like that very much.
HTML Components (HTCs) is a W3C suggestion from MS that is similar (you
can wrap them in wrappers for Mozilla XBL -
http://dean.edwards.name/moz-behaviors/) but the net result is that it
is still too complicated for many people. Even if it's not too
complicated for you, it seems like too much work to find a few
time-savers. Also, I prefer pure javascript.
In HTCs favour, they posess the 'element' property inside an HTC that
allows you access to the containing HTC tag (along with many other cool
features). Dave Edwards (the fellow who created the moz-behaviours XBL
wrappers for HTC) was also able to represent the 'element' property
along with support for most of the other features.
Rein
.
- Follow-Ups:
- References:
- Re: accessing a script's tag (and attributes)
- From: Martin Honnen
- Re: accessing a script's tag (and attributes)
- From: rein . petersen
- Re: accessing a script's tag (and attributes)
- From: RobG
- Re: accessing a script's tag (and attributes)
- Prev by Date: Re: Array in javascript
- Next by Date: Re: accessing a script's tag (and attributes)
- Previous by thread: Re: accessing a script's tag (and attributes)
- Next by thread: Re: accessing a script's tag (and attributes)
- Index(es):
Relevant Pages
|