JSP interface Double-click Query Details, the primary key to submit automatic dot

Source: Internet
Author: User

1:

$ (function () {
Double-click event
$ (' #grid '). DataGrid ({
Ondblclickrow:function (RowIndex, RowData) {
var url = ' <s:url action= ' ecsettingsdetail ' ></s:url> ';
url = Concaturl (Url,{key:rowdata.key});
window.open (URL, "12");
}
});

In Java

You can write key setget.

2:

When you insert a row of data into the database, automatically add the ","
Cause: At new time because disabled requires two input but start two are not disabled type. So two input will be submitted to the intermediate automatic addition, to be divided. The second input, because the value is empty, appears to have added a "," to the rear.

Solve:
Set the second input to disabled when you create a new one
$ (' Input#outkey '). attr ("Disabled", "disabled");

JSP interface Double-click Query Details, the primary key to submit automatic dot

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.