Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 151441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:27:00+00:00 2026-05-11T09:27:00+00:00

xmlDoc.load(cd_catalog.xml) var cd=xmlDoc.getElementsByTagName(CD); var id_set=1; var id=xmlDoc.getElementsByTagName(ID+id_set); i=0; function next() { if (i<id.length-1) {

  • 0
xmlDoc.load('cd_catalog.xml')  var cd=xmlDoc.getElementsByTagName('CD'); var id_set=1; var id=xmlDoc.getElementsByTagName('ID'+id_set);  i=0;  function next() { if (i<id.length-1)   {   i++;   display();    } }   function display() { document.write('<div class='dd'>')         document.write('<div class='blue' style='WIDTH:')         document.write(cd[0].getElementsByTagName('ID'+id_set)[i].childNodes[0].nodeValue)         document.write(''></div>')  document.write('</div>')  }   } </script>      <script type='text/javascript'> display()   </script>       <br><input type='button' onclick='next()' value='next' ID='Button2' NAME='Button2'/> 

I saw related question, but not sure that helps.. I added the next() function and the browser hangs as if it is loading something, never does. Without the next() call the display function works. I am trying to do a variation of this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:27:01+00:00Added an answer on May 11, 2026 at 9:27 am

    That related queston does help. You can’t use document.write() after the document has finished loading. See the answer to that other question for how to replace document.write().

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

function text_window() { var xmlDoc; if (window.XMLHttpRequest) { xmlDoc=new window.XMLHttpRequest(); xmlDoc.open(GET,cd_catalog.xml,false); xmlDoc.send(); xmlDoc=xmlDoc.responseXML; }
I'm using the following javascript code to display xml/xsl: function loadXMLDoc(fname) { var xmlDoc;
I load an XML document: XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(MyFile.xml); And also create
I load XML from aspx page by MSXML2.DOMDOCUMENT.3.0 ActiveXObject. var xmlDoc = null; try
var xmlDoc = new XmlDocument(); xmlDoc.Load(XMLFile1.xml); XmlNamespaceManager manager = new XmlNamespaceManager(xmlDoc.NameTable); manager.AddNamespace(frbny, urn:toto); var
I load an xml document from a file stream as below XmlDocument xmlDoc =
public class Logwriter { public Void WriteXml() { XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(@C:\Log_Data.xml);
In a VSTO Excel addin the code: Dim XMLDoc As XElement = XElement.Load(XMLFile1.xml) generates
I have a class that goes to a URL and gets a xml document
I have published xml document through web service like this <WebMethod()> _ Public Function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.