Menu
  • HOME
  • TAGS

Prevent iframe loading again after going back in history

html,iframe,browser-history

Add the iframe dynamically either using javascript or php so that it only shows if someone has gone there directly. Here's how to detect if someone has landed on a page via the back button... How do I detect if a user has got to a page using the back...

Android get browser history and display in listview

android,listview,browser,android-listview,browser-history

This and this will provide you solutions.

Saving the state of a page with content loaded via Ajax

jquery,ajax,wordpress,browser-history,history.js

see its the url that the problem. Its resolved before the browser loads so hence using url locations rather than query vars is more difficult. But to do this, Get the current url using excluding the hostname using $_SERVER[REQUEST_URI] then you can match this to whatever project you want to...

Creating a Web Browser in Android

java,android,browser-history

Perhaps you could look to an open source project like the Zirco Browser -> https://code.google.com/p/zirco-browser/ Some code like this > https://code.google.com/p/zirco-browser/source/browse/branches/tint-browser-old2/src/org/tint/controllers/BookmarksHistoryController.java /** * Get a Cursor the history, e.g. records wich have a visits count > 0. Sorted by last visited date. * @param currentActivity The parent activity. * @return...

Adding Browser History and Navigation To JavaScript DOM Page Change Function

javascript,html,dom,browser-history

You should look at window.history.pushState to add history entries and window.onpopstate to react to the user travelling "backward" through the entries you've added. When you want to "change" pages, make a call like: window.history.pushState( stateData, title, url ); where... stateData is some object containing data you define title is a...

History not fully deleted using chrome.history.deleteRange

javascript,google-chrome-extension,browser-history

Chromium developers have confirmed the bug. It depends on History Sync being enabled. See Chromium bug report...

Updating an iframe, history and URL. Then making it work with back button

javascript,html,iframe,browser-history

You may find the popstate event interesting. https://developer.mozilla.org/en-US/docs/Web/Events/popstate First, I would change few lines of code that you have... function updateURLBar(urlInfo) { //we can get this stateObj later... var stateObj = { foo: "bar", url: urlInfo[1] }; //document.getElementById("iframeContent").src = urlInfo[1]; // see EDIT notes changeIframeSrc(document.getElementById("ifameContent"), urlInfo[1]); //window.history.replaceState(stateObj, "page 2", urlInfo[0]);...

JS - window.history - Delete a state

javascript,html,html5,browser-history

You may have moved on by now, but... as far as I know there's no way to delete a history entry (or state). One option I've been looking into is to handle the history yourself in JavaScript and use the window.history object as a carrier of sorts. Basically, when the...

GWT - History.getToken() is always returning blank value

java,gwt,browser-history

Please have a look at Coding Basics History - GWT Project. For example, a history token named page1 would be added to a URL as follows: http://www.example.com/com.example.gwt.HistoryExample/HistoryExample.html#page1 When the application wants to push a placeholder onto the browser's history stack, it simply invokes History.newItem(token). When the user uses the back...

Preventing page navigation inside a Backbone-driven SPA

backbone.js,browser-history,pushstate,backbone-routing

