/    Sign up×
Community /Pin to ProfileBookmark

Loading XML thru JS problem in ie6

Hi, I usually always write procedural JS, I guess because I’m a n00b. Recently I was asked to do some RSS stuff and i needed to parse some XML so i looked in me O’Reilly book and copied the functions they had their for creating new XML documents and loading them.

the functions can be viewed here which are the scripts for the site im having trouble with:
[url]http://sandygonzales.com/fujitsu/js/scripts.js[/url]
dont laugh at my crappy code

So everything works fine and dandy in Mozilla but in ie6 it says ‘XML’ is not defined. So i started reading about classes and tried creating a class called ‘XML’ and then using a variable called ‘XML’ or some other text to say new XML(), but none of that worked. I also tried to just change the classes methods to regular functions but then ie says “0 is null or not an object” but it worked in Mozilla. Anyway my question is why can’t IE6 (dont know about 7) handle my script yet Mozilla can.. and maybe some hints in the right direction? franks..


—————

sandy

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @apathy spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...