Click to See Complete Forum and Search --> : java applet and frames??


little_lisa
11-01-2003, 05:17 PM
I am using netmenu.class for a drop down menu on my site. The problem is I have the menu in 1 frame to the left and all pages are loaded in a second frame to the right.

The java works fine, however it is set to link to other pages.
How do I set the menu to open the link the the frame to the right rather than goto another page???

This is where the problem is:

<param name="u0" value="mainW|http://javaboutique.com/">

This needs to be a framed link, ive tried <A HREF......TARGET Right etc but it doesnt work


Code im using:

<applet code="NetMenu.class"
align="baseline"
archive="NetMenu.jar"
width="230"
height="150">
<param name="bgColor" value="000000">
<param name="topLevelColor" value="005A94">
<param name="secondLevelColor" value="85798C">
<param name="strColor" value="FFFFFF">
<param name="strHiColor" value="F0C070">
<param name="itemHeight" value="20">
<param name="font" value="Times New Roman">
<param name="menu0"
value="JavaBoutique|*|Home,Applets,Resources,|u0,u1,u2">
<param name="u0" value="mainW|http://javaboutique.com/">
<param name="u1" value="mainW|http://javaboutique.com/applet_index/">
<param name="u2" value="mainW|http://javaboutique.com/resources/">
<param name="menu1"
value="Applet Categories|*|,Text Effects,Navigation,Audio Effects|u4,u5,u6,u7">
<param name="u4" value="mainW|http://javaboutique.com/cathome.html">
<param name="u5" value="mainW|http://javaboutique.com/text/">
<param name="u6" value="mainW|http://javaboutique.com/navigation/">
<param name="u7" value="mainW|http://javaboutique.com/audio/">
<param name="menu2" value="Java Resources|*|News,Tutorials|u8,u9">
<param name="u8" value="mainW|http://javaboutique.com/news/">
<param name="u9" value="mainW|http://javaboutique.internet.com/tutorials/">
</applet>

Any help would be great thanx
:confused: :confused:

Khalid Ali
11-01-2003, 05:31 PM
if you can contact the applet writer ,they can make changes in applet to target the link resource to a taget rather opening in currentwindow or a new windowin most cases.

The only think that comes to mind is
use of base element, somethin like below

<base href="" target="frameName">

put the above tag in th ehead section your page right after the title tags.I am hoping this will work( it will go in the page where you have your menu applet)

little_lisa
11-01-2003, 05:40 PM
Hiya,

Thanx for ur help, do i need to add anything else to the base tag?
The page freezes now and does not link.

Cheers

Khalid Ali
11-01-2003, 06:08 PM
It was just a guess....aparently it did not work..:(