日期:2014-05-17  浏览次数:20734 次

很奇怪的一个问题
刚打开这个页面的时候 分页是正常的,点上一页,下一页都没问题,当点了查询按钮之后,在点分页的就没反应了,要重新打开浏览器才正常,从没遇到过这个问题。。是不是 form 有问题呀。。

Java code

<script language="JavaScript" type="text/javascript">
         function search()
         {
         alert("a");
                document.form1.action="<%=request.getContextPath()%>/dtlist!flogFileList.do";
                //document.form1.submit();
         }
    </script>
    <body>
    <form id="form1" name="form1" method="post" action="">
            <table width="100%" style="border: #c6dff3 1px solid;">
                <tr>
                    <td>
                        <div
                            style="float: left; margin-top: 2px; font-size: 14px; font-family: Tahoma, Verdana, Arial, Helvetica; color: #3F3F3F;">
                            文件名:
                        </div>
                            <input type="text" name="fileName">
                    </td>
                    <td>
                        <div style="float:left;margin-left:50px;">
                               <input name="submit" type="submit" id="demandbutton" onClick="return search();"  
                               style="border-style:none;background-color:transparent;cursor:pointer;width:80px;
                               height:24px;background-image:url(<%=request.getContextPath()%>/images/chaxun.jpg);" value="">
                           </div>
                    </td>

                </tr>

            </table>
        </form>
        &nbsp; &nbsp;
    

        <s:property value="pageModel.getPagebar('dtlist!flogFileList.do')"
            escape="false" />

    </body>






------解决方案--------------------
什么错误都没有报吗?页面左下角有提示错误码?
------解决方案--------------------
method="post"
改成method="get" 试试。

看不到上一页,下一页的功能,也可能是上一页,下一页写的有问题。
------解决方案--------------------
没明白LZ的意思,重新打开浏览器才正常?是关闭以后重新打开页面,还是刷新页面?
你的后台的action是怎么跳转页面的?都跳转到什么页面?
------解决方案--------------------
查询后分页信息不正确, 楼主查看一下 PageInfo 的属性值。