browser-history

How do you access browser history?

Semanticator is an e-Marketing tool that claims to choose which web page to display based on where you were before. That is, if you've been browsing truck sites and then go to Ford.com, your first page would be of the Ford Explorer. I know you can get the immediate preceding page with HTTP_REFERRER, but how do you know where they were 6...

What would cause a visitor to return to the top of the previous page, instead of to the point in the page where the link resides?

I've seen this weird behavior on several sites recently: I scroll down a page and follow a link to another page. When I click the Back button and return, I am left back at the top of the previous page, not at the link. This is very annoying if I'm clicking on links in a search results page or a list of "10 Best Foo Bars...". See this pa...

Browser history for Flash (or AJAX)

What is the best tool / practice to enable browser history for Flash (or AJAX) websites? I guess the established practice is to set and read a hash-addition to the URL like http://example.com/#id=1 I am aware of the Flex History Manager, but was wondering if there are any good alternatives to consider. Would also be interested in a ge...

Can I use ASP.NET AJAX History without having .NET 3.5 SP1 installed?

Is it possible to use this feature on a server that only have .NET 2.0 installed? After an initial look into how AJAX history is implemented, I'm not sure it would be easy. I am just curious if anyone knows of a way to do it. ...

Ajax and Browser history using YUI Browser History Class.

I have an Ajax rich application that displays a grid with 100 urls. When u click on any row of the grid it loads the preview of that URL in the grid. Also on the onload event of the grid I perform several operation which fire many AJAX queries. I use YUI browser history class to enable browser back button. It works fine with FF3 but i...

Is monitoring location.hash a solution for history in XHR apps?

As is well known, in XHR (aka AJAX) web applications no history for your app is build and clicking the refresh button often moves the user out of his/her current activity. I stumbled upon location.hash (e.g. http://anywhere/index.html#somehashvalue) to circumvent the refresh problem (use location.hash to inform your app of it's current s...

Browser history cleared after navigating to a pdf via href

Ok, hopefully I have worded this in a way that you can understand. I'll start off by saying my website has a landing page of http://www.mywebsite.com/PageOne.aspx On PageOne.aspx, I have a link to another page: http://www.mywebsite.com/PageTwo.aspx On PageTwo.aspx, I have an link to the following: <a href="http://www.mywebsite.com/M...

Extjs History class and iframes

Take the sample history example from Extjs framework. It works fine in Safari. Now add the following lines to the history.html page <iframe src='http://google.com'&gt;&lt;/iframe&gt; Now test the same example in Mac Safari. It just doesn't work. Any solution to this problem? ...

Can I update window.location.hash without having the web page scroll?

Using JavaScript, is there a way to update window.location.hash without scrolling the web page? I have clickable title elements that toggle the visibility of a div directly beneath them. I want the /foo#bar in the history when clicking titles but don't want the page scrolling about. So when navigating away from /foo#bar I'll be able to ...

Recently viewed DIV without page reload

Hi there, I have no idea how to solve this problem without hiring a coder, but figured it may be small enough problem to post here, and relevant enough to others for broader interest. I'd like to have a "recently viewed pages" div filled by a javascript script which adds the titles and urls of new pages as they are requested by a user t...

Delete browser history using jQuery

I have an ajax application that is based on jQuery. I enabled browser history using jQuery history plugin. But we find out that the application generated too much history. Especially, we provide an in-page "ajax-back" button that enable the page to return to previous ajax state. When the in-page "ajax-back" button was pressed, we w...

Manipulate the session history with JavaScript

I need to delete the latest browser history entry for this reason, but any other functions exposed by JS that manipulate (add/remove) history entries for the current page/tab, are also welcome. ...

Stop page from appearing in browser history

I have a simple flow A.html -> B.html -> C.html Now, B either 302's to C, or shows a progressbar, and then after some ajax call is done goes to C. When the user is on C, and they hit "Back" I want them to end up on A instead of B. If the page 302ed, then the back behavior is what I want, but otherwise they get that intermediary page....

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

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 ...

Test browser history before going back via javascript?

I'm playing around with using some javascript to add extra functionality to a back button on my website. Right now I have a set of javascript that looks like this: $(".back-link a").live("click", function(){ history.go(-1); return false; }); Now, it works great but I'm trying to make it as bulletproof as possible and one issue...

Right way to deal with an IE Back button issue?

Hi folks, I have a page in an eCom process that works like this: if you want an extra membership card click here. You get the same page and a PHP $_SESSION var is set to recognize your choice, the database is updated with this info, and a hidden amount field is set for the post to the payment gateway. If you go back in FF or Chrome e...

AJAX history remote usage enabling back button and loading old page position in divs

Hi gurus, Thanks again for helping me with this simple solution My scenario is: I have a Jquery + AJAX + CodeIgniter web page where I have many divs like <div id="team"> </div> <div id="wp"> </div> <div id="phase"> </div> <div id="tasks"> </div> On opening the page the page will contain a table with some links in div team. When I clic...

How do I preserve dom state in the browser history after dynamic dom manipulation?

Is there a general purpose solution for preserving dom state so that when a user returns to a page by using back/forward, the whole page is in the exact state that they left it? This post asks and answers why the behavior is inconsistent with different browsers and different javascript libraries... http://stackoverflow.com/questions/11...

form POST in iframe without affecting history

Is it possible to submit a form inside an iframe without affecting the browser's history? I've implemented sending a cross domain POST request. It uses Javascript to create and submit a form inside an iframe. It works, but each request adds an item to the browser's history. Anyone know a way around this? I've tried creating the if...

Understand (via javascript) if the current page is reached using browser's history

As the title: there is a way in wich I can know, client side, if the current page is shown by navigating the browser's history, or following a link, or by a postback? ...