Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML under Lotus Notes intranet

Status
Not open for further replies.

weeze2

Technical User
Jun 18, 2002
129
DK
Hi im quite new to xml and made a document that shows xml in table. It works fine when i have everything on my local pc but as soon I upload it into lotus notes to our intranet it come swith a error message. Is there anybody that have had a simmular problem, or that might have an idea of what the problem might be? Here is an example of the code. The problem comes when the browser reaches the [for] statement.
(hey I am new to this :))
************************************************************
[<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>
<?xml version=&quot;1.0&quot;?>
<HEAD><TITLE>Idekatalog</TITLE>
<SCRIPT language=JavaScript type=text/javascript>
<!--

document.writeln(&quot;<Table border=0 width=695>&quot;);
var xmlDocument = new ActiveXObject( &quot;Microsoft.XMLDOM&quot; );
xmlDocument.load(&quot;THEXMLDOCUMENT&quot; );
var element = xmlDocument.documentElement;

document.writeln(&quot;<Table border=0 width=695>&quot;);

for ( var i = 0; i < element.childNodes.length; i++ )
{
var omr = element.childNodes.item(i ).firstChild.nextSibling;
document.writeln(&quot;<tr><td width=166><strong>&quot;+omr.firstChild.nodeValue+&quot;</strong></td>&quot;);
var sys = element.childNodes.item( i ).firstChild.nextSibling.nextSibling;
document.writeln(&quot;<td>&quot;+sys.firstChild.nodeValue+&quot;</td></tr>&quot; );
document.writeln(&quot;<tr><td> </td><td> </td></tr>&quot; );
document.writeln(&quot;<td> </td><td><hr color=#6B9AAD></td>&quot; );
document.writeln(&quot;<tr><td> </td><td> </td></tr>&quot; );
}

document.writeln(&quot;</Table>&quot;);

</SCRIPT>
</HEAD>
<BODY>
</BODY></HTML>]
***********************************************************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top