browser-history

jquery javascript: adding browser history back with hashtag?

左心房为你撑大大i 提交于 2019-11-28 11:35:46
I have a link on my website that says "Fullscreen Google Map". Once I click it, I load a google map into a 100% wide and 100% high position fixed div container. When the link is clicked, I also add a #map as hash. Is it possible to make the browser back button work with that? That is, if I click this link, I add #map to my current address. Once I click the back button, the #map hash is removed and the div container with the google map is removed or hidden. Is that somehow possible? edit: $('.showMapLink').live('click', function() { $('#mapContainer').fadeIn('fast', function () { loadMap(

Programmatically acess Google chrome history

心不动则不痛 提交于 2019-11-28 11:34:30
I want to index all the user actions and websites in google chrome. i understand that google chrome index all the data in sqlLite database. how can i Programmatically access the chrome web history in my own application You need to download the appropriate assembly from the SqLite downloads page Once you add a reference to the SQLite assembly, its very similar to standard ADO.net All the user history is stored in the History database located at the path in the connection string below SQLiteConnection conn = new SQLiteConnection (@"Data Source=C:\Users\YourUserName\AppData\Local\Google\Chrome

Reading window.history.state object in Webkit

£可爱£侵袭症+ 提交于 2019-11-28 09:56:03
问题 Safari and Chrome (and, I'm guessing, all Webkit browsers) do not respond to window.history.state which is specified in the evolving HTML5 standard here and is implemented in Firefox. Is there a workaround to read it? Perhaps it is possible to trigger a popstate event in code and return the state from the event handler? 回答1: window.history.state is not implemented in webkit broswers currently. There is a request for it, but no steps towards implementation were done so far. There is a project

Get browser history and search result in android

拜拜、爱过 提交于 2019-11-28 07:52:30
I am trying to get the history and search results from the android browser. In the following code I get all the bookmarks, which works great: public void getBrowser(){ String[] requestedColumns = { Browser.BookmarkColumns.TITLE, Browser.BookmarkColumns.VISITS, Browser.BookmarkColumns.BOOKMARK }; Cursor faves = managedQuery(Browser.BOOKMARKS_URI, requestedColumns, Browser.BookmarkColumns.BOOKMARK + "=1", null, Browser.BookmarkColumns.VISITS); Log.d(DEBUG_TAG, "Bookmarks count: " + faves.getCount()); int titleIdx = faves.getColumnIndex(Browser.BookmarkColumns.TITLE); int visitsIdx = faves

Change browser back button behaviour for my web app?

拟墨画扇 提交于 2019-11-28 07:45:58
问题 Im making an 'app like' web page. The actual page is wider than the browser viewport which has its overflow hidden. Clicking different links changes the CSS to animate to different sections. Here is a very simple demo: http://smartpeopletalkfast.co.uk/pos/ At this stage im working on a demo, not a production site. I want to intercept the browser back button, so if you've navigated to a section, you would be taken back to the previous section rather than leaving the web page. In a perfect

How to get Chrome History & Bookmarks in Android Marshmallow (API>=23)?

血红的双手。 提交于 2019-11-28 06:49:36
Till API Level 22 (i.e. till Lollipop), there has been a way to read History and Bookmarks from the Chrome app (as shown in this thread ) using the permission com.android.browser.permission.READ_HISTORY_BOOKMARKS . Now, in Android API=23 Marshmallow, since the entire Browser Bookmark system has been removed in Marshmallow ( changes here ), the above method does not work anymore. Here is the thread that shows why this is not possible anymore. In my research so far, I have not found good news. Google has definitely killed the System Bookmarks feature( here & here ), question is if Chrome Browser

history.go('url') issue

落爺英雄遲暮 提交于 2019-11-28 05:39:39
问题 I've seen that history.go() method can have two types of parameter: see: http://www.w3schools.com/jsref/met_his_go.asp But url does not working at all. I use JavaScript console of browser to test this method but got no success. I know that there are security issues, that you can't read history entries. You can just go back and forward. So why this string parameter listed in all js references? 回答1: Supplying a URL as a parameter is a non-standard feature and will not work in all browsers. Most

Is History API broken on iOS? (Location bar doesn't update on pushState)

点点圈 提交于 2019-11-28 04:54:31
Filing this under the either the I Can't Believe No One Noticed This Before or the I Must Be Missing Something categories: It appears that if you do a simple window.history.pushState on iOS, the location bar doesn't update unless it is in response to a user gesture. The state itself does get pushed (as you can see by hitting the back button button). Here's is the tiniest test-case I could come up with recreate the issue: http://thelink.is/history-api-ios-bug On a desktop browser that supports the History API, you should see the URL in the location bar change to /0, /1, etc., every second. On

History.Back with refresh

萝らか妹 提交于 2019-11-28 04:43:44
I would like to have the History.back(); functionality with a complete refresh of previous page. Any idea how to do that (and make it work in IE, FF and Chrome). You could redirect (by window.location) to document.referrer i.e. window.location.href = document.referrer; Internet Explorer fix for passing referrer to a particular location: if(IE){ //IE, bool var, has to be defined var newlocation = document.createElement('a'); newlocation.href = URLtoCall; document.body.appendChild(newlocation); newlocation.click(); } You can also use the location replace() method: window.location.replace

jQuery History Plugin

断了今生、忘了曾经 提交于 2019-11-28 04:34:49
There are a few different jQuery history plugins out there is one better than any of the others... I'm trying to decide which one to go with, any thoughts or any others to try: http://www.balupton.com/projects/jquery-history http://tkyk.github.com/jquery-history-plugin http://plugins.jquery.com/project/history Christian Joudrey I'm not exactly sure what you are trying to do, but I'm assuming you want to use hash tags to control page loads like Twitter and Facebook. If that's the case check out this post: https://stackoverflow.com/questions/116446/what-is-the-best-back-button-jquery-plugin Edit