javascript to call hidden link

Hi all,

I wanted to use a jenia popup frame with the t:jscookmenu. I tried multiple ways to imbed the popup link inside the menu but none of them worked. Therefore, I decided the best way to go about it would be to add a hidden popup link and use the navigationMenuItem to "click" it. The two pieces of code I tried for this are as follows.

1) <t:navigationMenuItem itemLabel="Delete Note" action="document.getElementById('confirm').click()"/>

2)<t:navigationMenuItem itemLabel="Delete Note" onClick="document.getElementById('confirm').click()"/>

and the popup looks like

<jp:popupFrame id="confirm" center="true" actionOpen="gopop" actionClose="#{myBean.deleteNote}"/>

When I try 1, the jscookmenu disappears. When I try 2, nothing happens when I click the button. Does anyone have any suggestions?

[864 byte] By [jco1323a] at [2007-11-27 8:45:22]
# 1

OK so I found out that navigationMenuItem dont support javascript actions. Therefore I decided to switch my menu from jscook to panelNavigation. However, I am having a hard time getting this to work. I tried following the example shown at irian but the menu is not displaying. Does anyone know somewhere good to learn how to use panelnavigation correctly?

jco1323a at 2007-7-12 20:46:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...