Luxist has exclusive photos of the Sikorsky VIP Helicopter — you need one to go with your jet, right?


Prototyping DOM Objects in IE

I’ve never run into this particular limitation before, but apparently Internet Explorer does not treat DOM objects the same as native JavaScript objects. This means, among other things, that you can’t use prototyping—adding a property or method to an object’s definition and affecting all of the existing objects of that class.

I learned that from this article by Paul Sowden: Emulating Prototyping of DOM Objects in Internet Explorer. As you may have guessed from the title, the author has found a solution to this issue—using IE’s proprietary behaviors feature to emulate prototyping. The example also solves some of the problems with browser differences in getting and setting DOM attributes.

[via Simon]


Permalink | Email this | Comments [4]

Recent Entries

 » Very Dynamic Web Interfaces (2/11/2005)
 » Friday Fun: A taste for the Web (2/11/2005)
 » More on Google Maps (2/10/2005)
 » SXSW Registration Deadline this Friday (2/10/2005)
 » Crunchy Scripts Followup (2/9/2005)

(Add your comments)

Reader Comments

1. Posted Jan 12, 2005, 2:30 AM ET by splintor

I also recently found that although my documentation says that the options property of a object is an array, IE doesn't except calling push() on it to add options. Didn't check it on Firefox, though.

2. Posted Jan 12, 2005, 2:37 AM ET by splintor

I means the options property of a SELECT object.

3. Posted Jan 25, 2005, 5:46 PM ET by Andrea

Catching up with my blogroll, I just opened your link to Sowden's article in the background, only to find myself, when I later skimmed through the tabs I hadn't read yet, on Microsoft's homepage.

Between your broken link and Firefox's googling me to his best guess you landed me straight "dans la gorge du loup".

Try it yourself...

4. Posted Jan 25, 2005, 6:08 PM ET by Michael Moncur

Thanks for letting me know. The link is fixed now.

Add your comments

Please keep your comments relevant to this blog entry: inappropriate or purely promotional comments may be removed. Email addresses are never displayed, but they are required to confirm your comments. To create a live link, simply type the URL (including http://) or email address and we will make it a live link for you. You can put up to 3 URLs in your comments. Line breaks and paragraphs are automatically converted — no need to use <p> or <br> tags.

Do you want us to remember your personal information for next time?




Get your own text link here.


(past 60 days)


Blogging Baby
hack a day
TUAW (Apple)
Apple (Unofficial)
Digital Photography
Flash Insider
Google (Unofficial)
Microsoft (Unofficial)
Open Source
Photoshop (Unofficial)
SAS (Unofficial)
Search Engine Marketing
Social Software
Tablet PCs
Yahoo (Unofficial)
Engadget: Cellphones
Engadget: GPS
Ultra Wideband
The WiMAX Weblog
Engadget: Wireless
Wireless Dev
Video Games
Blogging E3
Engadget: Gaming
Playstation 3
Video Games
Xbox 2
Media & Entertainment
Digital Music
Documentary Film
Droxy (Digital Radio)
Independent Film
Magazine Design
The Mortgages Weblog
SCM Wire (supply chain)
Life Sciences
The Cancer Blog
The Diabetes Blog
Medical Informatics
Brian Alvey
Jason Calacanis
Blog Maverick
Gordon Gould
Judith Meskill
Blogging E3
Blogging ETech
Future of Music
Blogging Milken
Blogging Sundance
Blogging Web 2.0
Weblogs, Inc.

The JavaScripte Blog is part of the Weblogs, Inc. Network — a network of more than 70 blogs.
Here are some recent headlines from our other blogs:

India to get F1 race in three years
XM cheaper chip makes everything compatible
Audi Q7 gets official launch site
Forgotten X-Type Sportwagon
More info on the Opel Zafira

Luxist (fine living)
London Taxis
Hot Water
Estate of the Week: Woodlands Lodge
Blue Star Jet Cards
Luxist Field Trip: Turquoise Set at David Webb

hack a day
hackaday links
hacking the roku soundbridge
hackaday links
basic stamp controlled kegerator
hackaday links
Joystiq (video games)
Ion Storm: A recollection
Gamespot has the rumors
Ballmer loves the next Xbox
PacMan Must Die! lets you stand behind your opponent
Use your GBA to tune your car
Blogging Baby
Blogging a Pregnancy, 27 weeks, 6 days: the wonder
Online baby registries may restrict access to keep stalkers away
Valentine’s Day books for kids
Fox signs ‘Who’s Your Mama’ film deal
UK group to study rare pregnancy disorders
Gadling (travel)
Row, Row, Row Your Boat
LAX an Adventure - Or No?
Travel Writers Lament
Give a Little: The Alex Lowe Foundation
Red Swoosh trying to hire BT developers
More on LokiTorrent
Easy Bit Torrent Creation
LokiTorrent Crumbles
Morpheus adds BitTorrent support
Bluetooth Goes Luxury
Say Goodbye to Dorm Landlines
McAfee Launches Wi-Fi Security Scanner
Hasbro’s New Device Targets the “Tween” Market
FCC Task Force Calls for Less Regulation in Wireless Broadband Market
Indie Film
NY Times Special Oscar Coverage
“A big, bloody valentine from one fiercely independent artist to another” - SIN CITY Preview in EW
AMPAS Hosts Foreign Language Film Directors Symposium
AVIATOR Beats Brits At Their Own Game
Jenny Gets Wild With ‘Dirty’
Flash Insider
AS2 Primer
Rollin Back
Masked flash
Flash Needs
Portrait Contest
TUAW (Apple)
Freeware February: WinSwitch
Five new Apple retail stores on the way
MacCentral Reviews 17 inch Powerbook not Truste-worthy?
RealNetworks snags impressive three of the top 10 business blunders of 2004

Is the Sony Ericsson S710a going to be crazy expensive?
HP + Gateway?
QinetiQ announces smallest GPS tracking unit
First DIY Nintendo DS game
W22H comes in red, makes awesome noise

If you want to advertise on the largest blog network in the world,
email Shawn Gold or call him at 310-828-8284.