I am trying to implement for fixed header with scrollable table. We have .xsl file (where actual table gets created) and .jsp file which has all the menus and the search criteria ⦠in order for me to implement fixed header I created style3.css file which has the Scrollwrapper â¦and then added this in JSP file (see below)
================================================== ================
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/qld.tld" prefix="qld" %>
<qld:browserInfo id="binfo"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<script language="javascript" src="<qld:encodeUrl href="/common.
js"/>"></script>
<html>
<head>
<title>Test Point Analysis</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Pragma" content="no-cache">
<% if ( binfo.isBetween( BrowserInfo.TYPE_NETSCAPE, 4.0, 4.99 ) ) {%>
<link rel="StyleSheet" href=<qld:encodeUrl href="/style_ns4.css"/> type="text/css">
<% } else { %>
<link rel="StyleSheet" href=<qld:encodeUrl href="/style.css"/> type="text/css">
<link rel="StyleSheet" href=<qld:encodeUrl href="/style3.css"/> type="text/css">
<% } %>
</head>
================================================== ===================
XSL file
<div class="scrollWrapper">
<table border="1" cellspacing="0" align="center" class="scrollable">
</table>
</div>
================================================== ===================
My question: I do get fixed header with scrollable table when I just use XHTML doctype(jsp file): <!DOCTYPE html PUBLIC "-//w3c//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
But then the first part of the page (search criteria and menu ) gets messed up â¦b.c it doesnât have this <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
so is there any way to distinguish like if/else to let know that use this with only XSL file ? I did try to put both (XHTML and HTML) , but than fixed heading doesnât come up â¦and I also tried putting (XHTML) stuff in .xsl file, still it doesnât work. This project is finished project so I can not change the design â¦
any help would be helpful. I would like to thank you in advance.