1

Topic: IE in compatibility mode

Hi,
I'm still on Drupal 6 and some of my users who are using Internet Explorer in compatibility mode cannot see the My Records report. Just a blank area where the map should be and several empty grids (I assume these are grids that ordinarily would display on the 'Records' 'Species' 'Taxon groups' etc. tabs).

I've checked on iRecord in IE compatibility mode  amd while the map, tabs and records grid shows, the Create a filter function doesn't. I would be interested to know what is controlling the visibility of these features - is it simply down to the CSS not coping the IE in compatibility mode?
Thanks,
Fiona

PS our users in government have no choice on the browser they use which means I need to solve this. If someone else has already solved it, it will take me a lot less time to figure out the solution specific to our site.

Post's attachments

error.jpg 125.87 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.
Fiona McCrory
CEDaR Website Officer
www.nmni.com/cedar

2

Re: IE in compatibility mode

Hi Fiona

I think I understand that, with IE in compatibility mode,
a. some (or all?) users cannot see the map and grids on the My Records report on your website.
b. you can see the map and grids on the My Records report on the iRecord website (but cannot use the filter).

I presume the users in a. can use iRecord and that you can't use your My Records page, i.e that the problem is consistent.

Is the question, "Why does My Records work on iRecord but not on my site using IE in compatibility mode?"

(BTW1, I tried the filter on IRecord My Records using IE9 in compatibility mode and the filter buttons vanish at the end of the animation that reveals them. If I press the Create a Filter button a second time they appear.)

(BTW2, I am seeing stuff online about serving content that tells IE not to use compatibility mode. E.g. http://stackoverflow.com/questions/3449 … sing-tags)

Jim Bacon.

3

Re: IE in compatibility mode

Hi Jim,
Yes, I guess my question is - why does it work in iRecord and not mine...

I had a play with iRecord again and see you are right - the filter functionality appears when you click again.

Thanks for the link. I'll have a look and see where to implement this.

Fiona

Fiona McCrory
CEDaR Website Officer
www.nmni.com/cedar

4

Re: IE in compatibility mode

Hi Fiona,

I've had a look and you are getting JavaScript errors when in compatibility view.

Here's a random thought.
How about you go to Site Configuration > Performance and enable Optimize JavaScript and CSS files.
This is a difference between your site and iRecord.

I don't think you are going over the 31 CSS files limit and I don't think there is a limit on JS files but, if it works, it would be an easy fix.

Jim.

5

Re: IE in compatibility mode

Hi Jim,
I've tried that but sadly it hasn't worked. I can see that I am getting a 'jQuery' is undefined error and an 'IndiciaData' is undefined error where iRecord is not. I simply cannot see where it should be defined... am I possibly missing a file somehow?
Fiona

Fiona McCrory
CEDaR Website Officer
www.nmni.com/cedar

6

Re: IE in compatibility mode

Hi Fiona

The first JavaScript error that I see is

SCRIPT1028: Expected identifier, string or number 
jquery.indiciaMapPanel.js?c, line 2376 character 1

This prompted me to do a diff between your version of indiciaMapPanel.js and the iRecord one. They are significantly different. Obviously that is not a problem in general because everything works fine until you hit compatibility mode. However there is one minor difference in the neighbourhood of the reported error which I think is the problem.

Would you like to edit your copy of the file (in all/modules/iform/media/js) and remove the comma at the end of line 2374 so that it reads as follows,

hlpCustomPolygon: "Excellent! A custom polygon has been drawn for this record."

Jim Bacon.

7

Re: IE in compatibility mode

Genius Jim!

That has worked. Thank you so much!

I have no idea why my file is so different to the iRecord one as I updated my iform module to what I thought was the latest version at the end of November. This development moves fast!

Many thanks,
Fiona

Fiona McCrory
CEDaR Website Officer
www.nmni.com/cedar

8

Re: IE in compatibility mode

Hi Fiona,

It could be that you are more up to date than iRecord. The naughty comma existed in the code repository so I have committed a fix, r8640.

Jim Bacon