如何导航到上一页而不刷新它在HTML [英] how to navigate to previous page without refreshing it.in HTML

查看:255
本文介绍了如何导航到上一页而不刷新它在HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在前端有一个ExtJS代码。该页面的下拉菜单通过Web服务呼叫动态加载到第三方服务。我已经从该页面导航到结果页面。



现在在结果页面中,我有一个按钮,允许用户返回上一页。但是下拉列表中的所有数据都应该被保留。



我尝试过window.history.go(-1)和history.back()



请各位帮忙。

解决方案

我现在使用的是extjs4 mvc设计。我们有一个html页面,多个视图,一个模型和一个控制器。



在导航到一个新的视图时,您需要隐藏以前的面板,并返回显示以前的面板。这解决了导航和保留视图的问题。



如上所述,如果您将它用于多个应用程序和旧设计,那么我们使用 onReady()


HI i have a ExtJS code on the front end. the drop downs on this page are loaded dynamically thru web-service call to 3rd party service. i have navigated from this page to the results page.

Now in results page i have a button which allows the user to go back to previous page. but all the data in the drop down should be retained.

i tried window.history.go(-1) and history.back()

Guys please help me.

解决方案

I am using now extjs4 mvc design. We have a single html page, multiple views, a model and a controller.

On navigating to a new view, you need to hide the previous panels and when going back show the previous panel. This solved my problem of navigating and retaining view.

As above this is not suitable for mvc if you use it for multiple apps and older design where we use onReady().

这篇关于如何导航到上一页而不刷新它在HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