Hi, welcome to Pivot.

Yesterday I finish to commit a small test/sample minimal Applet (that
can run even as standard Application, for some things) both in our
maintenance branch (for our next 2.0.3), and in trunk (for 2.1
release), but sorry you have to look at them with a Subversion client.
For example look here:
http://svn.apache.org/repos/asf/pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/

> How can I get at the underlying java.applet.Applet instance so that I can 
> create a JSObject?
> Or is there another way of creating a JSObject?
In Pivot859.java there are some methods called from Javascript (from
the html page), to set/get some values into/from the Applet.
To get a reference to the Applet, you can call the method
getApplication(...) of BrowserApplicationContext, like in
pivot859.html .
In attach I put a working copy of its related test html page,
containing all relative path and version good for a local test
environment.
If you need more help, ask to us ...

We have some other sample on interaction between browser and applets,
look at DOMInteractionDemo.java, and its usage of method eval(...) of
BrowserApplicationContext. If possible today I'll put some other info
in DOMInteractionDemo, and commit them.

> If neither of those methods are possible, is there another suggestion for 
> reading/writing cookies without signing?
I'm sorry, but don't know if in that way you can share a cookie
between the browser and the applet , so maybe you could even try to
read it from JavaScript, and sent its data to the Applet ... otherwise
you could try to create a new Cookie inside the applet, using Java
Cookie classes ... for example look here:
https://blogs.oracle.com/CoreJavaTechTips/entry/cookie_handling_in_java_se


Anyway, keep us updated :-) .

Bye,
Sandro

Reply via email to