Discussion Locked

DropDown Menu for Frame and Applets

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have to make a DHTML dropdown menu in a top frame(15%) and below the menu, I have a tool bar. Bottom frame is again divided into 2 vertical frames, 30% left frame which is resizable, displaying a Treeview structure with nodes (similar to Windows Explorer) and 70% right frame displaying the contents (JSP pages or Applets). The menu is having submenus and currently there are max. of 4 sublevels. When one of the submenu is selected, the action gets displayed in the bottom 70% right frame. I havedownloaded couple of menus from DHTML sites, however, I none of them takes care of showing the menu in the small frame and cross the frameborder even with z-index. And hence it needs to be displayed in the bottom 70% frame. Even that is fine. But when this frame has an applet displayed, the dropdown menu gets behind the applet and thus it is not visible.
Is there any solution where in my dropdown menu will come on top of an applet and any form controls displayed in my JSP and if possible, themenu has facility of enabling/disabling the submenu at runtime.

1 reply

by ivan kravchenko

I'm afraid there is no reliable cross-browser solution (while it is still possible to try popups for IE 5.5+).
Why not to draw menu with the same applet (using Java capabilities)? The only problem here is the need to call JavaScript from applet. However it can be done by adding MAYSCRIPT attribute to tag and using JSObject class in Java code:

...
import java.applet.*;
import netscape.javascript.*;
...
try
{
JSObject jso_win = JSObject.getWindow(this); JSObject jso_doc = (JSObject)jso_win.getMember( "document" );
jso_win.eval( "alert('Wow!')" );
}
catch(Exception e) {}

This discussion is closed to new replies.