Jump to content

winicius

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

winicius's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The following code works perfectly on Firefox rendering the page according to a predefined CSS file. The issue I am having now is that IE 7 is unable to append the element list[0] which denotes a Node. While I'm getting the information from the XML file loading properly with Firefox, IE is not displaying anything. Down below I put part of my javascript with the XML file that the information is being extracted from. Maybe someone out there has already had a problem similar to this, any help is greatly appreciated. Thanks. Javascript: function buildContent(){ var contentsec = document.getElementById("infocontent"); var list = req.responseXML.getElementsByTagName("content"); contentsec.appendChild(list[0]); } XML <?xml version="1.0" encoding="utf-8"?> <content> <h1>Blah Blah Blah</h1> <h2>Blah Blah Blah Blah Blah Blah</h2> </content>
  2. Thanks, that advice put an end to my problem.
  3. I meant window.alert('awd'); instead of document.alert(awd');
  4. You could create a symbolic link in /var/www/html/ that points to the directory in which you will have your web files. In other words, create a symbolic link using the command "ln" that points to your directory /home/user_name/web. Please take note that the directory "web" is where you will keep all your web files. It is as simple as that.
  5. I am having a problem with the following: <a onclick="loadDoc(event)" value="home.xml">Home<\a>. Basically what this is doing is calling the function loadDoc and passing in an event to the javascript function. The problem I am having is that loadDoc is not being executed at all. The reason I know that is because I am calling document.alert(); at the very beginning of the function. So I have come to the conclusion that there might be something wrong with my anchor. I've already checked the spelling of the function, I also made sure that the script is being loaded at the head. Here is a look at a few parts of my document: //this is in my HTML doc <script type="text/javascript" src="xmlloader.js"></script> ... <a onclick="loadDoc(event)" value="home.xml">Home<\a> //this is in the xmlloader.js function loadDoc(evt){ document.alert("hello"); ... ... }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.