解决方案 »

  1.   

    是不是url 路径的问题。
    /MyStoraneManage/stockIn_ajaxLoad.action加上整个路径试试看,
    浏览器直接敲 url 地址看是否能够到后台?
    浏览器工具调试是否有错误信息?
      

  2.   

    没有错误信息,但会调用action的另外一个方法,调用的效果是提交整个表单到action
    路径是没错
      

  3.   

    我直接输入url:http://localhost:8080/MyStoraneManage/stockIn_ajaxLoad.action?id=3后出现
    Struts Problem ReportStruts has detected an unhandled exception:Messages:
    org.apache.commons.lang.exception.NestableRuntimeException
    org/apache/commons/lang/exception/NestableRuntimeException
    File: org/apache/catalina/loader/WebappClassLoader.java
    Line number: 1,645
      

  4.   

    ajax里各个参数后面是用逗号分隔的吧 不是分号
    Quote: 引用 楼主 lxl_family 的回复:

    function clickbtnGet(){
         alert("参数:");
         $.ajax({
         url:"/MyStoraneManage/stockIn_ajaxLoad.action",
         type:"POST",
         data:{id:$("#in_id").val()},
         dataType:"json",
         success:function(data){alert(data)}
         });
              
         }
      

  5.   

    1.首先确认一下alert("参数:");如果执行了,说明点击事件响应了。
    2.然后在ajax跳转的url中的action里下断点,如果能断下来,说明ajax提交请求没问题。
    3.接下来就要看你后台action的处理逻辑了。
      

  6.   

    这个按钮是在表格里,表格列出的是数据库的数据
    alert没有执行,直接提交表单的action=“stockIn_page.action”,调用action的page()列出数据库数据了,url没有写错,就是不执行onclick()
      

  7.   

    这个按钮是在表格里,表格列出的是数据库的数据
    alert没有执行,直接提交表单的action=“stockIn_page.action”,调用action的page()列出数据库数据了,url没有写错,就是不执行onclick()
    那这个问题很怪异,但是感觉不是个大问题呢,可能还是笔误
      

  8.   

    已经修改了,但还是不行
    这是jsp,应该没问题吧
    <form action="stockIn_page.action" method="post" name="pgform">
     
    <table>
    <tr>
     
    <td><input type="text" name="stockin.inid" value="${stockin.inid}" size="5" /></td>
    <th>商品编号</th>
    <td><input type="text" name="stockin.gepc" value="${stockin.gepc}" size="10"/></td>
    <th>客户编号</th>
    <td><input type="text" name="stockin.guestid" value="${stockin.guestid}" size="10"/></td>
    <td> <input class="btn btn-red" type="submit" onclick="submitform()"></td>
    <td> <input class="btn btn-green" type="reset" onclick="javascript:document.pgform.reset()"></td>
    </tr>

    </table>
     
    </span>
    <hr/>
     <table class="stylized full" id="t" >
    <thead>
    <tr>
        <th width="3%">
        <input type="checkbox" name="checkbox" id="checkbox"  onclick="selectAllOrNo();"/></th>
    <th>订单编号</th>
    <th>商品编号</th>
    <th>商品名称</th>
    <th>经手人</th>
    <th>客户</th>
    <th>数量</th>
    <th>是否处理</th>
    <th>其他操作</th>
    </tr>
    </thead>
    <c:forEach items="${page.data}" var="stockins" varStatus="c">
     
    <tbody>
    <tr onmouseover="this.style.backgroundColor='#FFF68F'" onmouseout="this.style.backgroundColor='#FAFAFA'" >
       <td width="3%"><input type="checkbox" name="ck" id="ck" value="${stockins.id}"/></td> 
    <td><a href="/MyStoraneManage/stockIn_showStockInItemsByinid.action?inid=${stockins.inid}">${stockins.inid}</a></td>
    <input name="in_id" id="in_id" value="${stockins.id}" readonly="readonly" type="hidden"/>
    <td>${stockins.gepc}</td>
    <td>${stockins.gname}</td>
    <td>${stockins.uid}</td>
    <td>${stockins.guestid}</td>
    <td>${stockins.sumin}</td>
    <td>
    <c:if test="${stockins.flag==0}">未处理</c:if>
    <c:if test="${stockins.flag==1}">已处理</c:if>
    </td>
    <td>
    <c:if test="${stockins.flag==0}">
    <a href="/MyStoraneManage/stockIn_delStockInId.action?id=${stockins.id}" class="btn"  onclick="javascript:return alert_del()"><span class="icon icon-cancel">&nbsp;</span>删除</a>
    <a href="/MyStoraneManage/stockIn_getOneStockIn.action?id=${stockins.id}" class="btn"><span class="icon icon-add">&nbsp;</span>编辑</a>
    </c:if>
    <c:if test="${stockins.flag==1}">
        <button class="btn"  onclick="clickbtnGet();"><span class="icon icon-ok">&nbsp;</span>详情</button>
     </c:if>
    </td>
    </tr>
                     </c:forEach>  
     
    </tbody>
    <tfoot>
    <tr>
    <td colspan="9">

    <div class="pager"> 
    共<font color="blue">${page.totalcount}</font>条记录 每页<input value="${page.pagesize}" size="2" name="pSize" />条
    第<font color="blue">${page.currentPage}</font>页/共<font color="blue">${page.totalPage}</font>页
    <a href="stockIn_page.action?pnum=1&pSize=${page.pagesize}&stockin.inid=${stockin.inid}&stockin.gepc=${stockin.gepc}&stockin.guestid=${stockin.guestid}">第一页</a>
    <a href="stockIn_page.action?pnum=${page.prePage}&pSize=${page.pagesize}&stockin.inid=${stockin.inid}&stockin.gepc=${stockin.gepc}&stockin.guestid=${stockin.guestid}"  >上一页</a>
    <a href="stockIn_page.action?pnum=${page.nextPage}&pSize=${page.pagesize}&stockin.inid=${stockin.inid}&stockin.gepc=${stockin.gepc}&stockin.guestid=${stockin.guestid}"  >下一页</a>
                <a href="stockIn_page.action?pnum=${page.totalPage}&pSize=${page.pagesize}&stockin.inid=${stockin.inid}&stockin.gepc=${stockin.gepc}&stockin.guestid=${stockin.guestid}"  >最后一页</a>
    转到<input name="pnum" value="${page.currentPage}" id="pnum" size="2" />
     
    <button  onclick="pgsel();" type="submit">GO</button>
    </div>
    </form>
    </td>
    </tr>
    </tfoot>
    </table>
      

  9.   

    木有错误号,一堆类似的错误:
    4:08:59,095 ERROR ParametersInterceptor:38 - Developer Notification (set struts.devMode to false to disable this message):
    Unexpected Exception caught setting 'stockin.gepc' on 'class com.lxl.storage.action.StockInAction: Error setting expression 'stockin.gepc' with value '[Ljava.lang.String;@1ec265c'
    Error setting expression 'stockin.gepc' with value '[Ljava.lang.String;@1ec265c' - Class: ognl.OgnlRuntime
    File: OgnlRuntime.java
    Method: setProperty
      

  10.   

    这个按钮是在表格里,表格列出的是数据库的数据
    alert没有执行,直接提交表单的action=“stockIn_page.action”,调用action的page()列出数据库数据了,url没有写错,就是不执行onclick()
    那这个问题很怪异,但是感觉不是个大问题呢,可能还是笔误
    笔误是不太可能啦现在在调用onclick()之前报以下类似错误
     WARN OgnlValueStack:64 - Error setting expression 'stockin.guestid' with value '[Ljava.lang.String;@ca671a'
    ognl.OgnlException: target is null for setProperty(null, "guestid", [Ljava.lang.String;@ca671a)
    at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2326)但我要请求的action只有用到id作为参数而已 
      

  11.   

    你连 alert("参数:");都没有执行
    只能说明2点,第一 根本没找到这个方法;第二 或者说在这执行之前被别的js或什么先执行了,可能是根据ID或什么自动执行的js抢先执行了。
      

  12.   

    你的ajax 写的有没有问题啊?
    直接   alert("参数:");  其他的先注释掉。
            
      

  13.   

    function clickbtnGet(id){
         alert("参数:"+id);
         //$.ajax({
         //url:"/MyStoraneManage/stockIn_ajaxLoad.action",
         //type:"POST",
         //data:{id:id},
         //dataType:"json",
         //success:function(data){alert(data)}
         //});
              alert("发送请求);
              
         }
    改成这样了,还是不行,警告框也弹不出来
    快被搞晕了
      

  14.   

    最后生成的html 贴出来看看。
      

  15.   

    最后生成的html 贴出来看看什么意思?是贴这个函数所在的网页吗
      

  16.   

    function clickbtnGet(id){
         alert("参数:"+id);
         //$.ajax({
         //url:"/MyStoraneManage/stockIn_ajaxLoad.action",
         //type:"POST",
         //data:{id:id},
         //dataType:"json",
         //success:function(data){alert(data)}
         //});
              alert("发送请求);
              
         }
    改成这样了,还是不行,警告框也弹不出来
    快被搞晕了
    把这个onclick 代码也贴出来,
      

  17.   

    function clickbtnGet(id){
         alert("参数:"+id);
         //$.ajax({
         //url:"/MyStoraneManage/stockIn_ajaxLoad.action",
         //type:"POST",
         //data:{id:id},
         //dataType:"json",
         //success:function(data){alert(data)}
         //});
              alert("发送请求);
              
         }
    改成这样了,还是不行,警告框也弹不出来
    快被搞晕了
    把这个onclick 代码也贴出来,
    我把jsp贴出来,你们帮我看看吧
    <script type="text/javascript">
    $(document).ready(function(){
    Administry.setup();
    $("#tabs, #tabs2").tabs();

    /* progress bar animations - setting initial values */
    Administry.progress("#progress1", 10, 100);
    Administry.progress("#progress2", 25, 100);
    Administry.progress("#progress3", 50, 100);

    /* <video> support for older browsers through flash player embedding */
    Administry.videoSupport('video-flash', 'video/video.f4v', 320, 240);

    });
      function clickbtn(){
         alert("参数:");
         $.ajax({
         url:"/MyStoraneManage/stockIn_ajaxLoad.action",
         type:"POST",
         data:{id:$('#ck').attr('value')},
         dataType:"json",
         success:function(data){alert(data)}
         });
              alert("发送请求);
              
         }
        
    function alert_del() {
    var msg = "您真的确定要删除吗?\n\n请确认!";
    if (confirm(msg)==true){
    return true;
    }
    else return false;
    }
    function dictsel(){
    window.location.href="/MyStoraneManage/stockIn_page.action";
    }

    function pgsel(){
    document.pgform.submit();
    }
     
     
     function submitform()
     {
      document.pgform.action="/MyStoraneManage/stockIn_page.action";
      document.pgform.submit();
     }
     
     
     //批量删除
         function delchecked(){
             //函数调用,获取选中id,所组成的字符串
         ids = getSelectCheckboxValues();
         if(ids !=null && ids != ""){
         if(confirm("删除的数据将无法恢复,确认删除?")) {
         window.location.href='stockIn_delChecked.action?ids='+ids;
         }
         }else{
         alert("请至少选择一行!");
         }
         }
         //选中id,组成的字符串
         function getSelectCheckboxValues(){
         //获取名称为ck的checkbox,形成数组
         var objArray = document.getElementsByName('ck');
         //定义返回结果
         var result ='';
         for (var i=0;i<objArray.length;i++){
             //如果名称为ck的checkbox被选中了,就进行id拼接
         if (objArray[i].checked==true){
          result += objArray[i].value+",";
          }
         }
         //返回拼接结果,之所以截取到 result.length-1,因为result结果最后一个字符是,
         return result.substring(0, result.length-1);
         }
        
        
         //全选
         function selAll(){
         for(i=0;i<document.pgform.ck.length;i++){
         if(!document.pgform.ck[i].checked){
         document.pgform.ck[i].checked=true;
          }
         }
         }
        
         //取消
         function noSelAll(){
         for(i=0;i<document.pgform.ck.length;i++){
         if(document.pgform.ck[i].checked){
         document.pgform.ck[i].checked=false;
         }
         }
         }
        
         //checkbox选择全部,或不选择
         function selectAllOrNo(){
         n=n+1; 
         if(n%2==0){
         selAll();
         }else{
         noSelAll();
         }
         }
        
         //反选
         function selOther(){
         for(i=0;i<document.pgform.ck.length;i++){
         if(document.pgform.ck[i].checked){
         document.pgform.ck[i].checked=false;
         }else{
         document.pgform.ck[i].checked=true;
         }
         }
         }
        
       
     
    </script>
     
     </style>
    </head>
    <body>
     
    <div id="page">
    <!-- Wrapper -->
    <div class="wrapper">
    <!-- Left column/section -->
    <section class="column width6 first">
    <h3>所有入库订单列表</h3>
    <span class="subtitle">
     <form action="stockIn_page.action" method="post" name="pgform"> 
     
    <table>
    <tr>
    <th>订单编号</th>
    <td><input type="text" name="stockin.inid" value="${stockin.inid}" size="5" /></td>
    <th>商品编号</th>
    <td><input type="text" name="stockin.gepc" value="${stockin.gepc}" size="10"/></td>
    <th>客户编号</th>
    <td><input type="text" name="stockin.guestid" value="${stockin.guestid}" size="10"/></td>
    <td> <input class="btn btn-red" type="submit" onclick="submitform()"></td>
    <td> <input class="btn btn-green" type="reset" onclick="javascript:document.pgform.reset()"></td>
    </tr>

    </table>
     
    </span>
    <hr/>
     <table class="stylized full" id="t" >
    <thead>
    <tr>
        <th width="3%">
        <input type="checkbox" name="checkbox" id="checkbox"  onclick="selectAllOrNo();"/></th>
    <th>订单编号</th>
    <th>商品编号</th>
    <th>商品名称</th>
    <th>经手人</th>
    <th>客户</th>
    <th>数量</th>
    <th>是否处理</th>
    <th>其他操作</th>
    </tr>
    </thead>
    <c:forEach items="${page.data}" var="stockins" varStatus="c">
     
    <tbody>
    <tr onmouseover="this.style.backgroundColor='#FFF68F'" onmouseout="this.style.backgroundColor='#FAFAFA'" >
       <td width="3%"><input type="checkbox" name="ck" id="ck" value="${stockins.id}"/></td> 
    <td><a href="/MyStoraneManage/stockIn_showStockInItemsByinid.action?inid=${stockins.inid}">${stockins.inid}</a></td>
    <td>${stockins.gepc}</td>
    <td>${stockins.gname}</td>
    <td>${stockins.uid}</td>
    <td>${stockins.guestid}</td>
    <td>${stockins.sumin}</td>
    <td>
    <c:if test="${stockins.flag==0}">未处理</c:if>
    <c:if test="${stockins.flag==1}">已处理</c:if>
    </td>
    <td>
    <c:if test="${stockins.flag==0}">
    <a href="/MyStoraneManage/stockIn_delStockInId.action?id=${stockins.id}" class="btn"  onclick="javascript:return alert_del()"><span class="icon icon-cancel">&nbsp;</span>删除</a>
    <a href="/MyStoraneManage/stockIn_getOneStockIn.action?id=${stockins.id}" class="btn"><span class="icon icon-add">&nbsp;</span>编辑</a>
    </c:if>
    <c:if test="${stockins.flag==1}">
      <button class="btn"  onclick="clickbtn();"><span class="icon icon-ok">&nbsp;</span>详情</button> 
     </c:if>
    </td>
    </tr>
                     </c:forEach>  
     
    </tbody>
    <tfoot>
    <tr>
    <td colspan="9">

    <div class="pager"> 
    共<font color="blue">${page.totalcount}</font>条记录 每页<input value="${page.pagesize}" size="2" name="pSize" />条
    第<font color="blue">${page.currentPage}</font>页/共<font color="blue">${page.totalPage}</font>页
    <a href="stockIn_page.action?pnum=1&pSize=${page.pagesize}&stockin.inid=${stockin.inid}&stockin.gepc=${stockin.gepc}&stockin.guestid=${stockin.guestid}">第一页</a>
    <a href="stockIn_page.action?pnum=${page.prePage}&pSize=${page.pagesize}&stockin.inid=${stockin.inid}&stockin.gepc=${stockin.gepc}&stockin.guestid=${stockin.guestid}"  >上一页</a>
    <a href="stockIn_page.action?pnum=${page.nextPage}&pSize=${page.pagesize}&stockin.inid=${stockin.inid}&stockin.gepc=${stockin.gepc}&stockin.guestid=${stockin.guestid}"  >下一页</a>
                <a href="stockIn_page.action?pnum=${page.totalPage}&pSize=${page.pagesize}&stockin.inid=${stockin.inid}&stockin.gepc=${stockin.gepc}&stockin.guestid=${stockin.guestid}"  >最后一页</a>
    转到<input name="pnum" value="${page.currentPage}" id="pnum" size="2" />
     
    <button  onclick="pgsel();" type="submit">GO</button>
    </div>
    </form>
    </td>
    </tr>
    </tfoot>
    </table>
    <span class="subtitle"> 
    <input class="btn btn-red" type="button" value="全选" onclick="selAll();"/>
    <input class="btn btn-green" type="button" value="反选" onclick="selOther();"/>
    <input class="btn btn-blue" type="button" value="取消" onclick="noSelAll();"/>
    <input class="btn btn-red" type="button" value="删除" onclick="delchecked();"/>
    <input class="btn btn-green" type="button" value="增加" onclick="selOther();"/>

    </span>
    <hr/>

     
      

  18.   

    可能是这个原因,但找不到哪个会抢先执行1:看看浏览器是否有js脚本错误。
    2:还原最简化,改成最简单的<button onclick="clickbtnGet()">  看能不能执行alert。
      

  19.   

    function clickbtnGet(id){
         alert("参数:"+id);
         //$.ajax({
         //url:"/MyStoraneManage/stockIn_ajaxLoad.action",
         //type:"POST",
         //data:{id:id},
         //dataType:"json",
         //success:function(data){alert(data)}
         //});
              alert("发送请求);
              
         }
    改成这样了,还是不行,警告框也弹不出来
    快被搞晕了
    把这个onclick 代码也贴出来,
    我把jsp贴出来,你们帮我看看吧
    <script type="text/javascript">
    $(document).ready(function(){
    Administry.setup();
    $("#tabs, #tabs2").tabs();

    /* progress bar animations - setting initial values */
    Administry.progress("#progress1", 10, 100);
    Administry.progress("#progress2", 25, 100);
    Administry.progress("#progress3", 50, 100);

    /* <video> support for older browsers through flash player embedding */
    Administry.videoSupport('video-flash', 'video/video.f4v', 320, 240);

    });
      function clickbtn(){
         alert("参数:");
         $.ajax({
         url:"/MyStoraneManage/stockIn_ajaxLoad.action",
         type:"POST",
         data:{id:$('#ck').attr('value')},
         dataType:"json",
         success:function(data){alert(data)}
         });
              alert("发送请求);
              
         }
        
    function alert_del() {
    var msg = "您真的确定要删除吗?\n\n请确认!";
    if (confirm(msg)==true){
    return true;
    }
    else return false;
    }
    function dictsel(){
    window.location.href="/MyStoraneManage/stockIn_page.action";
    }

    function pgsel(){
    document.pgform.submit();
    }
     
     
     function submitform()
     {
      document.pgform.action="/MyStoraneManage/stockIn_page.action";
      document.pgform.submit();
     }
     
     
     //批量删除
         function delchecked(){
             //函数调用,获取选中id,所组成的字符串
         ids = getSelectCheckboxValues();
         if(ids !=null && ids != ""){
         if(confirm("删除的数据将无法恢复,确认删除?")) {
         window.location.href='stockIn_delChecked.action?ids='+ids;
         }
         }else{
         alert("请至少选择一行!");
         }
         }
         //选中id,组成的字符串
         function getSelectCheckboxValues(){
         //获取名称为ck的checkbox,形成数组
         var objArray = document.getElementsByName('ck');
         //定义返回结果
         var result ='';
         for (var i=0;i<objArray.length;i++){
             //如果名称为ck的checkbox被选中了,就进行id拼接
         if (objArray[i].checked==true){
          result += objArray[i].value+",";
          }
         }
         //返回拼接结果,之所以截取到 result.length-1,因为result结果最后一个字符是,
         return result.substring(0, result.length-1);
         }
        
        
         //全选
         function selAll(){
         for(i=0;i<document.pgform.ck.length;i++){
         if(!document.pgform.ck[i].checked){
         document.pgform.ck[i].checked=true;
          }
         }
         }
        
         //取消
         function noSelAll(){
         for(i=0;i<document.pgform.ck.length;i++){
         if(document.pgform.ck[i].checked){
         document.pgform.ck[i].checked=false;
         }
         }
         }
        
         //checkbox选择全部,或不选择
         function selectAllOrNo(){
         n=n+1; 
         if(n%2==0){
         selAll();
         }else{
         noSelAll();
         }
         }
        
         //反选
         function selOther(){
         for(i=0;i<document.pgform.ck.length;i++){
         if(document.pgform.ck[i].checked){
         document.pgform.ck[i].checked=false;
         }else{
         document.pgform.ck[i].checked=true;
         }
         }
         }
        
       
     
    </script>
     
     </style>
    </head>
    <body>
     
    <div id="page">
    <!-- Wrapper -->
    <div class="wrapper">
    <!-- Left column/section -->
    <section class="column width6 first">
    <h3>所有入库订单列表</h3>
    <span class="subtitle">
     <form action="stockIn_page.action" method="post" name="pgform"> 
     
    <table>
    <tr>
    <th>订单编号</th>
    <td><input type="text" name="stockin.inid" value="${stockin.inid}" size="5" /></td>
    <th>商品编号</th>
    <td><input type="text" name="stockin.gepc" value="${stockin.gepc}" size="10"/></td>
    <th>客户编号</th>
    <td><input type="text" name="stockin.guestid" value="${stockin.guestid}" size="10"/></td>
    <td> <input class="btn btn-red" type="submit" onclick="submitform()"></td>
    <td> <input class="btn btn-green" type="reset" onclick="javascript:document.pgform.reset()"></td>
    </tr>

    </table>
     
    </span>
    <hr/>
     <table class="stylized full" id="t" >
    <thead>
    <tr>
        <th width="3%">
        <input type="checkbox" name="checkbox" id="checkbox"  onclick="selectAllOrNo();"/></th>
    <th>订单编号</th>
    <th>商品编号</th>
    <th>商品名称</th>
    <th>经手人</th>
    <th>客户</th>
    <th>数量</th>
    <th>是否处理</th>
    <th>其他操作</th>
    </tr>
    </thead>
    <c:forEach items="${page.data}" var="stockins" varStatus="c">
     
    <tbody>
    <tr onmouseover="this.style.backgroundColor='#FFF68F'" onmouseout="this.style.backgroundColor='#FAFAFA'" >
       <td width="3%"><input type="checkbox" name="ck" id="ck" value="${stockins.id}"/></td> 
    <td><a href="/MyStoraneManage/stockIn_showStockInItemsByinid.action?inid=${stockins.inid}">${stockins.inid}</a></td>
    <td>${stockins.gepc}</td>
    <td>${stockins.gname}</td>
    <td>${stockins.uid}</td>
    <td>${stockins.guestid}</td>
    <td>${stockins.sumin}</td>
    <td>
    <c:if test="${stockins.flag==0}">未处理</c:if>
    <c:if test="${stockins.flag==1}">已处理</c:if>
    </td>
    <td>
    <c:if test="${stockins.flag==0}">
    <a href="/MyStoraneManage/stockIn_delStockInId.action?id=${stockins.id}" class="btn"  onclick="javascript:return alert_del()"><span class="icon icon-cancel">&nbsp;</span>删除</a>
    <a href="/MyStoraneManage/stockIn_getOneStockIn.action?id=${stockins.id}" class="btn"><span class="icon icon-add">&nbsp;</span>编辑</a>
    </c:if>
    <c:if test="${stockins.flag==1}">
      <button class="btn"  onclick="clickbtn();"><span class="icon icon-ok">&nbsp;</span>详情</button> 
     </c:if>
    </td>
    </tr>
                     </c:forEach>  
     
    </tbody>
    <tfoot>
    <tr>
    <td colspan="9">

    <div class="pager"> 
    共<font color="blue">${page.totalcount}</font>条记录 每页<input value="${page.pagesize}" size="2" name="pSize" />条
    第<font color="blue">${page.currentPage}</font>页/共<font color="blue">${page.totalPage}</font>页
    <a href="stockIn_page.action?pnum=1&pSize=${page.pagesize}&stockin.inid=${stockin.inid}&stockin.gepc=${stockin.gepc}&stockin.guestid=${stockin.guestid}">第一页</a>
    <a href="stockIn_page.action?pnum=${page.prePage}&pSize=${page.pagesize}&stockin.inid=${stockin.inid}&stockin.gepc=${stockin.gepc}&stockin.guestid=${stockin.guestid}"  >上一页</a>
    <a href="stockIn_page.action?pnum=${page.nextPage}&pSize=${page.pagesize}&stockin.inid=${stockin.inid}&stockin.gepc=${stockin.gepc}&stockin.guestid=${stockin.guestid}"  >下一页</a>
                <a href="stockIn_page.action?pnum=${page.totalPage}&pSize=${page.pagesize}&stockin.inid=${stockin.inid}&stockin.gepc=${stockin.gepc}&stockin.guestid=${stockin.guestid}"  >最后一页</a>
    转到<input name="pnum" value="${page.currentPage}" id="pnum" size="2" />
     
    <button  onclick="pgsel();" type="submit">GO</button>
    </div>
    </form>
    </td>
    </tr>
    </tfoot>
    </table>
    <span class="subtitle"> 
    <input class="btn btn-red" type="button" value="全选" onclick="selAll();"/>
    <input class="btn btn-green" type="button" value="反选" onclick="selOther();"/>
    <input class="btn btn-blue" type="button" value="取消" onclick="noSelAll();"/>
    <input class="btn btn-red" type="button" value="删除" onclick="delchecked();"/>
    <input class="btn btn-green" type="button" value="增加" onclick="selOther();"/>

    </span>
    <hr/>

     
    测试最简的可以 , 
      

  20.   

    最简的可以,说明 class有别的js或jq在监听。
    直接把class 换了,或者不用class,直接调用呗。
      

  21.   

    function clickbtnGet(id){
         alert("参数:"+id);
         //$.ajax({
         //url:"/MyStoraneManage/stockIn_ajaxLoad.action",
         //type:"POST",
         //data:{id:id},
         //dataType:"json",
         //success:function(data){alert(data)}
         //});
              alert("发送请求);
              
         }
    改成这样了,还是不行,警告框也弹不出来
    快被搞晕了
     
    测试最简的可以 , 什么意思??
      

  22.   

     怎么说呢~你先在action中打个断点~如果断点都没进,说明你的请求错误,写法~如果能进,可能你JQUERY的返回有问题~
      

  23.   

    你最好用firefox 看一下到底是什么错误
      

  24.   

    可以用IE的js调试看看那哪里出错了。像你这样的估计一开始加载就会报错了。chrome调试也很好用。设个断点,什么都好说