Hi Friends,

I am using Jstools and the tabs module. I created a module wherein I called for a tabbed content in a custom page for which i created a menu callback. However, when i load that page in IE, it gives me the following error:

"Internet Explorer cannot open the Internet site http://localhost/drupal/.
Operation aborted

This works perfect in Mozilla Firefox..

I read something on the net and found that IE throws errors with javascript loading within tables or divs. The fix was to put the JavaScript in the onLoad event in body tags.

I have got no clue as to how to achieve this with this module.. can anyone help me out of this?

below is the code i am using to generate the tabs:


function get_pb_tokens(){

$tab1content='THIS IS THE TOOLS SECTION.';
$tab2content='THIS IS THE ROOMS SECTION.';

$form = array();

  $form['pb_tokens'] = array(
    '#type' => 'tabset',
  );
  
  $form['pb_tokens']['tab1'] = array(
    '#type' => 'tabpage',
    '#title' => t('TOOLS'),
    '#content' => $tab1content,
	'#weight'=>1
  );
  $form['pb_tokens']['tab2'] = array(
    '#type' => 'tabpage',
    '#title' => t('ROOMS'),
    '#content' => $tab2content,
	'#weight'=>2
  );
 
  return tabs_render($form);

}


 
CommentFileSizeAuthor
#14 gorge_ie6_error.jpg189.9 KBGripMediaDotNet
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Xabi’s picture

Same issue here, not with tabs, but with active search.

nvl.sateesh’s picture

Hi... can anyone help out of this please?

Xabi’s picture

Anyone? This is really critical... the module is unusable.

ahoria’s picture

Subscribing. I get the "operation aborted" error in IE6. I am using Javascript Tabs together with the CCK Fieldgroup Tabs module.

This appears to be caused by a known bug in IE6, related to DOM handling.

ahoria’s picture

After more digging, I narrowed the problem to this: http://drupal.org/node/173780

The fix there has helped me.

nedjo’s picture

After more digging, I narrowed the problem to this: http://drupal.org/node/173780

In your case, then, it appears that the bug is not in tabs but rather in the content/js that's included on particular tabs.

Is this true for others?

Xabi’s picture

Nope... I get that error in the Search frontpage and Search results page, nothing to do with Youtube videos.

Foodster’s picture

i had similar problem, but i found out that it is working fine if i used the jstools 5.x-0.6 . guys try it out, to see if it solved the problem.

Foodster’s picture

duplicate post.

wolfderby’s picture

I'm also getting this error and updating the files to the latest version did not help me :(

Although after further testing I found it wasn't cued by jstools tabs at all, but by a DOM handling error in IE regarding embedded youtube videos.

Here's the fix that worked for me.

http://drupal.org/node/173780#comment-623329

Good luck!

GripMediaDotNet’s picture

Hello all:

this is a classic example of how unhelpful a thread can be. The original poster asked about TABS. And in the end it becomes about embedding a YouTube video.

Like the original poster, I have a critical bug with the TABS and operation aborted. Referring me to a long thread about a youtube video embedding is NOT helpful at all.

Obviously it is a problem with the DOM on IE 6.

What is the specific workaround with this TAB problem?

-gripmedia

nedjo’s picture

I have not seen this error, but have not tested extensively with IE 6.

If one of the users with an error would like to point me (via an email to my contact page) to a test page with the error present, I'll try to take a look.

This general error appears to occur when content is loaded prematurely by IE 6. Adding defer="defer" to a script tag may help. TBD: does the error occur when specific types of content (involving JS) are included on tabs?

GripMediaDotNet’s picture

nedjo:

I will email you the link. We have been stumped around here and we're pretty knowledgable. Thanks for the offer to help!

- gripmedia.net

GripMediaDotNet’s picture

FileSize
189.9 KB

site is http://new.gorge.net that renders the error in IE 6.0

Jody Lynn’s picture

Status: Active » Closed (fixed)

