设置消息发布提交
任何人都可以建议一种通过jquery post提交和页面刷新来保留信息的方法吗?
我有一个运行良好的自定义搜索过滤器,但我需要一个系统来通知用户结果所基于的搜索参数。
因此,当用户点击“提交”并且页面刷新时,我需要保留他们的搜索输入中的信息,然后我可以将信息显示给他们作为提醒。
您可以在这里看到我的努力 (http://www.plotsandhouses.com/node/29)。只有价格范围才会产生提醒消息。因此只需为下拉列表提供输入,然后提交 您将在页面顶部看到更新消息。
我目前正在尝试 JQuery Cookie 插件项目,但它很粘,并且更新消息刷新得不够快。所以我收到了最近一条消息。
谢谢大家。
Can anyone suggest a means to retain information via jquery post submit and page refresh?
I have a customized search filter which works well but I need a system to inform the user of the search parameters the results are based on.
So effectively, when the user hits submit and the page refreshes, I need to retain information from their search input I can then display back to them as a reminder.
You can see my efforts at work here (http://www.plotsandhouses.com/node/29).Only the price ranges produce the reminder message . so only provide input for the drop downlists and then submit
You will see the update message at the top of the page.
I am currently trying the JQuery Cookie plugin project but it is sticky and the update message does not refresh quickly enough. So I get the a message from before my most recent.
Thank you all.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您可以使用 GET 而不是 POST 将用户的值发送到服务器,我将通过使用 jquery 将单击处理程序附加到提交按钮来劫持默认的 html POST 表单提交,并在该单击处理程序中读取您的表单值,将它们附加到某个 URL var,然后调用它来实际执行重定向:
If you can use a GET instead of POST to send the user's values to the server, I'd hijack the default html POST form submit by using jquery to attach a click handler to the submit button, and in that click handler, read your form values, append them to some URL var, and then call this to actually perform the redirect: