cowboy / jquery-hashchange

This jQuery plugin enables very basic bookmarkable #hash history via a cross-browser HTML5 window.onhashchange event.
http://benalman.com/projects/jquery-hashchange-plugin/
GNU General Public License v2.0
1.21k stars 258 forks source link

in IE 8 the js(and jquery 1.4.4) from your title example with back button only refreshes title every third click #20

Open MarcCJohnson opened 12 years ago

MarcCJohnson commented 12 years ago

using the exact code (js not HTML) in your example (at http://benalman.com/code/projects/jquery-hashchange/examples/hashchange/) with jquery v1.4.4, in IE 8, the hash is only changing every third time. In firefox it's catching the hash change perfectly.

My thought is that I'd be able to change the hash 20 or 30 times and hit the backbutton and see those changes as I step back through the history in the title. Again that's happening in FF but only one in three times in IE 8.

cowboy commented 12 years ago

I can't reproduce this issue here.

MarcCJohnson commented 12 years ago

I will produce a test script ASAP. By the way I love your work! All cudos to you and all that you're doing!

On Wed, Jun 27, 2012 at 10:18 AM, Ben Alman < reply@reply.github.com

wrote:

I can't reproduce this issue here.


Reply to this email directly or view it on GitHub: https://github.com/cowboy/jquery-hashchange/issues/20#issuecomment-6606218

MarcCJohnson commented 12 years ago

Hey Ben sorry to be so long in getting this to you, been busy at work...

To reproduce you must have IE 8 I have version 8.0.6001.18702.

  1. Unzip files and throw them in a directory
  2. open haschangeTst.html
  3. click the different anchors in the left column scrolling back to the left column anchors a few times, at least 5. (the event fires here yaay!)
  4. after doing this a few times begin clicking the back button.

In Firefox the hashchange event works perfectly each time. In IE 8 the haschange event only fires once exactly every third click. I did observe that the windows.onhashchange fires natively in FF but not in my version of IE 8 (although I thought the property was supported in IE 8), so I think the issue is in your polling implementation that accomodates browsers that don't support onHashChange natively.

Hope this is of some use

On Wed, Jun 27, 2012 at 10:23 AM, Marc Johnson marc.c.johnson@gmail.comwrote:

I will produce a test script ASAP. By the way I love your work! All cudos to you and all that you're doing!

On Wed, Jun 27, 2012 at 10:18 AM, Ben Alman < reply@reply.github.com

wrote:

I can't reproduce this issue here.


Reply to this email directly or view it on GitHub: https://github.com/cowboy/jquery-hashchange/issues/20#issuecomment-6606218

cowboy commented 12 years ago

Are you viewing the web page at a file:// URL or through a web server at a http:// URL? Because there's often a difference in behavior, especially with code that modifies the page URL.

Please ensure that you are testing this through a web server. Also, be sure to test on a different machine as well, and then report back with your results.

MarcCJohnson commented 12 years ago

I am definitely seeing this on a local apache server. Sorry for not pointing that out in instructions. That file should definitely be unzipped to htdocs.

On Tue, Jul 10, 2012 at 6:36 AM, Ben Alman < reply@reply.github.com

wrote:

Are you viewing the web page at a file:// URL or through a web server at a http:// URL? Because there's often a difference in behavior, especially with code that modifies the page URL.

Please ensure that you are testing this through a web server. Also, be sure to test on a different machine as well, and then report back with your results.


Reply to this email directly or view it on GitHub: https://github.com/cowboy/jquery-hashchange/issues/20#issuecomment-6873037

MarcCJohnson commented 12 years ago

Also, I did confirm that I'm seeing this behavior on other machines, thanks.

On Tue, Jul 10, 2012 at 6:57 AM, Marc Johnson marc.c.johnson@gmail.comwrote:

I am definitely seeing this on a local apache server. Sorry for not pointing that out in instructions. That file should definitely be unzipped to htdocs.

On Tue, Jul 10, 2012 at 6:36 AM, Ben Alman < reply@reply.github.com

wrote:

Are you viewing the web page at a file:// URL or through a web server at a http:// URL? Because there's often a difference in behavior, especially with code that modifies the page URL.

Please ensure that you are testing this through a web server. Also, be sure to test on a different machine as well, and then report back with your results.


Reply to this email directly or view it on GitHub: https://github.com/cowboy/jquery-hashchange/issues/20#issuecomment-6873037

cowboy commented 12 years ago

I still can't replicate this issue. Do you have any addons, toolbars or otherwise non-standard settings in your IE8 or Windows?