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?

