日期:2014-05-17 浏览次数:20657 次
<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <script type="text/javascript" src="./js/jquery.js"></script> <script type="text/javascript" src="./js/jquery-1.5.2.min.js"></script> <script type="text/javascript"> $(document).ready( function(){ $("#paylogBtn").click( function() { var param = { vouch_Code:$("#vouch_code").val() }; alert("<%=path%>"); var url = '/order/queryOrderAction' ; $.ajax({ url:url, type:'post', dataType:'json', error : function(){ alert(url); }, success:function(data){ alert("success"); } }); }) }); </script> </head> <body> <form action="queryOrderAction"> <h1>订单查询</h1> <table> <tr> <td height="34" bgcolor="#FFFFFF" align="right">订单号:</td> <td bgcolor="#FFFFFF"> <input id="vouch_code" type="text" size="30"/> <input type="button" id="paylogBtn" value="paylog" style="height:25px;width:70px;text-align:center"/> <input type="button" id="logBtn" value="log" style="height:25px;width:70px;text-align:center"/> </td> <td></td> </tr> <tr> <td height="34" bgcolor="#FFFFFF" align="right">查询结果:</td> <td> <textarea id="ta" wrap="off" rows="20" cols="50" ></textarea> </td> </tr> </table> <br><a href="./page/queryLog.jsp">日志查询--GO</a> </form> </body> </html>