browser-history

Move backward through history skipping the same page with different query string

ε祈祈猫儿з 提交于 2019-12-12 07:27:39
问题 When I refresh a page or redirect to the same one using the same url, I can click in a button with "window.history.back();" code and go back to the previous page. However, If the query string was changed, I just back to the same page when I try to move back. Example 1: page1.html -> page2.html -> page2.html -> [click back button] -> page1.html Example 2: page1.html -> page2.html -> page2.html?x=123 -> [click back button] -> page2.html What I want: page1.html -> page2.html -> page2.html?x=123

angular ui router back button issue

こ雲淡風輕ζ 提交于 2019-12-12 03:26:17
问题 'use strict'; angular.module('cbApp') .config(function ($stateProvider) { $stateProvider .state('search', { url: '/college/search', templateUrl: 'app/collegesearch/views/collegesearch.html', controller: 'collegeSearchCtrl' }) .state('searchCollegeFilter', { url: '/college/search/:streamId?cities&courses&branches&ordering', templateUrl: 'app/collegesearch/views/collegesearch.html', controller: 'collegeSearchCtrl' }); }); Here my application calls the 1st state i.e 'search' with a url /college

How to view the contents of history object in javascript?

对着背影说爱祢 提交于 2019-12-12 02:39:39
问题 The history object contains the URLs visited by the user (within a browser window). How do I view the visited URLs? I tried consoling the object and checked through all the fields, couldn't find the required data. history.back() will load the previous, but I just want to know the previous URL. 回答1: You cannot do this. It's made for security reasons. However you can view the last one (page which you came from) by checking document.referrer . See more here 回答2: Maybe you can have some kind of

Windows Mobile Internet Explorer History

我是研究僧i 提交于 2019-12-12 00:46:51
问题 How do I grab Internet Explorer's history on Windows Mobile 5.0 in C# running on the Compact Framework 1.0? I only need to get the most recently visited URL. Even if you just know where this is stored, I might be able to figure out the rest from there. 回答1: It should normally be stored in '\windows\profiles\guest\History*' It might however be better to retreive this location from the registry using: using Microsoft.Win32; RegistryKey foldersKey = Registry.CurrentUser.OpenSubKey(@"Software

How to Disable Function keys using Javascript?

半城伤御伤魂 提交于 2019-12-12 00:25:51
问题 I'm having a page where i need to disable the Function keys mainly F12(Developertools). I'm showing some sensitive data in the page so at any case i cannot make the users see the html and take the hidden fields. I checked some javascript which is working for almost all the keys except the Function keys like f1, f12 etc. Is there anyway that i can disable these buttons in the browser? document.onkeyup = KeyCheck; function KeyCheck() { var KeyID = event.keyCode; alert(KeyID); switch (KeyID) {

Loop on back button after re-direction with querystring

情到浓时终转凉″ 提交于 2019-12-11 18:14:11
问题 The problem: I need to start with a URL with a query string containing a URL of a second page - http://www.firstURL.com/?http://www.secondURL.com . On the target page of the first URL, the query string is parsed to extract the second URL and the browser is re-directed to the second URL. This is done on $(document).ready so that it's automatic. This all works fine, but of course falls in a hole if the user hits the back button on the second URL. Here's the basic code: $(document).ready

saving history in ajax

寵の児 提交于 2019-12-11 11:55:54
问题 I am using ajax in my site. When a user enters a query and selects a category, I update the page with server fetched content using ajax. In addition I update the URL with a hash value which shows the query and the category separated by a & . What I want to do is to make it so when the browser back-button is pressed I want to display the previous result without reloading. What I am getting is that URL that has the previous values, but the result is not updating. How can I change that? Can any

Hashchange not firing when user clicks on same link

断了今生、忘了曾经 提交于 2019-12-11 11:07:27
问题 I'm creating an HTML and Javascript client for running in browser which talks to REST API. I'm using RouteMap to set my URLs. So I've kept a convention something like this http://mysite.com/#/{ResourceName}/[edit|view|list]/[Id]/ I've set just one route and I'm grabbing these parameters in the function bounded to hashchange. Most of the things work fine. Just two issues and I'm stuck because of them. If the user clicks on the same link twice, hashchange event doesn't fire. Yes, hash has not

Is there a javascript API to browser history information (limited to current domain)

时间秒杀一切 提交于 2019-12-11 10:48:33
问题 Is there a programmatic API to tell what are the recently visited pages (30 days) within my site? I know such information is already stored in the browser history. As far as security, I only care about pages visited within the site (domain) the script is operating of. My intention is to use the (Url, title) history information to generate a custom recently visited pages list. My site has million of pages. If there's no such standard API (this CSS hack not being one) then: What would be the

Check if offline application cache disabled by browser

我只是一个虾纸丫 提交于 2019-12-11 09:56:36
问题 So I've got an application that stores offline data using an ApplicationCache. Long story short, it's silently dying for users who don't have offline data enabled, most commonly because they've got history turned off or are using private browsing, and I'd like to catch this and give the user a clear error. It appears that this can be detected by checking the cache's state, which will return 0 UNCACHED when there is no cache... but I'm not sure if that means that there is no cache yet , or