11-28-2010 10:48 PM
Hi guys,
My application makes use of an embedded browser (i.e. QNXStageWebView - similar to what is in the sample RSSReader project). I am wondering how to read the HTML of the page that was just loaded - does anyone have any ideas or have successfully done this? I noticed that in the (limited) API for QNXStageWebView there was a method called executeJavaScript which is about the only thing I can think of that might work... but not exactly sure how to use it.....
Any ideas?
Thank you.
11-29-2010 01:17 AM
11-29-2010 01:29 AM
hey _salman_,
would you be able to accomplish this using the URLRequest API along with the URLLoader API and not directly with the QNXStageWebView?
here is a link to the URLRequest API:
and a link to the URLLoader API:
http://livedocs.adobe.com/flash/9.0/ActionScriptLa
using the two you should be able to retreive the data of a given URL in the QNXStageWebView.
11-29-2010 02:40 PM
Thanks for the response guys.
@JCarty: The DOM tree would be good, but I'd settle even for just the raw HTML. Any ideas?
@JRab: That is a nice solution, but unless I misunderstood you, wouldn't it be a bit inefficient as the page has already loaded up in the QNXStageWebView and I'd have to make another call using the URLRequest/URLLoader APIs. I figure that since the component already has to fetch and render the HTML... there must be a way to get at it....
Thanks again.
11-30-2010 11:47 AM
You're right that would be a bit inefficient and that wouldn't work with pages relying on sessions and stuff like that (think POST variables)...
I agree, we need a way to access the DOM or the raw HTML!