[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 245
  • Last Modified:

Dynamic popup menu

I checked many links onm dynamic popup menu, however, Im not sure my one need is satisfied by the solutions I see.

I want the dynamic behaviour of the menu items also. I checked some items wherein the menu items data was in a JavaScript Array. However, the menuitems in my case need to come from backend.

Does anyone know any such free implementation?

Regards,
rahulak
0
rahulak
Asked:
rahulak
1 Solution
 
summerianCommented:
What do you mean, "the menuitems need to come from backend" ?

I see two solutions - JavaScript array containing menu definitions can be generated dynamically by server side script/servlet, based on some data you have (from the backend?).

Second solution, is to use AJAX to build/rebuild your menu array - if you need even more dynamic menus :). (Personally, I don't think you really need AJAX)

In both cases, you can use those solutions you have already tried. You must only apply some additional server-side or AJAX logic.
0
 
aescntCommented:
I'd go with CSS dropdown menus if you're comfortable with using CSS positioning. No JS needed, and if your backend can generate HTML, it'll be no problem.

www.alistapart.com/articles/horizdropdowns
www.alistapart.com/articles/dropdowns
0
 
rahulakAuthor Commented:
Thank you for your help.

summetian, I have started POC in whatever you suggested.

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now