Re: How to learn to cope with Jrex - are there tutorials out there?

Benjy Cline <benjycline-/[email protected]> Tue, 30 Jan 2007 21:49:52 -0500
Newsgroups gmane.comp.mozilla.jrex
Message-ID <[email protected]>
Hi,

http://blogs.pathf.com/agileajax/2007/01/how_to_really_d.html
helped me get started with JRex.

Then I used the JavaDocs to find the methods I needed.  I got a
JRexCanvas from the winManager and from that got a reference
to a WebNavigator object.  You can use the WebNavigator to load
a page.  Once the page is loaded, you can access the DOM by
getting a reference to a Document object with a method call
to the WebNavigator object.  You can then traverse the DOM
and reconstruct the HTML of the rendered page.

(I needed to find the value of the src attribute of IMG tags
where the src value was created by a JavaScript function.)

I experimented some, and there are probably more sophisticated
approaches.  But, that should give you a good start.  Good Luck.

Benjy

Billy wrote:
> Hello!
> I just succesfully installed Jrex and made the "Using JRex code" on the website
> run. No I dont know how to go on. I even dont know what the WindomManager is
> for... With that API I have severeal problems. I want to control the browser by
> invoking new websites, extracting the html code and many more things.
> So are there any tutorials out there? The API is no help to me.
> Tanks
> Billy