On Jul 9, 9:33 am, moi <[EMAIL PROTECTED]> wrote:
> Hello everybody,
>
> I am trying to use WebClient 2.0.a9 (http://www.mozilla.org/projects/
> blackwood/webclient/) to embed a browser into a Java application.
> I managed to create the frame with the browser and to display a HTML
> page. However, I have some problems with a HTML page with Javascript.
> All my Javascript scripts work except those which are supposed to open
> a dialog box (with the methods 'alert()' or 'confirm()'). I think that
> I have to implement the 'Prompt' interface to use the Javascript
> method 'alert()' to display dialogs. The problem is that when I call
> the 'setPromp()' method on my Navigation object I have an error. This
> error comes from the fact that you uncommented out the
> nativeSetPrompt() method in NavigationImpl.cpp.
> Is there a reason? How am I supposed to do with the Javascript method
> 'alert()'?

Hello Julien,

I spent a considerable amount of time getting this working with a
consistent API on Mac OS X and Win32.
There is a unit test that shows how to do it.  It's the
WindowCreatorTest.java file included in the Webclient
distribution.  Using the NetBeans project in the webclient dist, you
can simply debug into the test and see what's
going on.

If you want, the source is online as well, at
http://mxr.mozilla.org/mozilla/source/java/webclient/test/automated/src/classes/org/mozilla/webclient/WindowCreatorTest.java

Ed

_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to