Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-17-2012, 07:39 PM   PM User | #1
rph1981
New to the CF scene

 
Join Date: Aug 2012
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
rph1981 is an unknown quantity at this point
Redirect IE9 to IE8

Hi there, I am just wondering if anybody could help with a little problem I have with IE9 incorrectly rendering my website. historyofkilnamona.org is the site.

As far as I can tell, the site loads fine in Opera, FF, Safari, Chrome etc. but IE9 is a problem. <=IE8 are all fine also. I created the site using XHTML and CSS (I don't know JS). I got a free script for a dropdown menu called p7exp and it is this that does not render properly in IE9.

I am wondering if there is a way of redirecting IE 9 or above users to IE8 as it works fine in the older browser.

Many thanks in advance.

Ronan
rph1981 is offline   Reply With Quote
Old 08-17-2012, 10:19 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,200
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Ummm...I have IE9 on my machine. I don't have IE8.

So, even if it WAS possible to tell a web page to use IE8 instead of IE9, how could it work on my computer where IE8 doesn't even exist?

In any case, there is no way to do what you want. Even if a user had both browsers installed on his computer, it's no easier to jump from IE9 to IE8 than it is to jump from IE9 to Chrome or IE9 to Firefox. They are separate *PROGRAMS*. It would be like you are playing a game of Halo and all of a sudden you jump to MS Word.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Users who have thanked Old Pedant for this post:
rph1981 (08-18-2012)
Old 08-18-2012, 12:22 AM   PM User | #3
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,601
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
There is absolutely no need to redirect from IE 9 to IE 8, even if it was just remotely feasible. IE 9 is better than IE 8 in all aspects (I’d think) and if there is something wrong in the rendering it’s probably bad code, not the browser’s fault. There is definitely a solution for it. Your request is like putting the cart before the horse, figuratively speaking.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 08-18-2012, 01:21 AM   PM User | #4
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,200
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
It's not wonder that p7exp doesn't work. It is *ANCIENT* code.

Among other things, it seems to assume that NO version of MSIE supports the :hover mechanism in CSS.

Try to find something more modern!

But you know, I bet if you simply removed the "p7exp.js" file from your page, it might actually work!

Having said all the above, their demo *DOES* work in MSIE9 for me.
http://projectseven.com/tutorials/na...e/workpage.htm

So it's likely you are doing something wrong.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Users who have thanked Old Pedant for this post:
rph1981 (08-18-2012)
Old 08-18-2012, 10:08 AM   PM User | #5
rph1981
New to the CF scene

 
Join Date: Aug 2012
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
rph1981 is an unknown quantity at this point
Smile

Thanks to everyone for taking the time out to post on this thread. As I said, I am a complete and utter amateur. I only know css and html. The funny thing is the code all validates so it seems weird to me that it works on every browser except IE9. Don't suppose anyone can point me in the direction of any halfway decent dropdown menu JavaScript code?

Thanks again.
rph1981 is offline   Reply With Quote
Old 08-18-2012, 10:20 AM   PM User | #6
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,601
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Why do you insist on JavaScript? Dropdown menus just with CSS have been possible for years now. Only IE 6’s (and earlier) lack of support of :hover on anything but anchors was a reason why a JavaScript workaround was necessary. But IE 6 (and moreso older versions) can safely be disregarded nowadays.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Old 08-18-2012, 10:22 AM   PM User | #7
rph1981
New to the CF scene

 
Join Date: Aug 2012
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
rph1981 is an unknown quantity at this point
Quote:
Originally Posted by VIPStephan View Post
Why do you insist on JavaScript? Dropdown menus just with CSS have been possible for years now. Only IE 6’s (and earlier) lack of support of :hover on anything but anchors was a reason why a JavaScript workaround was necessary. But IE 6 (and moreso older versions) can safely be disregarded nowadays.
Thanks mate. Ya, I am seeing a few CSS dropdown menus which should make things much easier for me.
rph1981 is offline   Reply With Quote
Reply

Bookmarks

Tags
ie9

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:57 AM.


Advertisement
Log in to turn off these ads.