Having worked through previous postings and results of other searches, I seem to be able to get what I want but it appears to be a data object rather than text that I can assign to a variable.
I am limited to javascript in the environment I am working in and what I want to do is to use string functions on the returned data so that I can search for certain terms.
This is the url format that returns the data object - the result is that you get asked to open or save a text file:
http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20html%20where%20url%20%3D%20%22http://www.redrag.info/index.htm%22%20and%20xpath%3D%22*%22&format=xml&callback=cbfunc
(you can replace my url - http://www.redrag.info/index.htm - within the example above with one of your own if you wish)
Instead of opening the text file, can I use some javascript document functions to assign this output to a variable?
Thanks.