Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 509
  • Last Modified:

Older version of jQuery breaks IE9 'Back' button

We have a site using an older version of jQuery (1.4.1) that is being used to power a slideshow plugin on our home page. Recently we noticed when using IE9 in standards mode, that the 'Back' button had to be clicked 3 or more times to actually go back one page in the browsing history.

In fact, if you press and hold the 'Back' button you actually see the URL of the page multiple times, rather than the actual page title once, as you normally would.

After spending the day researching the forums and trying different settings I discovered that if I update the jQuery core file from 1.4.1 to 1.9.1 or higher, the problem with the 'Back' button goes away. However, my jQuery slideshow breaks with higher versions of the jQuery core file (it is an older jQuery slideshow plugin).

If we put IE9 into compatibility mode, or use any other browser including IE8, IE7, Chrome or Firefox, the older jQuery file and the 'Back' button work properly.

Any ideas why IE9 appears to have trouble with older jQuery files?
0
kenjpete
Asked:
kenjpete
  • 4
  • 4
1 Solution
 
GaryCommented:
Is there any URL hashing going on?
0
 
kenjpeteAuthor Commented:
I'm not sure but I don't think so? Can you tell me more about URL hashing, I'm not familiar with it? Are you talking about URL shortening like when using bit.ly?
0
 
GaryCommented:
No, when you append the url with an hashtag, often seen when you have tabs on the page.
Have you got a link to the site - this would make it easier to debug.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
kenjpeteAuthor Commented:
Oh ok, no, there is no hashing going on. Take a look at http://www.capitalregionboces.org. Thanks!
0
 
GaryCommented:
Actually there is.
From line 440 in jquery.galleria.js you are using hash tagging if in IE (hashing only works in IE9 and above) that's why in IE8 and lower the back button works fine and in other browsers there is different logic being applied.

Since the code seems to be working on some 'iframes' I am not sure how you would fix it bar just commenting it out.

Is there a reason you are using this history extension?
0
 
kenjpeteAuthor Commented:
Ok I see what you are referring to, so why does the problem go away then if I put in the latest jQuery core file (1.10)? Also, the answer might be to use the latest version of that Galleria plugin....correct?
0
 
GaryCommented:
It may have been buggy in 1.4.x and fixed in later versions. Remember that was quite some time ago when IE9 was still in its infancy.

Normally if a plugin works there is no need to update (bar any security issues) but yes it may be worth checking the latest version and/or checking for a better more recent slideshow plugin.
0
 
kenjpeteAuthor Commented:
I wasn't aware there was a history extension in that Galleria plugin? It was a jQuery plugin we found a few years ago that met our needs at the time and didn't become a real issue until recently.

I just looked at the developer's web site and it appears there is a new version our this year. I may try upgrading the plugin and the core jQuery file and see if it works?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now