Jump to content


Photo

getElementByTagName


  • Please log in to reply
3 replies to this topic

#1 kunchokz

kunchokz
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 17 February 2006 - 08:46 AM

[!--fonto:Verdana--][span style=\"font-family:Verdana\"][!--/fonto--]I have an xml file and a php file.
How can I retrieve the values inside the xml tag, in the xml file from the php file using getElementTagName of javascript? [!--fontc--][/span][!--/fontc--]

#2 naskoo

naskoo
  • Members
  • PipPip
  • Member
  • 13 posts
  • LocationBulgaria

Posted 17 February 2006 - 12:24 PM

[a href=\"http://www.phpfreaks.com/tutorials/44/0.php\" target=\"_blank\"]http://www.phpfreaks.com/tutorials/44/0.php[/a]

#3 ChrisDarl

ChrisDarl
  • Members
  • PipPip
  • Member
  • 27 posts

Posted 17 February 2006 - 09:11 PM

If you really wanted to use JS i suppose you might be able to have the XML file in a iFrame and use JS to extract via TagNames from the iFrame and transfer it to the document on load

Not the most ideal way

#4 kunchokz

kunchokz
  • New Members
  • Pip
  • Newbie
  • 7 posts

Posted 22 February 2006 - 06:38 AM

I used the code of xml parser. It works fine with ie 6.0 and mozilla 1.0.7 if i have to fetch the data within the top level nodes. But I cannot fetch the data within the child nodes in mozilla. And the code doesnot work with opera 8.52




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users