Novell Home

eGuide StyleSheet Modifications for FireFox/Mozilla/Safari

Novell Cool Solutions: Tip
By Andrew Miller

Digg This - Slashdot This

Posted: 30 Nov 2005
 

We've recently started using eGuide. While the default theme looks quite nice in Internet Explorer, it doesn't display correctly in Firefox, Mozilla, or Safari. Specifically, the "Search" & "+" buttons on the main search page look odd when you mouse over them. Also, there's a similar behavior by the "Login" & "Reset" buttons on the login page, as well as other buttons in the admin interface.

Fixing this required modifying 6 files. The changes basically amounted to removing a couple lines in each file that try to check if you are running a non-IE browser and give you some problematic CSS if so. The file locations are:

  • sys:/tomcat/4/webapps/eGuide/look/default/browser/EGCustom.js
  • sys:/tomcat/4/webapps/eGuide/WEB-INF/templates/xsl/adminutil/browser/adminattrproperties.xsl
  • sys:/tomcat/4/webapps/eGuide/WEB-INF/templates/xsl/adminutil/browser/adminconfigdetail.xsl
  • sys:/tomcat/4/webapps/eGuide/WEB-INF/templates/xsl/adminutil/browser/adminsslcertificateview.xsl
  • sys:/tomcat/4/webapps/eGuide/WEB-INF/templates/xsl/adminutil/browser/adminUtils.xsl
  • sys:/tomcat/4/webapps/eGuide/WEB-INF/templates/xsl/default/browser/eGuideUtils.xsl

All 6 modified files are in this zip file. Simply copy them into the correct locations as noted above, restart java (on Netware it's "java -exit" and then "tomcat4") and see how the pages look in FireFox/Mozilla/Safari.

If you'd like to check further, grep through the files for the "NSN" string to find other places where eGuide does some browser sniffing. Using the Web Developer Firefox extension is also very helpful (gives you the ability to modify/troubleshoot CSS on the fly).

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell