Button | flip | show
The form query displays pages that are not available, prompting the object not to support this property or method, and remember that the query button's name value cannot be submit. Where the original code is as follows: We should instead:, or it will appear the form query display is the next step, will continue to page down, but click on a page, the next page, etc. are not available. This article describes the way I solve the problem.
Remember that the query button's name value cannot be submit. Where the original code is as follows:
<input name= "Submit" type= "Submit" class= "button" style= "width:80px" value= "Enquiry" >
We should instead:
<input name= "Submit1" type= "Submit" class= "button" style= "width:80px" value= "Query", otherwise the form query display is the next step, will continue to page down, But click on a page, the next page, etc. are not available.
The original code is as follows:
<%@ page contenttype= "text/html; CHARSET=GBK "language=" java "import=" java.sql.* "errorpage=" "%>"
<%@ page import = "pub.*"%>
<%@ page import= "leader.*"%>
<%
int x=check.checkpage (Request, "Leader_employee_search");
String userid= (String) session.getattribute ("userid");
Leaderbean leader=New Leaderbean ();
String error= "";
if (x==1) {
Error= "<script>alert (' You have lost the line, need to land again! '); Top.location.href= '.. /login.jsp ' </script> ';
}Else{
if (x==2) {
Error= "<script>alert (' You have no right to enter the page! '); History.back ();</script> ";
}
if (Leader.checkcompetencecorp (userid) ==0) {
Error= "<script>alert (' You have no right to enter the page! '); History.back ();</script> ";
}
}
%>
<%=Error%>
<%
if (x!=0) {
return;
}
%>
<meta http-equiv= "Content-type" content= "text/html; CHARSET=GBK ">
<title> enquiries about its control staff information </title>
<link href= ". /css/putong.css "type=" Text/css "rel=" stylesheet ">
<script>
var req;
var number= ' all '; , drop down box to show all Department & Department
Window.onload=function ()
{
}
function Change_select (flag)
{
var flag1=flag;//is to solve the problem after onchange () value to change &onload () (query commit) value to save
alert (FLAG1);
var zhi = document.getElementById (' Corp '). Value;
var Hidden_depart=document.all.hiddenkeydepart.value;
var Hidden_userid=document.all.hiddenuserid.value;
var url = ".. /selectcropdepartleader?state= "+number+" &keydepart= "+hidden_depart+" &id= "+ Escape (Zhi) +" &flag= "+ flag1+ "&leaderid=" +hidden_userid;
alert (URL);
if (window. XMLHttpRequest) {
req = new XMLHttpRequest ();
}else if (window. ActiveXObject) {
req = new ActiveXObject ("Microsoft.XMLHTTP");
}
if (req) {
Req.open ("Get", url, True);
Req.onreadystatechange = callback;
Req.send (NULL);
}
}
function callback () {
if (req.readystate = = 4) {