How exactly does $(response).find('#mylinks') work? How does it traverse the dom tree if the response is just a text version of the page's html?
Nicolas R wrote: > > > If you convert your response to a jQuery object then yes. So something > like $(response).find('#mylinks') should work, if used in the success > callback function. Your response doesnt need to be in XML, HTML is > just fine. > > > On Apr 19, 5:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >> Is it possible to parse the HTML of an AJAX response and grab only a >> certain piece of the response to be displayed by the caller? >> >> Specifically, I'm trying to modify a page so that when I hover over a >> certain set of links, a pop-up window is displayed with the link's >> target in the pop-up. The problem is that the URL is an entire >> webpage, and I only want to display a certain piece of text from this >> webpage. Is it possible to traverse the AJAX response using selectors >> so that I can grab a certain div class and display its text? > > -- View this message in context: http://www.nabble.com/Traversing-AJAX-Response--tp16789239s27240p17340513.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.