problems with explorer.

O

overdalsveien

I have the following javascript ::
-----------------------------------------------------
function getLenker_2(xmlDoc)
{
var result_txt = "";
var this_title = "";
var this_url = "";
myNodes=xmlDoc.getElementsByTagName('name');
// every 'name' has an attribute: 'link'.
for(var counter=0;counter<myNodes.length;counter++) {
this_title =
myNodes.item(counter).firstChild.nodeValue;
this_url =
myNodes.item(counter).getAttribute("link");
result_txt += "<a href=\"http://" + this_url + "\">" +
this_title + "</a> <br>";
}
if (document.all) {
document.all.my_list.innerHTML = result_txt;
}
else if (document.layers) {
document.layers.my_list.document.open();
document.layers.my_list.document.write(result_txt);
document.layers.my_list.document.close();
}
else if (document.getElementById) {
document.getElementById('my_list').innerHTML = result_txt;
}
}
%%%%%%%%%%%%%%%%%%
<div id="my_list">
</div>
----------------------------------------------
this works without any problems in Firefox, but not in ms-Explorer.

any suggestions?


fred Moerman
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top