Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

ASP conditional javascript

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" -->
ELSE
<!--#include file="hlink_nav.asp" -->
END IF

I'm open to a better solution.
0
webdork
Asked:
webdork
  • 2
1 Solution
 
Jesse BSystem AdministratorCommented:
Using browsercap is probably your best bet.  Some code of what you can use it for is available at http://www.learnasp.com/freebook/asp/bc.aspx
0
 
webdorkAuthor Commented:
Thanks for responding. That does not work in Firefox. Any idea why not?
0
 
Jesse BSystem AdministratorCommented:
It may be that the browsercap.ini file on your webserver is out of date.  You can get more recent versions at http://www.garykeith.com/browsers/downloads.asp
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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