ASP conditional javascript

Posted on 2006-03-20
Last Modified: 2010-04-17
I like the dhtml drop down navigation menus... but of course it's conditional on javascript being present.

I usually put the nav in an include file. I'm looking for a way a reliable way to substitute the include file when js not enabled.

IF JS present THEN
<!--#include file="dhtml_nav.asp" -->
<!--#include file="hlink_nav.asp" -->

I'm open to a better solution.
Question by:webdork
    LVL 6

    Expert Comment

    Using browsercap is probably your best bet.  Some code of what you can use it for is available at

    Author Comment

    Thanks for responding. That does not work in Firefox. Any idea why not?
    LVL 6

    Accepted Solution

    It may be that the browsercap.ini file on your webserver is out of date.  You can get more recent versions at

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    sum13 challenge 24 68
    FizzBuzz challenge 9 65
    My 2003 Land Rover discovery 2 key for code for car alarm 7 55
    countX 22 50
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    731 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

    17 Experts available now in Live!

    Get 1:1 Help Now