Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 28th, 2005, 3:34 AM   #1
loztboy99
Newbie
 
Join Date: Jan 2005
Posts: 12
Rep Power: 0 loztboy99 is on a distinguished road
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>
loztboy99 is offline   Reply With Quote
Old Mar 31st, 2005, 10:35 AM   #2
mackenga
Professional Programmer
 
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4 mackenga is on a distinguished road
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.
mackenga is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:24 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC