Yajun <[EMAIL PROTECTED]> wrote:
> I'd like to use mozilla in a server to load a document from an URL and
> traversal DOM tree to location an element in the document.
>
> In this case, there's no display of document, but it might need to
> execute all the javascripts since some javascript might create some
> elements.
>
> Thanks.

On Linux or Unix you can start a "virtual framebuffer" X server (Xvfb)
and set DISPLAY to point to that before initialising Gtk; then Mozilla
will use that server.  I implemented this in x_frame_buffer.cpp in
WebDVD <http://womble.decadent.org.uk/software/webdvd/>.  If you are
using a Windows service then I believe there's no problem with
creating invisible windows.  (Just don't enable "allow service to
interact with desktop"!)

Ben.

-- 
Ben Hutchings -- [EMAIL PROTECTED] shortened to [EMAIL PROTECTED]
If you've signed my GPG key, please send a signature on and to the new uid.
If you seem to know what you are doing, you'll be given more to do.
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to