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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML parsing with javascript

Status
Not open for further replies.

pietvn

Programmer
Aug 19, 2010
1
CA
Hi there

I am currently trying to modify a Gannt WebPart in SharePoint, but I am running into some issues with XML and javascript.

I just want to output the value "Project1" inside the ListViewXml tag using Javascript. Is this possible?

<WebPart xmlns:xsi=" xmlns:xsd=" xmlns="<ListViewXml xmlns="[CDATA[<html><body><script type="text/javascript">document.write("Project1");</script></body></html>]]></ListViewXml>
</WebPart>

I have tried replacing the characters <,>," with the "&lt;&gt;qout; tags but no success either

Eventually my idea is to have javascript reading the querystring parameter called "ID" and then outputting that value inside the ListViewXml tag.

Regards
 
>I just want to output the value "Project1" inside the ListViewXml tag using Javascript. Is this possible?
That's just a parsing a target substring in the text node of the tag. In order not to waste time to fabricate xml loading and parsing not necessarily corresponding to what you've, show your script at present. Otherwise, what is the problem you have in parsing the text string?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top