Database driven menu : onclick menu action or browser.goto redirection

Hi all,
I need to design a database driven menu.
After quering a database table i want to create y menu in a repeat sequence.
Doing this with only browser.goto redirection is quite easy. But in my case, some entries of the menu must redirect to an url and some other must for example, open a modal box via a onclick action.
First difficulty, i can bind the onclick action. Seoncdly how to state and if condition and bind either the onclick action, either the browser.goto.
Maybe i’m wrong in my menu conception and should reconsider this…
Thank’s for your suggestions

Community Page
Last updated: