Liferay UI's icon-menu not working properly when included in a separate jsp

Angeline Chan, modified 14 Years ago. New Member Posts: 3 Join Date: 2/21/12 Recent Posts
When I add an icon-menu in a jsp page normally, everything works, but when I place it in say a jsp called 'update.jsp' and load it via ajax into 'manage.jsp', I have a problem of it not working properly, especially in Firefox. Has anyone else faced this problem and found a workaround?

When I click the actions button, nothing appears. I tried creating a javascript handler for the click event, and when I tested it on chrome and firefox, I found that the 2 browsers render the icon menus differently. The dropdown sometimes doesn't even appear on click and when it does in firefox, it appears at some weird location. I found that the rendered jsp content (text in 'update.jsp') also appears larger than the rest of the page in firefox (manage.jsp).

Any help regarding this would be greatly appreciated!
Alex Curtui, modified 13 Years ago. Junior Member Posts: 30 Join Date: 11/8/12 Recent Posts
Hi,

I know that listeners are not set when adding an element with AJAX, but have you found a way to accomplish what you want?

Alex C.