Article View: borland.public.jbuilder.java.swing
Article #10080Javascript to Swing Applet communication doesnt work!!!
From: sean
Date: Tue, 16 Nov 1999 00:00
Date: Tue, 16 Nov 1999 00:00
16 lines
1450 bytes
1450 bytes
It is normally possible to access public methods and attributes of an applet from javascript but this doesnt seem to work when the applet is a Swing JApplet. Does _ANYBODY_ have any idea why this is and whether or not there is a workaround? I have a simple test applet which I can successfully run in IE and Netscape as either a normal applet or a Swing JApplet. When I run it as a normal applet I can fire its public methods from javascript. When I convert it (and the HTML page) to run as a JApplet and try to fire the same public method I get a javascript error (IE and Netscape) saying the 'object has no properties' as if the javascript no longer recognises it as an applet. Any help greatly appreciated!! sean (sean@scorpio.freeserve.co.uk)
Technical Details
Message-ID:
<80sj8b$6pn$1@news4.svr.pol.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,25a539547c0ca1c2,start X-Google-Attributes: gid111d45,public From: "sean" <sean@scorpio.freeserve.co.uk> Subject: Javascript to Swing Applet communication doesnt work!!! Date: 1999/11/16 Message-ID: <80sj8b$6pn$1@news4.svr.pol.co.uk> X-Deja-AN: 549440317 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@theplanet.net X-Trace: news4.svr.pol.co.uk 942788683 6967 62.136.29.112 (16 Nov 1999 21:44:43 GMT) Organization: Customer of Planet Online X-MSMail-Priority: Normal NNTP-Posting-Date: 16 Nov 1999 21:44:43 GMT Newsgroups: borland.public.jbuilder.java.swing