Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: datascr and datafld databinding failed on dataisland using msxml4

From: Vilohr Eric <eric57e@-------.--->
To: NULL
Date: 10/1/2004 8:04:00 AM
This sample doesn't work on user's computers.

<HTML>
<HEAD>
<script language="javascript">

function window.onload()
{
//works great everywhere
var msxml=new ActiveXObject("MSXML2.DOMDocument.3.0");
msxml.loadXML("<User><ID>ERV</ID><FirstName>Vilohr</FirstName></User>");
var xn=msxml.selectSingleNode("User/ID");
alert(xn.text);


//raise the exception ("object required") on oper.XMLDocument on user's
machine
try
{
var x=oper.XMLDocument.selectSingleNode("User/ID");
alert(x.xml);
}
catch(e)
{
alert(e.description);
}

}

</script>
</HEAD>
<BODY>
<xml id="oper"><?xml version="1.0"
encoding="utf-8"?><User><ID>ERV</ID><FirstName>Vilohr</FirstName></User>
</xml>

<span datasrc="#oper" datafld="FirstName"></span>
</BODY>
</HTML>

---------

Eric


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent