The form query displays pages that are not available, and the name value of the query button cannot be submit

Source: Internet
Author: User
Tags continue query string window
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) {



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.