473,586 Members | 2,776 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 2108
On Dec 12, 3:33 am, danjourno <danieljarret.. .@gmail.comwrot e:
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.na me/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
4064
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 the built in operators: class Foo(object): class __metaclass__(type): def __getattribute__(self, name): print "Klass", name
9
2411
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 example unmanagedObject). How can i convert this to the managed abstract basetype? Hope somebody can help me Thanx
22
2494
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. This is very similar to the BLAST wrapper. For example, Cameleon can answer queries like this by accessing Yahoo's IBM finance webpage Select...
9
3451
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 of this behavior is to prevent Xinclude instructions to point to "out of application directory" files when processed by the XSLT processor, among...
16
3424
by: utab | last post by:
Dear all, In programming terminology, what is a wrapper and where is it used? Regards
0
7911
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7839
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7954
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8215
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5390
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3836
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3864
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.