What I have is working somewhat (learned a lot from Jaxer's source
code), but many events do not work. E.g. calling click() on an
HTMLInputElement doesn't do anyting because there's no pres shell
and no pres context. So no onclick() event handler is called. Also,
the onload event handler of a
body tag is not called because there's no nsIContentViewer (so
LoadComplete is not called).
Instead of hacking Gecko to make these work, I wonder if there's a
better way, and that is to
create a new Toolkit, that implements all the interfaces, just doesn't
render anyting.
Is it straight forward to create a Toolkit that just doesn't render
anyting? Ideally embedding Gecko
using a No-UI toolkit. Or is it just better to hack Gecko and to
tackle issues one by one?
Thx
Andrej
People tried that approach a long time ago --- "Crystalzilla" was one
attempt, with code available, but the code rotted long ago.
One problem with that approach is plugins. Do you care about plugins
working?
Rob
Another is Aptana's Jaxer, though I'm not sure it renders things
(might just be content model):
Mike
On May 3, 11:04 am, "rob...@ocallahan.org" <rocalla...@gmail.com>
wrote:
Jaxer doesn't render at all, it only serialize the DOM tree after some
server
scripts have executed. So, with Jaxer, you can manipulate the DOM tree
by server-side scripts, and from that generate the page again which is
sent
to a client. It doesn't care much about event handling, such as
"onclick".
I think I'm pretty close as I can load pages, walk the dom tree, run
client-side scripts that manipulate the dom tree. Only events and form
submission
don't work, as well as loading of frames in a frameset. Looks like I
have to
tackle those problems one by one...