From: Timothy J. H. <tim...@ma...> - 2004-02-05 21:14:32
|
On Thursday, February 5, 2004, at 03:27 PM, david wrote: > Is there any way to get a reference to the applet window > in the jscheme applet? > I want to use live connect to access the dom. > > This is how a java applet does it. > JSObject win = JSObject.getWindow(this); In the latest version of the webapp, a URL which requests a file FILENAME.scmapp will cause the webapp to generate a webpage containing an applet whose code is in FILENAME.scm That code must contain a procedure (install applet) which will be called with the applet object with the applet is initialized. Using this approach, the code for testapplet.scm would be ;; testapplet,.scm (import "whateverpackageJSObjectisin") (define (install applet) (define win (JSObject.getWindow applet)) ... do something with JSObject... ) I'll try to release this latest webapp over the weekend. (and hopefully do a full Sourceforge release of Jscheme as Ken had suggested a few weeks ago .....) ---Tim--- > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Jscheme-user mailing list > Jsc...@li... > https://lists.sourceforge.net/lists/listinfo/jscheme-user |