Board Logo

Menu problem with frames
frankhky - 2/18/2006 at 12:25 AM

I am using three frames with the menu in top frame. The second frame is the target of the menu selection, and the thrid frame is the footer. The menu drops down over the second (content) frame. This works fine untill the content frame is filled by making a menu selection. The drop down is no longer displayed.

Many menu selections will be .pdf or .xls files, not html, therefore I can not include the javascript as required. The same problem would happen if I were to link to a page that I do not maintain.

Is there a workaround to my problem?

tigra - 2/18/2006 at 04:16 AM

It's not a problem, it's limitation and not limitation of the menu but rather limitation posed by the browser's capabilities and security settings.

Here is the full list from the product documentation:

- frameset configuration can't be changed without main (top level) page reload
- menu files and initialization must be added to all pages
- all pages must belong to same domain
- Menu will not be visible over frame borders and scrollers so to avoid the gaps borders and scrolling should be turned off for the edges of the frame overlapped by the menu

frankhky - 2/20/2006 at 03:29 PM

I expected that answer but I just wanted it confirmed.

I would like to generate dynamic menus based on the user signed on. This would require a different menu script for each user. I have a stored procedure that builds this script already written, but not being a javascript programmer, I don't understand how you would have the statement:

<script language="JavaScript" src="menu_files/items.js"></script>

use a source file that is a variable based on the user signed on.

Is this possible and if so could you give an example?


FranK H.

tigra - 2/20/2006 at 05:19 PM

Just move whole thing inside the HTML file. With the dynamic items there is no advantage of having the items in external file.



<script language="JavaScript" src="menu_files/items.js"></script>



<script language="JavaScript">
var MENU_ITEMS = [
... generate the items structure here ...

frankhky - 2/20/2006 at 05:49 PM

Thanks for the quick response. Yes, that would be the best solution.

Back to forum: