Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: data island creation using reponseText

From: clockemail@------.---
To: NULL
Date: 7/5/2007 2:34:00 PM

On Jul 5, 1:13 pm, clockem...@alltel.net wrote:
> On Jul 5, 1:02 pm, clockem...@alltel.net wrote:
>
>
>
>
>
> > On Jul 5, 11:56 am, Martin Honnen <mahotr...@yahoo.de> wrote:
>
> > > clockem...@alltel.net wrote:
> > > >    document.getElementById("xmlDataIsland").InnerXml =3D strXML;
>
> > > There is no property named InnerXml defined on xml elements. If you w=
ant
> > > to load a new document then simply use
>
> > > document.getElementById("xmlDataIsland").XMLDocument.load("CreateXMLF=
ile.as=AD=AD=ADpx?strSearch=3D"
> > > + strSearchTerm);
>
> > > Setting the src property of document.getElementById("xmlDataIsland")
> > > might work as well although I have not tried that.
>
> > > --
>
> > >         Martin Honnen --- MVP XML
> > >        http://JavaScript.FAQTs.com/
>
> > Thanks for that Martin. I have now altered the two sections of my
> > JavaScript to appear as follows. The XXX alert appears, so I know that
> > the handleHttpManualSearch() function is called, but the YYY alert
> > does not appear. Could you please tell me what I have done
> > incorrectly? I apologize for bothering you with this, but I have been
> > trying for two days to get this to work trying every possible way that
> > I could find. My lack of XML knowledge is embarrassing.
>
> > document.getElementById("xmlDataIsland").XMLDocument.load("CreateXMLFil=
e=2Eas=AD=ADpx");
> > document.getElementById("xmlDataIsland").onreadystatechange =3D
> > handleHttpManualSearch;
>
> > function handleHttpManualSearch()
> > {
> >    alert("XXX");
> >    if (document.getElementById("xmlDataIsland").readyState =3D=3D 4)
> >    {
> >       alert("YYY");
> >       var oNode =3D
> > document.getElementById("xmlDataIsland").XMLDocument.getElementsByTagNa=
me('=AD=ADborrower').item(0).firstChild.data;
> >    }
>
> > }- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
>
> I have managed to make the YYY alert appear by changing the code to if
> (document.getElementById("xmlDataIsland").XMLDocument.readyState =3D=3D
> 4), and I can see the XML data within the data island by including the
> following line.
> alert(document.getElementById("xmlDataIsland").XMLDocument.xml);
>
> How do I now refer to elements (or nodes) within the XML?- Hide quoted te=
xt -
>
> - Show quoted text -

I eventually figured out how to do it, but I would never have managed
that without your initial help Martin, so thanks very much.



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