[jQuery] Retrieve content from element using AJAX?
Is it possible to retrieve specific content from another page, rather than
the whole page when using AJAX?
What I'm trying to do is make a greasemonkey script (with jQuery loaded of
course) that gets text from another page on a site (same domain) and
displays it in a div. This is the node path of the element I'm trying to get
on the other page: html > body > p > table > tbody > tr > td .news > span
So I would like to do something like this: $.get("page.html", { $('td.news
span').text(); } ); ...but obviously that's wrong. :)
--
View this message in context: http://www.nabble.com/Retrieve-content-from-element-using-AJAX--tf3380696.html#a9409718
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/