最佳分页过程 [英] best pagination process
问题描述
大家好...我正在尝试设计一个页面,该页面包含一个分页和一个表以显示结果.在表格的标题上,我有一个文本字段,用户可以在其中输入过滤器值,结果将根据您在文本字段中输入的值进行过滤.现在,我在这个网站上看到了他们具有这种功能的网站,我注意到在过滤器字段中输入值并单击提交按钮后,它将自动过滤结果并显示在表格上.
好吧,我知道该怎么做,但是事情是,当我尝试刷新其页面时,结果仍然保留,这意味着保留了筛选...我希望它会返回到默认的显示结果..但是怎么可能他们即使在刷新页面后仍能够保留搜索结果?
-我当时想节省会议时间.但这不是因为我创建了一个脚本,该脚本将销毁浏览器上的所有会话...
-第二个猜测是他们使用$ _GET [''method''],但即使您进行过滤,网址也不会更改
-而不是POST方法,因为Post方法仅适用于提交,而不适用于刷新页面...
-它不在cookie上,因为我清除了所有浏览器cookie
知道他们如何完成这种技巧吗?
Hi guys... I''m trying to design a page that has a pagination and a table to display the result. and on the header of the table i have a textfield where user can input a filter value and the result will be filtered base on the value you inputted on the textfield. Now i saw this one website where they have this kind of function and i noticed that after typing the value in the filter field and clicking the submit button it will automatically filter the result and display on the table.
Well i know how to do that but the thing is when i try to refresh their page the result still remain it means the filtering was retained... i was expecting it will go back to the default display result.. but how is it possible that they were able to retain the search result even after refreshing the page?
- I was thinking it was save on a session. but it was not since i created a script that will destroy all session on the browser...
- the second guess would be their using $_GET[''method''] but the url does not change even your doing filtering
- and its not a POST method since the Post method will only work on submit but not on refresh page...
- its not on the cookie since i clear all my browser cookie
any idea how do they accomplish this kind of trick?
推荐答案
_GET [''method''],但即使进行过滤,URL也不会改变
-而不是POST方法,因为Post方法仅适用于提交,而不适用于刷新页面...
-它不在cookie上,因为我清除了所有浏览器cookie
知道他们如何完成这种技巧吗?
_GET[''method''] but the url does not change even your doing filtering
- and its not a POST method since the Post method will only work on submit but not on refresh page...
- its not on the cookie since i clear all my browser cookie
any idea how do they accomplish this kind of trick?
这篇关于最佳分页过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!