This issue stems from this one regarding an error in Internet Explorer and js/base.js in views.

http://drupal.org/node/798764

Message: Object doesn't support this property or method
Line: 69
Char: 5
Code: 0
URI: http://xxx/sites/all/modules/contrib/views/js/base.js

I also found it only throws this base.js error when the Shadowbox module is on. There is probably a script or function that is causing this that is in several different modules, but I it looks like Shadowbox is the only culprit in my case.

So I use the patch found in this thread: http://drupal.org/node/798764

After running the IE development tool it gave me the error that jQuery was undefined in place of my old error. It was caused by this line:

jQuery.extend(Drupal.settings, { "basePath": "/", "views": { "ajax_path": [ "/views/ajax", "/views/ajax" ], "ajaxViews": [ { "view_name": "home_posts", "view_display_id": "panel_pane_1", "view_args": "", "view_path": "front_page", "view_base_path": null, "view_dom_id": 7, "pager_element": 0 }, { "view_name": "home_district_standings", "view_display_id": "default", "view_args": "356", "view_path": "front_page", "view_base_path": null, "view_dom_id": 9, "pager_element": 0 } ] }, "beautytips": { "calendar-tooltips": { "cssStyles": [  ], "cssSelect": ".mini-day-on a", "contentSelector": "$(this).next().html()", "trigger": [ "mouseover", "mouseout" ], "list": [ "cssStyles", "contentSelector", "trigger" ] } } });

It is a line contained in a script tag that seems to be printed into my html page. It contains all of my views that use ajax ("home_posts" -uses ajax pager, and "home_district_standings" - uses ajax sorting). Any ideas?

I am using using Views 6.x - 2.11, and Shadowbox module 6.x - 4.2 with Shadowbox.js 3.0.3.

CommentFileSizeAuthor
#6 base.js_ie_error-951494-6.patch689 bytesdkingofpa

Comments

jm.federico’s picture

Category: bug » support

Lets see if we can fix this.

Changes status to support request for now, because the bug was fixed with the patch from #798764-26: base.js line 67 chrome, variable pairs[i] sometimes contain functions and not only stings

And I think the problem is you used the patch from #798764-4: base.js line 67 chrome, variable pairs[i] sometimes contain functions and not only stings

The patch i think you used is known not to work on IE.

Please roll back, and apply #798764-26: base.js line 67 chrome, variable pairs[i] sometimes contain functions and not only stings and report back.

Federico

acondiff’s picture

If I understood you correctly, I need to replace

for(var i in pairs) {

with

for (var i = 0; i < pairs.length; i++) {

only. I actually used the first patch along with this patch. So I rolled back and only used the second patch and it worked.

I have another problem with IE8 though which is probably not related (it could be, and tell me if it is).

When I load the page at the bottom left it says "Done" without the yellow icon. So it loads without any error. When I click a link loading an external google map using shadowbox, the shadowbox pops up in the correct size, but I get this error:

Unable to modify the parent container element before the child element is closed.

Any thoughts? I might need to open a issue in the Shadowbox module queue but your ideas are welcome if you have any.

Thanks.

jm.federico’s picture

Status: Active » Fixed

That is definitely a shadowbox error, and unfortunately I do not use shadowbox :(

But well, one problem solved.

Sorry I can't help with the new one.

Cheers

Marking as fixed

acondiff’s picture

Thank you for your help. =)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

dkingofpa’s picture

Version: 6.x-2.11 » 6.x-2.12
StatusFileSize
new689 bytes

Attaching a patch that worked for me in case others come across this issue. It was rolled against 6.x-2.12, but it's a simple patch and can probably be used on other versions.