Connecting Tech Pros Worldwide Help | Site Map

DOM Wrapper

danjourno
Guest
 
Posts: n/a
#1: Dec 12 '07
Hello all,

I have been trying to search for a Basic DOM wrapper for simple DOM
functions. I am wondering if someone can recommend any of the
exisiting Javascript Frameworks that possibly provide something like
this. I don't want something too high level, just something that gives
me very basic access to the DOM but has cross browser compatibility,
if there is such a thing.

Regards
Daniel
David Dorward
Guest
 
Posts: n/a
#2: Dec 12 '07

re: DOM Wrapper


On Dec 12, 3:33 am, danjourno <danieljarret...@gmail.comwrote:
Quote:
I have been trying to search for a Basic DOM wrapper for simple DOM
functions. I am wondering if someone can recommend any of the
exisiting Javascript Frameworks that possibly provide something like
this. I don't want something too high level, just something that gives
me very basic access to the DOM but has cross browser compatibility,
if there is such a thing.
So long as you avoid having any elements having an id that matches the
name of a different element, and use direct property access rather
than setAttribute, then basic DOM is implemented pretty consistently
across browsers.

As libraries go, I generally use YUI (which does normalise things
across browsers quite nicely). http://developer.yahoo.com/yui/
none
Guest
 
Posts: n/a
#3: Dec 13 '07

re: DOM Wrapper


Hi, Dean Edward's Base2 is probably what you are after.
See here http://dean.edwards.name/weblog/2007/08/names/
and http://code.google.com/p/base2/

It is just as you want, not a 2MB fully-fledged 'all bells and whistles'
'all singing and dancing' js library', but just a tiny library to patch
up browser differences when using the DOM, especially broken DOM events.

*However*, it is still in Alpha and progress is *very* slow, and as such
can only be obtained from Dean's website. http://dean.edwards.name/weblog/
David Mark
Guest
 
Posts: n/a
#4: Dec 13 '07

re: DOM Wrapper


On Dec 13, 3:48 am, none <""ds\"@(none)"wrote:
Quote:
Hi, Dean Edward's Base2 is probably what you are after.
See herehttp://dean.edwards.name/weblog/2007/08/names/
andhttp://code.google.com/p/base2/
>
It is just as you want, not a 2MB fully-fledged 'all bells and whistles'
'all singing and dancing' js library', but just a tiny library to patch
up browser differences when using the DOM, especially broken DOM events.
I looked at that a few months ago. It does a lot of browser sniffing
and also augments host objects.

For simple DOM wrappers, there has been a lot of progress made in the
last few days in the group's "Code Worth Recommending" project.
Events are on ths short list of topics to address.
none
Guest
 
Posts: n/a
#5: Dec 13 '07

re: DOM Wrapper


David Mark wrote:
Quote:
On Dec 13, 3:48 am, none <""ds\"@(none)"wrote:
I looked at that a few months ago. It does a lot of browser sniffing
and also augments host objects.
Oh ok. I never looked at it apart from the examples promulgated by Dean.
Quote:
>
For simple DOM wrappers, there has been a lot of progress made in the
last few days in the group's "Code Worth Recommending" project.
Events are on ths short list of topics to address.
It seems to me DOM events, including XMLHttpRequest objects are most in
need of being wrapped.
I dont have much need though, since I dont care about supporting every
browser known to mankind, and couldnt care less for anything older than IE6.

BTW, what do you think of this? http://www.robertnyman.com/domassistant/
Closed Thread