browser-history

Find out where in browser history the user is

冷暖自知 提交于 2019-12-10 17:21:41
问题 I know I access browser history using history object, specifically, I can use history.back(); , history.forward(); and history.go(item-number) (or history.go(url) ). What I am trying to determine where in the browser history the user currently is. Firefox, for example, may support accessing individual url's from the history, but that's not what I'm after, because the history of 20 url's may contain repeated url's. Note that I am not interested in a history within my project - but rather

Don't save URL in history, any header or meta-tag?

你说的曾经没有我的故事 提交于 2019-12-10 15:57:53
问题 Is there any HTTP-headers or meta-tags one can use to avoid getting a URL into the browser history? For example, I don't want http://domain.td/show/super-secret-unique-token-that-is-private to show up in the browser URL bar, when I start typing "domain.t". Currently I have a (POST) search form on the website to load the tokens, and they don't come up. But later I want to load the tokens via links, from let's say an album. 回答1: I don't think you can. You can save the token as a cookie, or use

jQuery Address: Certify that user is pressing forward button and not back button

不羁岁月 提交于 2019-12-10 13:09:18
问题 EDIT 3 : This jsFiddle works with the plugin, I almost have it. EDIT 2 : I made a fiddle.I can't get the plugin to work there, but maybe it is easier to analyze. In the webpage I am building, Articles(posts) and new Pages are loaded via Ajax. At the same time when new Ajax-content is loaded, the address bar changes (using jQuery Address plugin). So a normal navigation would go like this: / /page2 /page3 /article7 /page3 /page4 Please note that in this navigation, no browser button was pressed

Prevent browser from snapping to previous scroll position when pushing back button

狂风中的少年 提交于 2019-12-10 13:05:39
问题 I need to prevent browser from snapping to previous scroll position when the user pushed a back button like this: <a href="javascript:history.go(-1)" onClick="javascript:history.go(-1)" title="< GO BACK"></a> after pushing that button the browser will return to the previous scroll position on this page i want to stop that behavior and just load the top of the page. Hope someone know a proper solution. -exemple- open a page scroll down go to a new page and hit the back button the page will

Chrome history bug maybe - doing PRG, and when navigating again to the same form - no history entry is added

隐身守侯 提交于 2019-12-10 12:57:11
问题 There is a strange back button behavior occurring only in Chrome. I have two pages - Grid and a Form the scenario: 1. When navigating from the Grid to the Form everything is fine - the Grid is added to the history. 2. When the Form is sent to the server via post, i use RedirectToAction to redirect(302) to the Grid again - the Form is added to the history. 3. When navigating again from the Grid to the Form after the redirect, a history point containing the Grid address is not added to the

How to show Internet Explorer's History in a control?

别等时光非礼了梦想. 提交于 2019-12-10 11:43:46
问题 I just got a requirement to emmbed an IE control into a form, and the user wants to get access to all the browser histories. I think the history manager in IE will do this, so how can I emmbed the history manager into my control? Or can I read the history information, put it in a ListView and handle it myself? Thanks 回答1: See the following CodeProject article: The tiny wrapper class for URL history interface in C# http://www.codeproject.com/KB/cs/ponta.aspx This article describes what the

Browser History Management

守給你的承諾、 提交于 2019-12-10 11:23:53
问题 I'm trying to find a clean solution to working with the browser history in the most effective way. (I'm using GWT, but this question is really more general than that.) Here's my situation (I would think it's pretty standard): I have a web application that has several different pages/places/locations (whatever you want to call it), which I display in response to changes to the browser history. Beyond the usual "Home", "Features", "Contact", etc. which are mostly static HTML pages, there is a

Using Colorbox, how can I create browser history states for each modal box?

江枫思渺然 提交于 2019-12-10 10:45:29
问题 I'm using the ColorBox jQuery plugin to create modal lightboxes for different purposes around my site. In some cases, we'd like the ajax modal box to create a new history state in the browser so that if I user clicks the Back button, it will close the modal box and bring them back to the underlying view. Firstly, is behavior like this possible with ColorBox? Second, I've looked into window.onhashchange and also this hashchange plugin, but I'm really struggling to put something working

why does changing “module -> rename to” attribute in .gwt.xml file give error

南楼画角 提交于 2019-12-10 10:21:34
问题 I am able to create and run a simple GWT application by creating all the files myself. It works fine and I am able to see the correct display. I tried playing around the code to enhance my knowledge. What I noticed is that, once I run my app with say module rename to value " testhistory " it works fine. But after that if I change rename to 's value to say " historytokentest " the app gives errors like "Unable to find ' testhistory.gwt.xml ' on your classpath; could be a typo, or maybe you

Changing state without changing browser history in angular ui-router

ぃ、小莉子 提交于 2019-12-10 01:08:45
问题 Assume that we have a logic like this: From state A, change to state B. Whenever we arrive to state B, the app always redirect us to state C by calling $state.go(stateC) Now we are in state C My question is how to go back to state A from state C (given the fact that state A can be any state we don't know at run-time, meaning user can access state B from any other states) 回答1: Use the location option with value "replace" ... $state.go(stateC, null, { location: 'replace' }) See https://angular