DHTML or DB Menu

Posted on 2006-06-05
Last Modified: 2010-04-01
hi experts,

I'm building site which has left menu and I'm not using frames rather simple <JSP include> in each file which contains left menu.

I need your views to know if it worth to do menu in DHTML script or DB fetch Menu. Whats advantage and dis-advan. over each other.
Keep in mind that  Menu table are in DB which is used in Admin. Pages. (Other then client)

Question by:princehyderabad
    LVL 16

    Accepted Solution


    I assume that the DHTML script is just the static menu where it is basically a HTML file. Please let me know if I am wrong.

    You should think it in a very high point of view. If the menu is likely to be changed a lot in the future, and you need to manage many roles to view the menu such as if the user is admin, he can see menu X,Y and Z but if he is not admin, he can only see X and Y. Then I think that you should go to DB Fetch Menu but bear in mind that this will be very complicated.

    However, if your application is not complex enough and the menu is less likely to be modified, just go for DHTML Script (JavaScript) - static menu in HTML and that should be sufficient.

    You need to look at the deadline of your project as well. Go for DHTML menu if you have tight deadline as it is much easier.


    Author Comment

    No there would be no security restriction on any part of menu. As its education institute site. Its open for all to view. There is possibility menu may change but again I can change one include jsp file and it will effect all. What I was trying to find it fast download ? and server complication time if <include JSP menu> ?
    Even I thought to give shot with DHTML or just a basic table display.

    LVL 16

    Expert Comment

    It would definitely be faster if it is DHTML. However as the server nowadays are very powerful, they should not have much differences.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Suggested Solutions

    Title # Comments Views Activity
    Export JSON response data to Excel in IE9 3 59
    build fail in maven project 11 158
    oracle fusion vs MQ 2 73
    maven project jars 7 39
    PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now