Re: How to learn to cope with Jrex - are there tutorials out there?
Benjy Cline <benjycline-/[email protected]> Sun, 04 Feb 2007 17:08:33 -0500
| Newsgroups | gmane.comp.mozilla.jrex |
|---|---|
| Message-ID | <[email protected]> |
Billy,
First change: I changed the location of the jrex_gre to
match my system. I changed nothing else. When I run it,
I get an AWT traceback and two instances of your print
statements:
> The DOM is:
>
> NodePeer <48448164>
> NodeType <DOCUMENT_NODE>
> NodeName <#document>
> LocalName <>
> NamespaceURI <>
> NodeValue <>
> hasAttributes <false>
> hasChildNodes <true>
>
<snip>
Then Java crashes. This happens with some sites with Java
1.5.0_09 but not with an earlier version. I then changed
the URL in the loadURL to http://www.cnn.com and ran it
again. That time I didn't get an AWT traceback, I didn't
get a Java crash, and I got multiple copies of your
printout since the listener is called many times.
So, I made only two simple changes, and I didn't get a
null document. However, it seems to me in an early
version of my code, I did get a null document when I
didn't wait for the document to load. So, there might
be some race condition.
Good luck.
Benjy
Billy wrote:
> Well, thats strange...
> Die you get a non-null result with my code? Or did you use your variation to get
> it? Are there any different values for the setPrpperty function? Did you use
> setProperty("jrex.dom.enable","true") either? I am sure on my machine it is
> still null, I debugged it several times.
> Thx