OZONE Asylum
Forums
DHTML/Javascript
Get the html code inside an xml tag
This page's ID:
30388
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hi there! I am using an xml file to store my html code (inside a 'code' tag) and then spitting it out to the browser. At the client side I need to get to this 'code' node and copy over all the data inside that tag into the innerHTML of a page element. I can't do the copy. innerText, textContent all fail. Can anybody help? I am pasting the xml on the server side and the cml that I get as the result of the ajax call. [b]server side xml:[/b] <items> <item> <id>worldcat</id> <title>WorldCat</title> <dropdowntitle>WorldCat</dropdowntitle> <code> <div class="interpsearchq" style="margin: 0 0 0 .92em; padding: 0 0 4px 0;">Enter your query:</div> <div> <form method="get" action="" style="margin-left: .92em;"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td><input type="text" name="q" id="q" value="" style="margin: 0 0 0 0;" class="textinterpsearch" /></td> <td><input type="image" name="__submit" onClick="window.open('https://proxy.library.upenn.edu/login?url=http://newfirstsearch.oclc.org/dbname=WorldCat;screen=advanced;done=referer;logo=http://www.library.upenn.edu/images/penn-banner-oclc.gif;fsip;javascript=true;query='+ document.getElementById('q').value, '_blank');return false;" src="images/common/gowhite.gif" alt="Go" class="gointerpsearch" style="margin: 0 0 0 0;" /></td> </tr> </table> </form> </div> </code> </item> <items> now the xml that I get at the client side is everything inside the <item> tag. Any help will be deeply appreciated. ankit [small](Edited by [url=http://www.ozoneasylum.com/user/6646]jainanki[/url] on 07-03-2008 23:14)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »