473,326 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Using Response XML

Is there an easy way to use responseXML w/o recreating the tags. I've
tried taking tags that are returned from the responseXML and appending
them to other tags in the document but then I have no luck accessing
the properties of the elements from the responsexml.

Thanks

May 23 '07 #1
2 1729
On May 23, 4:50 pm, Mister Joe <mrjoefri...@gmail.comwrote:
Is there an easy way to use responseXML w/o recreating the tags. I've
tried taking tags that are returned from the responseXML and appending
them to other tags in the document but then I have no luck accessing
the properties of the elements from the responsexml.
I believe the easy and only way to use the stuff in responseXml is by
adding it to some preset element, assuming your user agent is ok with
innerHtml.

This is based on the lack of response I got to the similar quesiton I
asked at the end of the following thread, not long ago:
http://groups.google.com/group/comp....0bffc1c4150c38

HTH,
F.O.R.

May 23 '07 #2
On May 24, 9:50 am, Olorin <francesco.ri...@gmail.comwrote:
On May 23, 4:50 pm, Mister Joe <mrjoefri...@gmail.comwrote:
Is there an easy way to use responseXML w/o recreating the tags. I've
tried taking tags that are returned from the responseXML and appending
them to other tags in the document but then I have no luck accessing
the properties of the elements from the responsexml.

I believe the easy and only way to use the stuff in responseXml is by
adding it to some preset element, assuming your user agent is ok with
innerHtml.

This is based on the lack of response I got to the similar quesiton I
asked at the end of the following thread, not long ago:http://groups.google.com/group/comp....wse_frm/thread...
If you are using XML, you can create an XML document object and then
use DOM Core methods to deal with it. This recent thread shows how:

<URL: http://groups.google.com.au/group/co...2118dc51fae143
>
However, that is only good for getting the data out and using it in
the HTML document, I don't think you can just grab XML DOM elements
and drop them into an HTML document. So given that the XML document
becomes just a data transport, JSON becomes the obvious choice because
it is simple to generate a javascript object and work with it, no XML
support required. It is also kind of XML-ish.

The idea of using innerHTML is so you can send HTML and just drop it
into the document. Also, a number of libraries allow you to use DOM-
like manipulation (insert, append, wrap, etc.) using HTML strings
rather than DOM objects.
--
Rob

May 24 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: anonieko | last post by:
> > > > Writing an XML document the .Net way If you've been using the .Net Framework for even a week, you know that the kids in Redmond really thought of almost everything, so they're not...
1
by: Junior | last post by:
I keep receiving this "The type or namespace name 'CASsEventHandler' could not be found (are you missing a using directive or an assembly reference?)" message in two particular lines, and I've...
0
by: Michelle Keys | last post by:
I am trying to call a print function to print a string from a database using javascript. Which is RC_DATA of Varchar2(2500). This is a javascript is not being used. I have a thing that needs to...
11
by: Dorsa | last post by:
HI, Could you please tell me the error in here. I am trying to open an XML file from a link. Response.Clear() Response.Expires = 0 Response.BufferOutput = False Response.ContentType =...
2
by: s_erez | last post by:
Hi, This is a realy tricky one. I have an ASP.NET application where some pages are reading data from a DB and presenting reports. In order for the user to wait while the page is reading data from...
3
by: Hitesh | last post by:
Hi, I am getting the response from another Website by using the HttpHandler in my current site. I am getting the page but all the images on that page are not appearing only placeholder are...
7
by: | last post by:
Hello, I would like to do the following from a asp.net button click: <form method="POST" action="https://www.1234.com/trans_center/gateway/direct.cgi"> <input type="hidden" name="Merchant"...
1
by: MORALBAROMETER | last post by:
Hi all, I want to update MULTIPLE elements of an HTML page using Ajax. for this reason i my response is an xml document. I want to use XSL at the client side to update these elements. How can i...
7
by: =?Utf-8?B?QU9UWCBTYW4gQW50b25pbw==?= | last post by:
Hi, I have been using the code (some of it has been removed for simplicity) below to allow authenticated (using ASP.NET membership database) users to get a file from their archive area. It...
13
by: =?Utf-8?B?Um9nZXIgTWFydGlu?= | last post by:
This is a follow-up to my post "Silverlight video doesn't work when file is streamed from handler in ASP.net" at...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.