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);
}
Comment | File | Size | Author |
---|---|---|---|
#14 | gorge_ie6_error.jpg | 189.9 KB | GripMediaDotNet |
Comments
Comment #1
Xabi CreditAttribution: Xabi commentedSame issue here, not with tabs, but with active search.
Comment #2
nvl.sateesh CreditAttribution: nvl.sateesh commentedHi... can anyone help out of this please?
Comment #3
Xabi CreditAttribution: Xabi commentedAnyone? This is really critical... the module is unusable.
Comment #4
ahoria CreditAttribution: ahoria commentedSubscribing. 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.
Comment #5
ahoria CreditAttribution: ahoria commentedAfter more digging, I narrowed the problem to this: http://drupal.org/node/173780
The fix there has helped me.
Comment #6
nedjoIn 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?
Comment #7
Xabi CreditAttribution: Xabi commentedNope... I get that error in the Search frontpage and Search results page, nothing to do with Youtube videos.
Comment #8
Foodster CreditAttribution: Foodster commentedi 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.
Comment #9
Foodster CreditAttribution: Foodster commentedduplicate post.
Comment #10
wolfderby CreditAttribution: wolfderby commentedI'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!
Comment #11
GripMediaDotNet CreditAttribution: GripMediaDotNet commentedHello 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
Comment #12
nedjoI 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?
Comment #13
GripMediaDotNet CreditAttribution: GripMediaDotNet commentednedjo:
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
Comment #14
GripMediaDotNet CreditAttribution: GripMediaDotNet commentedsite is http://new.gorge.net that renders the error in IE 6.0
Comment #15
Jody LynnI worked with GripMedia on his site and his error was due to other javascript on the page, unrelated to jstools.
Comment #16
GripMediaDotNet CreditAttribution: GripMediaDotNet commentedYes 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!
Comment #17
bobmarchman CreditAttribution: bobmarchman commentedI 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.
Comment #18
xDudditzx CreditAttribution: xDudditzx commentedI 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?
Comment #19
nedjoThis 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"
Comment #20
cristele CreditAttribution: cristele commentedthanks 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
Comment #21
pfournier CreditAttribution: pfournier commentedI 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:
which I replaced with this php code (make sure you page includes jquery.js)
and this HTML:
No defer headache. Thanks JQuery !
Comment #22
deadrich CreditAttribution: deadrich commentedThanks 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!
Comment #23
mzytaruk CreditAttribution: mzytaruk commentedI 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?Comment #24
dobe CreditAttribution: dobe commentedIv 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.