-2

Possible Duplicate:
HTTP GET request in Javascript?

I have a url that contains a XML tree. I want to read that url content, save it to a variable, extract XML tree values, and draw it in a table.

matisetorm
  • 857
  • 8
  • 21
mona
  • 11
  • 1
  • 1

1 Answers1

0

Use an AJAX query, in jQuery:

$.ajax({
  url: url,
  dataType: 'xml',
  success: function(data) {
     // Data is your xml content which you can work with
  }
});
Vyacheslav Voronchuk
  • 2,403
  • 19
  • 16
  • i have written that code , but there is no sense – mona Nov 18 '12 at 12:26