Java Script Menu with XML menu entries.
802523Jul 13 2008 — edited Aug 31 2008Hi All,
I am not sure if this is a right place for this query. But please help me out!
I am thinking, it would be best to generate the complete Javascript Code for the navigation menu within a Java-Class and call this functionality out of the JSP page.
To make it easier to maintain the menu-structure and all the therefore needed information, we had the idea to store this information in an XML file.
Of course this would be a higher effort at the beginning, but it would also have the advantage that, once a working js-menu can be generated out of the Java-Class, no one would ever have to adjust coding and/or settings directly in the Javascript. New menu entries then simply have to be added to this XML file.
Can you please help me how to go about with this requirement? An example or a link or a sample code would really solve my problem!
Thanks and Rgds,
Pradeep