I worked with GripMedia on his site and his error was due to other javascript on the page, unrelated to jstools.

GripMediaDotNet’s picture

Yes thank you Lynn:

More specifically, we had another javascript on the page that was causing a conflict. This was unnecessary JS that was hand-coded in the template.

How we debugged:

1) We rendered the page out, copied the source and made a straight up HTML page and placed it in root. We were able to duplicate the error even in plain HTML. So that told us that it was not related to Drupal rendering from the database.

2) Lynn began removing javascript one by one until the error went away.

3) We removed offending javascript.

4) We rejoiced.

Moral of this story is, deconstruct your page, and see if you have any JS you have added either by hand or by a module.

This may not always be the culprit in every instance, but was in our case...

ps: LYNN rocks!

bobmarchman’s picture

I experienced an issue with the Tabs module today, exhibiting the same behavior and error message as described above in Internet Explorer 6 and 7.

Here's some details:

Drupal 5.7
jsTools module enabled w/ Tabs module enabled (only contrib modules enabled)

I debugged by trial and error, enabling and disabling modules until the error stopped appearing. Once I disabled the Tabs module, and had jsTools as the *only* contrib module enabled on the site, the error stopped. Once I enabled the module again, the error started up again.

If you need any more info, I'd be happy to provide it.

xDudditzx’s picture

I went through the same copy to html debug as GripMediaDotNet
and found the offending javascript to be swfobject.js
Does anyone know why this is happening?
Has anyone found a solution?

nedjo’s picture

This error has nothing to do with JStools or tabs. It's a well known problem with swfobject and IE. You need to use a defer="defer" attribute on your swfobject script. For more info, do a web search for:

swfobject "operation aborted"

cristele’s picture

thanks nedjo,
I do have the same error and your answer was helpful...although WHERE do I set the defer="defer" boolean?

http://blog.deconcept.com/swfobject/forum/discussion/58/ie67-operation-a...

Sorrif the question sounds awkward, jsut no idea where my js is that causes this issue

pfournier’s picture

I had the same problem, twice.

First time was with jstools, using the tabs. I had to upgrade to jstools 5.x-1.0.

Second time, it was caused by swfobject. I had code like this somewhere in my page:

<script type="text/javascript" src="http://some.place/flashplayer/swfobject.js">
<div id="player">
<script type="text/javascript">
var so = new SWFObject('http://some.place/flashplayer/mediaplayer.swf','mpl','280','392','8');
// more settings
so.write('player');
</script>
</div>

which I replaced with this php code (make sure you page includes jquery.js)

drupal_add_js('flashplayer/swfobject.js');

$code = <<<EOF
$(document).ready(function() {
var so = new SWFObject('http://some.place/flashplayer/mediaplayer.swf','mpl','280','392','8');
// more settings
so.write('player');
});
EOF;

drupal_add_js($code, 'inline');

and this HTML:

<div id="player">
</div>

No defer headache. Thanks JQuery !

deadrich’s picture

Thanks pfournier! The defer trick was not working for me, but your code worked. Now I am not getting the Operation Aborted messages on IE.

Next up is to figure out how to display a static image for users on mobile devices without flash installed.

Thanks again!

mzytaruk’s picture

I get this same issue on pages with embedded videos (youtube). I have a tabbed section on the video page, and it errors in IE. I have found two solutions (neither of which are good solutions, but they may narrow down what the problem is). 1) uninstall jstabs/jstools or 2) remove the

tags, leaving only the embed tags. So, it seems that there is some conflict between these going on, since the tabs work flawlessly on every other page, and the youtube video works fine when there is no tabs being loaded. (please note that i am just adding these youtube videos directly, not using swfobject or anything else. I am literally just copying and pasting from youtube) Any ideas?
dobe’s picture

Status: Closed (fixed) » Active

Iv found that using fade_slideshow module + tabs cause this error seems like they may be conflicting if anyone has a fix to use them in conjunction with each other that would be great. I am working on figuring out the solution myself.