![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2005
Posts: 12
Rep Power: 0
![]() |
loading an applet
Hey all
Hope you guys can help me with a problem, Is it possible to load multiple java applets in the same frame on the same html page using javascript, the image that loads depends on which option the user clicks. the code for the applet is : <applet code="IpixViewer.class" archive="IpixViewer.jar" align="baseline" width="320" height="240" name="IpixViewer"> <param name="URL" value="full_apt1_lounge.ipx"> <param name="BackgroundColor" value="#20ff00"> <param name="SpinSpeed" value="-5"> <param name="SpinStyle" value="flat"> </applet> |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4
![]() |
You can do this sort of thing with an inline frame. That way, the page is technically broken up into frames, but it doesn't necessarily look that way (especially if you use the iframe tag's attributes to turn off the scrollbars).
Then you can interact with the iframe as with a normal frame, telling it to load different applets. If you want to communicate between applets and javascript, this is still probably your best bet; generate new applet tags with JS into the frame and the applet will be loaded again with different arguments. There's no better widely supported way for JavaScript to talk to Java that I know of, and the browser's local cache will mean it's not as slow as it sounds like it should be. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|