日期:2014-05-18  浏览次数:20669 次

[求助]浏览器提示javascript error 但是没有提示
<%@   page   contentType= "text/html;   charset=gb2312 "%>
<%   request.setCharacterEncoding( "gb2312 ");%>

<%@   page   import= "java.sql.* "%>
<%@   page   import= "cn.com.SE.database.DataBean "%>

<%@   include   file   =   "../../../../../include/Lang.jsp "%>

<%
String   strID   =   getString(request.getParameter( "ID "));
String   strPageTitle   =   "友情连接 ";
String   strDateTableName   =   "   FriendLink ";
String   strDataName   =   "连接 ";
int   intID   =   0;
if(strID.length()!=0){
intID   =   Integer.parseInt(strID);  
}
%>
<%
int   intMaxPageNumber   =   0;//总页数  
int   intCountNumber   =   0;//总个数
int   intPageSize   =   10;//每页个数  
int   intCurrentPage   =   1;//当前页  


String   strCurrentPage   =   (String)request.getParameter( "currentpage ");
if(strCurrentPage!=null)intCurrentPage   =   Integer.parseInt(strCurrentPage);

String   strWhereSQL   =   "1=1 ";


String   strFilterKey   =   getString(request.getParameter( "filterkey "));


if(strFilterKey.length()> 0)strWhereSQL   =   strWhereSQL   +   "   and   Title   like   '% "   +   strFilterKey   +   "% '   ";

String   strSQL   =   " ";
ResultSet   rs   =   null;
DataBean   databean   =   new   DataBean();
strSQL   =   "   select   count(*)   as   number   from   "   +   strDateTableName   +   "   where   "   +   strWhereSQL;
rs   =   databean.getResultSet(strSQL);
if(rs.next())   intCountNumber   =   rs.getInt( "number ");


if(intCountNumber%intPageSize==0){
intMaxPageNumber   =   intCountNumber   /   intPageSize   ;
}else{
intMaxPageNumber   =   intCountNumber   /   intPageSize   +   1;  
}

int   intLowIndex   =   (intCurrentPage-1)*intPageSize;//当前页的首ID
int   intTopIndex   =   (intCurrentPage)*intPageSize;//当前页的尾ID
%>

<html>
<head>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=gb2312 ">
<title> <%=strPageTitle%> </title>
<link   rel=StyleSheet   href= "../../css/background.css "   TYPE= "text/css "/>  
<script>


//View
function   doView(){
var   strID   =   getFirstChecked();
if(strID== " "){
alert( "请选择你要查看的 <%=strDataName%> ! ");
}   else   {
location.href   =   "view.jsp? ";
return   false;  
}
}
function   doAdd(page){  
if   (document.frmAction.name.value   ==   " "){
alert( "请输入连接名称! ");
document.frmAction.name.focus();
return   false;
}