Current File : /home/obabain/khb_obaba_in/NewFile1.jsp |
<%@ page language="java" import="java.sql.*" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="java.sql.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script>
$('#submit').click(function() {
var checkedValues = $('.invid:checked').map(function() {
return this.value;
}).get();
$.ajax({
url: "tester.jsp",
type: "post",
data: $('.checkboxes:checked').serialize(),
success: function(data) {
$('#response').html(data);
}
});
});
</script>
<link rel="shortcut icon" type="image/x-icon" href="img/ico.ico" />
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/estilos.css" rel="stylesheet">
<script src="http://cdn.ckeditor.com/4.6.1/standard/ckeditor.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Product</title>
</head>
<body>
<form id="myform" action="tester.jsp" method="post">
<table>
<tr><td>
<input type="checkbox" name="invid" value="100236">
<input type="text" name="pname" value="sss" >
<input type="checkbox" name="invid" value="100246">
<input type="text" name="invid" value="aaa" >
</td>
</tr>
</table>
<input id="submit" type="submit" name="submit" value="Submit" onClick="check()" />
</form>
<script>
function check(field){
opener.setSearchRslt(field);
window.close();
}
</script>
</body>
</html>