Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I need to scroll to a particular last name in the [!]list of last names[/!]
<table cellspacing=0 cellpadding=0 border=0>
<tr><td class="header">User Management</td></tr>
<tr><td class="table_header">
[COLOR=red]<a href="#A">A</a> | <a href="#B">B</a> | <a href="#C">C</a> | <a href="#D">D</a> | .... <a href="#X">X</a> | <a href="#Y">Y</a> | <a href="#Z">Z</a> [/color]
</td></tr>
<tr><td><input name="last" type="text" size=25 maxlength=12 value="" onkeypress="checkEnter()" ></td></tr>
</table>
<div id="mydiv" style="width:800px;height:1000px;overflow:scroll">
<table cellspacing=0 cellpadding=0 border=0>
<tr height=25><td></td></tr>
<tr><td>
<table cellspacing=0 cellpadding=0 border="0" class="table_frame" width=700>
<tr class="table_header">
<td width=5></td>
<td class="table_header">User ID</td><td width=10></td>
<td class="table_header"></td><td width=10></td>
:
:
:
<%
//iterate through all users after sorting by user name
Iterator it = new SortIterator(allUsers.values().iterator(), new GenericComparator("getUserName", User.class));
Iterator rowIt = new RowIterator();
while (it.hasNext()) {
User user = (User) it.next();
Region defaultUserRegion = (Region) allRegion.get(user.getDefaultRegionID());
:
:
My processes here
:
:
</td><td width=10></td>
<td class="table_cell"><a href="javascript:createEditUser(<%=user.getUserID()%>)" class="std_link"><%=StringUtils.escapeHTML(user.getLogin())%></a></td><td width=10></td>
<td class="table_cell">[COLOR=red]<a name="<%=StringUtils.escapeHTML(user.getUserName()).substring(0,1).toUpperCase()%>"></a> [/color]<%=StringUtils.escapeHTML(user.getUserName())%></td><td width=10></td>
<td class="table_cell" align=center><%=(defaultUserRegion==null)?"":defaultUserRegion.getRegionKey()%></td><td width=10></td>
<td class="table_cell"><%=user.getDefaultStaffDivID()==null?"":user.getDefaultStaffDivID()%></td>
<td width=5></td>
</tr>
function findExcCode(str) {
var reverseOrder = <%=((rev) ? 1 : 0)%>;
str = str.toUpperCase() + <%=((rev) ? '\"ZZZ\"' : '\"\"')%>;
var notFound = true;
a = 0;
for (a = 0; a < codeArray.length - 1; a++) {
if (str.replace("?", ".") <%=((rev) ? ">=" : "<=")%> codeArray[a].replace("?", ".")) {
document.getElementById("excCodes").scrollTop = document.getElementById(codeIDArray[a]).offsetTop;
a = codeArray.length;
notFound = false;
}
}
if (notFound) {
document.getElementById("excCodes").scrollTop = document.getElementById(codeIDArray[a - 1]).offsetTop;
}
}
<input name="last" type="text" size=25 maxlength=12 value="" onkeyup="findExcCode(this.value)"