Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 03-24-2005, 11:43 AM   #1 (permalink)
Contributing Member
 
DragonEye's Avatar
 
Join Date: 10-13-03
Location: Belgium
Posts: 322
iTrader: 0 / 0%
Latest Blog:
None

DragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebody
Send a message via MSN to DragonEye
JavaScript XML problem on Firefox

hi there,

I'm currently working on a JavaScript that should import the values of one tag in an XML file into an array. It works fine on Internet Explorer, but not on Firefox I think it is because of the getElementsByTagName() function

this is the part of the script that processes the XML file

Code:
function XMLimport() { if (document.implementation && document.implementation.createDocument) { xmlDoc = document.implementation.createDocument("", "", null); } else if (window.ActiveXObject) { var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async="false"; } else { alert('Your browser can\'t handle this script'); return; } xmlDoc.load("artisttable.xml"); names = xmlDoc.getElementsByTagName('artist_name'); for(i=0;i<names.length;i++) { suggestarray[suggestarray.length]=dbformtoregular(names.item(i).text); } alert(suggestarray.length); }
The alert at the end is just a check that I implemented while debugging on Internet explorer it says 277, on firefox 0

The complete script is 4 pages and I needed 2 days to get it working completely, it worked for both browsers until I tried to make the link with XML.

some help would be welcome

DragonEye
DragonEye is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-25-2005, 09:20 AM   #2 (permalink)
Contributing Member
 
DragonEye's Avatar
 
Join Date: 10-13-03
Location: Belgium
Posts: 322
iTrader: 0 / 0%
Latest Blog:
None

DragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebody
Send a message via MSN to DragonEye
nobody :d ?

you gotta be kidding, I can't be the only one that is using this kind of scripts...

DragonEye
DragonEye is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-25-2005, 09:31 AM   #3 (permalink)
Inactive
 
TeKBuzz's Avatar
 
Join Date: 11-12-03
Location: Ohio
Posts: 558
iTrader: 0 / 0%
Latest Blog:
None

TeKBuzz is liked by somebodyTeKBuzz is liked by somebodyTeKBuzz is liked by somebodyTeKBuzz is liked by somebody
Send a message via ICQ to TeKBuzz Send a message via AIM to TeKBuzz Send a message via MSN to TeKBuzz Send a message via Yahoo to TeKBuzz
I've never done anything like that and even such don't see what would be casuing a problem >.< sorry man I just don't have the knowledge to answer that
TeKBuzz is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-26-2005, 01:48 PM   #4 (permalink)
Contributing Member
 
DragonEye's Avatar
 
Join Date: 10-13-03
Location: Belgium
Posts: 322
iTrader: 0 / 0%
Latest Blog:
None

DragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebody
Send a message via MSN to DragonEye
hey... no hard feelings

I just hoped somebody used XML in Javascript and noticed that firefox requires other code. I have found some pages on the internet stating that there is a problem, but I haven't found a working solution for it

grtz

DragonEye
DragonEye is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript/CSS IE7 problem searchbliss Coding Forum 8 02-07-2008 01:45 PM
Javascript app works in Firefox, not in IE Gr8Writer Coding Forum 0 01-30-2008 04:39 PM
Please help with FireFox Javascript issue searchbliss Coding Forum 3 01-04-2008 06:45 PM
JavaScript FireFox problem searchbliss Coding Forum 0 12-27-2007 11:58 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 02:33 AM.
© Copyright 2008 V7 Inc