Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > BULLETPROOF cross-browser dhtml functions? What's the best source?

Thread Tools

BULLETPROOF cross-browser dhtml functions? What's the best source?

Matt Kruse
Posts: n/a
There are a lot of dhtml libs out there, and a lot of people doing the
same work over and over and over to support all the possible browsers
for simple things like finding an object's position and moving it to a
new position.

Is there a single source that is the best place to get cross-browser
functions for performing the most low-level dhtml actions?

For example,
1) Get an object's x,y position relative to the page given its ID
2) Get an object's x,y position relative to the window given its ID
3) Move an object to position x,y relative to page or window, given
its ID
4) Detect a mouse click's x,y position relative to page or window
5) Detect a mouse move's x,y position relative to page or window

These are, I think, the core of a lot of DHTML functionality. And
there are numerous browser quirks which require branching and logic to
get accurate x,y coordinates of events and objects. Supporting IE 4+,
Netscape 4+, Mozilla, Opera, Safari, etc can be complex.

Also, many libraries which do these things very well have their code
obfuscated or overly complicated by 50 other functions to add
For example, is an
excellent lib that has a lot of functionality, but the low-level DHTML
logic is hidden by a lot of other code.

So, what's the best source for cross-browser,
functions to perform low-level functions?

I try to do this myself for libs like but testing all these
browsers and fixing their bugs is a maintenance nightmare...


Matt Kruse
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do any DHTML books cover contemporary DHTML? Steve Javascript 1 04-09-2005 04:16 PM
Bulletproof FTP server and banning IP's? Felix Computer Support 4 10-10-2004 01:47 PM
Bulletproof FTP server + multiple directories JD Computer Support 5 06-27-2004 07:36 AM
Bulletproof FTP Server: Speed question CrackHeadBob Computer Support 2 02-11-2004 09:32 PM
BulletProof FTP Server Help Needed Yucko the Clown Computer Support 5 02-05-2004 07:04 AM