473,509 Members | 2,890 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DOM Wrapper

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
Dec 12 '07 #1
4 2101
On Dec 12, 3:33 am, danjourno <danieljarret...@gmail.comwrote:
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/
Dec 12 '07 #2
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/
Dec 13 '07 #3
On Dec 13, 3:48 am, none <""ds\"@(none)"wrote:
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.
Dec 13 '07 #4
David Mark wrote:
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.
>
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/
Dec 13 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
4051
by: Egil M?ller | last post by:
Is there any way to create transparent wrapper objects in Python? I thought implementing __getattribute__ on either the wrapper class or its metaclass would do the trick, but it does not work for...
9
2396
by: WithPit | last post by:
I am trying to create an Managed C++ Wrapper around an unmanaged library which contains C++ code. Some of the unmanaged methods returns an returntype which is of the abstract base type (for...
22
2480
by: linwu02 | last post by:
I am trying to write a Wrapper for our web wrapping engine, Cameleon. Currently Cameleon is able to answer certain SQL queries but with a restriction that all SQL queries must have a predicate....
9
3445
by: Julien Biezemans | last post by:
Hi! Here is the problem: I'd like to restrict local filesystem stream operations to one directory just like a root jail. fopen('/file.bin') would actually open /some/path/file.bin. One goal...
16
3409
by: utab | last post by:
Dear all, In programming terminology, what is a wrapper and where is it used? Regards
0
7234
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7136
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7344
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7069
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4730
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
441
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.