Wrox Programmer Forums
|
BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0
This is the forum to discuss the Wrox book Professional JavaScript for Web Developers by Nicholas C. Zakas; ISBN: 9780764579080
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 12th, 2005, 03:56 PM
Registered User
 
Join Date: Oct 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Create custom DOM functions for IE ?

How can I create new methods for IE DOM objects? Since they don't extend from Objects like they do with Geko based browsers I'm unable to use prototype. The objects I'm talking about are instantiated from
new ActiveXObject("MSXML2.DOMDocument.x.0") (replace x with version)
As I said, I've prototyped them for mozilla and they work fine, just can't do the same for IE.

Any ideas?
-Paul

P.S. I've tried behaviors with htc files to no avail.

 
Old October 12th, 2005, 05:46 PM
nzakas's Avatar
Wrox Author
 
Join Date: Dec 2004
Posts: 217
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Sorry, what you're asking is not possible. Since the XML DOM is an ActiveX control in IE, you are expressing forbidden from extending it or adding new methods. This is a security feature to prevent malicious coding of ActiveX controls by people who didn't write them.

Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)
http://www.nczonline.net/
 
Old October 13th, 2005, 09:45 AM
Registered User
 
Join Date: Oct 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ah, well that would explain that:)
Thanks for your super quick reply, good luck on your upcomming book, after reading your last one, js for web dev, i'm certainly looking forward to this next one.

Keep up the good work!
-Paul






Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Custom ScrollBar dartcoach VB How-To 8 November 13th, 2006 09:30 PM
Custom Classes and Functions harpua Flash (all versions) 0 February 3rd, 2006 02:43 AM
How to create and configure a custom handler pbhupal VS.NET 2002/2003 0 March 16th, 2005 08:18 PM
create functions to VisualB from SAP deedee VB How-To 0 December 5th, 2003 02:00 PM
create functions to VisualB from SAP deedee VB.NET 2002/2003 Basics 0 December 5th, 2003 01:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.