RE: [Rails-spinoffs] responseText Vs responseXML

2005-10-18 Thread Maninder, Singh
I don't know... rahul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maninder, Singh Sent: Tuesday, October 18, 2005 1:19 PM To: rails-spinoffs@lists.rubyonrails.org Subject: RE: [Rails-spinoffs] responseText Vs responseXML Thanks Rahul. But, how

RE: [Rails-spinoffs] responseText Vs responseXML

2005-10-18 Thread Rahul Bhargava
ahul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Maninder, Singh Sent: Tuesday, October 18, 2005 1:19 PM To: rails-spinoffs@lists.rubyonrails.org Subject: RE: [Rails-spinoffs] responseText Vs responseXML Thanks Rahul. But, how can I get the server to r

RE: [Rails-spinoffs] responseText Vs responseXML

2005-10-18 Thread Maninder, Singh
Thanks Rahul. But, how can I get the server to return content-type of text/xml? I just have a rss file placed on the server that I am trying to call into my page and parse it. --

RE: [Rails-spinoffs] responseText Vs responseXML

2005-10-18 Thread Rahul Bhargava
I think the response needs to come back from the server with a content-type of text/xml (rather than text/html) in order to fill in the responseXML for you. You can't use getElementsByTagName with responseText because it is just text, not a parsed and loaded DOM tree. Hope that helps... rahul