Although I've never tried it, I think that might be achieved by adding an invisible iframe (with that URI as it's source) and then use the regular getElementByxx or traversing the DOM.
I hope the experts will correct me in case I'm wrong. Cheers, Oren On Sun, Mar 15, 2009 at 12:25 AM, Shreevatsa <[email protected]>wrote: > > What would be the right way to fetch a webpage and parse it? > > Apologies if the question is not well-formed. To clarify, I would like > to, when at a page like this: > http://books.google.com/books?id=hyz1HDJ6KxIC&pg=PA242&vq=soliton > be able to get information from the <div class="bookinfo_sectionwrap"> > on the page > http://books.google.com/books?id=hyz1HDJ6KxIC > This requires fetching a page and extracting a particular div from it, > and that is what the question is about. > > There is a similar example at > http://diveintogreasemonkey.org/patterns/parse-xml.html > but I was wondering if what's recommended now is different. > > Thanks, > Shreevatsa > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en -~----------~----~----~----~------~----~------~--~---