Direct link navigation Use a global event handler to capture all click events $(document).on('click', 'a[href^="/"]', function (e) { var href = $(e.currentTarget).attr('href'); e.preventDefault(); if (doSomeValidation()) { router.navigate(href, { trigger: true }); } }); Page refreshing / external URL navigation Handle the onbeforeunload event on the window $(window).on('beforeunload', function (e) {...

GWT upload form causing browser back to freeze page in Chrome

java,gwt,file-upload,browser-history

When you create a new FormPanel it creates as well an Frame in order to send the output of the form to it when it is submitted and not change the current page. The problem is that the browser puts the focus on this iframe, happening that using browser history,...

anchor navigation and history changes

javascript,html,html5,anchor,browser-history

As far as I can tell, testing in both Firefox and Chrome, navigating a link to the current page does not modify the browser history. Both browsers seem to treat it as a "refresh" rather than navigation. This means that your second example is effectively replacing the current history state...

How can I make an iframe not save to history in Chrome?

javascript,html5,angularjs,google-chrome-extension,browser-history

Ultimately, I had been attempting to write a chrome extension embeds an angular application inside of an iframe, but found that all the hash changes caused interference with Chrome's history because the iframe source was constantly changing due to routing changes. While I cannot say for certain if using ui-router...

GET/POST without browser history

php,browser-history,html5-history

Post/Redirect/Get: http://en.wikipedia.org/wiki/Post/Redirect/Get Another (old style) option is: $_POST the data to a file the users do not go to, such as post_processing.php. In that script, handle the processing of their requests, make changes as necessary, then header redirect back to the schedules page. Obviously correctly handle anyone trying to access...

How can I get current (previous) URL state on statechange

jquery,local-storage,browser-history

Why don't you create a history stack and add the current state to it? That gives you the opportunity to go back further than just one state. For example: $(window).on("statechange", function() { var historyStack = localStorage.getItem("stateHistory") === null ? [] : JSON.parse(localStorage.getItem("stateHistory")); historyStack.push(window.location.search.substr(1)); localStorage.setItem("stateHistory", JSON.stringify(historyStack)); }); To navigate back you...

How to retrieve and display browser history and bookmarks in browser application [duplicate]

android,android-listview,browser-history,bookmarks

ArrayList mTitles=new ArrayList(); ArrayList mUrls=new ArrayList(); public void getBrowserHist() { Cursor mCur = managedQuery(Browser.BOOKMARKS_URI, Browser.HISTORY_PROJECTION, null, null, null); mCur.moveToFirst(); if (mCur.moveToFirst() && mCur.getCount() > 0) { while (mCur.isAfterLast() == false) { Log.v("titleIdx", mCur .getString(Browser.HISTORY_PROJECTION_TITLE_INDEX)); Log.v("urlIdx", mCur .getString(Browser.HISTORY_PROJECTION_URL_INDEX)); mCur.moveToNext(); } } } Add below uses-permission into your manifest file....

Jump to named anchor without changing the history

javascript,browser-history

Just put a script at the beginning of the page that deletes the hash. That way each time they refresh it just gives you foo.html. e.g. <head> <script> document.location.hash=''; </script> </head> Does that solve your problem?...

how to get TIME for last access of an URL?

android,database,browser-history,android-cursor

Your projection should include the required column name as well. So change the code String[] proj = new String[] { Browser.BookmarkColumns.TITLE, Browser.BookmarkColumns.URL }; to String[] proj = new String[] { Browser.BookmarkColumns.DATE, Browser.BookmarkColumns.TITLE, Browser.BookmarkColumns.URL }; Hope this helps....

Browser history doesn't work as expected with drupal panes

url,drupal,browser-history,panels,panes

Searching within project templates, I figured out that I have data-href instead normal anchors and these not push href to browser history.

joint session history backward navigation with iframes

javascript,ios,cordova,backbone.js,browser-history

This behavior was a side effect that resulted from including the console cordova plugin (org.apache.cordova.console). Its a plugin meant to redirect console output. Here is the one file that implements the feature #import "CDVLogger.h" #import <Cordova/CDV.h> @implementation CDVLogger /* log a message */ - (void)logLevel:(CDVInvokedUrlCommand*)command { id level = [command...

Get openfire Chat History

ios,xmpp,openfire,browser-history,nslog

You need to enable the option in openfire to get chat history. Login on openfire, Go to group chat, then go to group chat settings, then go to history settings and then select show entire chat history option.

AngularJS: Disable html button if history is empty

angularjs,browser-history

You can even check $window service of angular js. It is completely same as window object of javascript. The history object contains the URLs visited by the user (within a browser window). The history object is part of the window object and is accessed through the window.history property. If you...

Changing URL as long as you are scrolling the webpage

javascript,html,url,browser,browser-history

I looked at the HTML5 History API, and now I know I can do what I want.

removing a URL from browser history through javascript

javascript,browser-history,html5-appcache

This saved data is handled by the browser. You'll have to have the users delete the browser history, or set up redirects for http to https

How can i make a page accessable only from a page that redirects the user to it? [closed]

php,html,browser-history

As an additional measure (besides the comment already made by CD001) you could utilize the $_SERVER["HTTP_REFERER"] variable, which will be empty if the script is requested right from the browser interface.

browserhistory logged only with special browser

android,browser-history

that depends if a browser logs to Android built-in Content Provider for the browser activity. Some browsers might, but not all of them do. Usually the stock browser, the one that comes installed on the device, do. But there're no guarantees that others will....

Sqlite + Safari History.db

database,sqlite,safari,browser-history

Stupid mistake by myself. Solution is to close Safari first, and then open the file using a sqlite reader. Yves...

Writing handlers for JS.Window.Onpopstate in Websharper

f#,browser-history,websharper

You can access arbitrary fields from objects using the dynamic operator ?: JS.Window.Onpopstate <- (fun e -> Console.Info e?state.bar ) Note however that you still need to use [<Inline>] to call an arbitrary method....