/    Sign up×
Community /Pin to ProfileBookmark

"operation aborted" is killing me!

I seem to get a troubling error with Internet Explorer 7 and 6: [url]http://www.courageunfettered.com/xtra/error.png[/url]

This is a screenshot of the page in question: [url]http://www.andkon.com/arcade/tetris/samegameflash/[/url]

After I click okay, the page finishes loading, then I get a white default not found error screen from IE. If I reload the page, it usually reloads without errors. Now, I cannot replicate this error: it sometimes happens, but mostly it doesn’t. I’ve been trying for half-hour to get it again, but it doesn’t happen now. It happens with other pages on the site.

Microsoft says it happens with special cases of appendChild or innerHTML: [url]http://support.microsoft.com/default.aspx/kb/927917[/url]

Here’s another explanation concerning appendChild: [url]http://preview.tinyurl.com/2tts6a[/url]

The site, however, *does not* use appendChild or innerHTML. I’ve been trying to fix this error but I can’t seem to even know why it happens.

to post a comment
JavaScript

13 Comments(s)

Copy linkTweet thisAlerts:
@pcx99Feb 18.2007 — <i>
</i>&lt;!-- ValueClick Media 468x60 and 728x90 Banner CODE for andkon.com --&gt;
&lt;script language="javascript" src="http://media.fastclick.net/w/get.media?sid=27033&amp;m=1&amp;tp=5&amp;d=j&amp;t=s"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://media.fastclick.net/w/click.here?sid=27033&amp;m=1&amp;c=1" target="_top"&gt;
&lt;img src="http://media.fastclick.net/w/get.media?sid=27033&amp;m=1&amp;tp=5&amp;d=s&amp;c=1"
width=728 height=90 border=1&gt;&lt;/a&gt;&lt;/noscript&gt;
&lt;!-- ValueClick Media 468x60 and 728x90 Banner CODE for andkon.com --&gt;


This is your culprit.

It calls a script: http://media.fastclick.net/w/get.media?sid=27033&m=1&tp=5&d=j&t=s

(which is retarded how they do it btw)

and this script calls a script:

http://cdn.fastclick.net/fastclick.net/expando_reloaded.js

And deep down in this script, inside the <body> object which is where IE7 discoveres the "operation aborted" error of death (wherefore art thou blue screen!?) we stumble upon...

<i>
</i>
<i> </i> e.innerHTML = t;

<i> </i> n.appendChild(e);
<i> </i> x.appendChild(n);
<i> </i> d.body.appendChild(x);


remove the ad and your site should start working again.

[/code]
Copy linkTweet thisAlerts:
@bobthemanauthorFeb 18.2007 — [B]Thanks a lot.[/B] A few questions to clarify:

  • 1. Is there anything else on the page that could be causing this? (I'm betting that it's too... the frontpage has no ads and never have I seen the "operation aborted" message there)

  • 2. The first fastclick.net URL you linked to shows the different ads so they change often meaning not every ad causes the operation aborted. Am I right?

  • 3. Is there any solution to this apart from taking the ads down until they get fixed? (I read somewhere, don't ask!, about defer attributes...)


  • I've contacted Valueclick and the author of this script.
    Copy linkTweet thisAlerts:
    @pcx99Feb 18.2007 — [B]Thanks a lot.[/B] A few questions to clarify:

  • 1. Is there anything else on the page that could be causing this? (I'm betting that it's too... the frontpage has no ads and never have I seen the "operation aborted" message there)

  • 2. The first fastclick.net URL you linked to shows the different ads so they change often meaning not every ad causes the operation aborted. Am I right?

  • 3. Is there any solution to this apart from taking the ads down until they get fixed? (I read somewhere, don't ask!, about defer attributes...)


  • I've contacted Valueclick and the author of this script.[/QUOTE]


    1] there may be other scripts on the page which could be causing it yes. I stopped looking when I found something which would crash IE7.

    2] Yes the first javascript can load different items at different times it may not always attempt to attach an object to a body which has not yet finished loading.

    3] You can contact your ad system and see if they have any resolutions to the problem. You can remove the...

    &lt;div class="advertisement"&gt;

    &lt;/div&gt;


    wrapper from around the banner, this would make the script element a direct child of the body tag and should eliminate the error.

    If all else fails you can create an iframe with...
    &lt;body class="advertisement"&gt;

    That will keep the same basic styles and ensure the script tag is a direct child of the iframe's body element which SHOULD, maybe work around the problem.
    Copy linkTweet thisAlerts:
    @bobthemanauthorFeb 18.2007 — I took the div container out from

    <i>
    </i>&lt;div class="advertisement"&gt;
    {valueclick code}
    &lt;/div&gt;


    and I haven't seen IE give me any operation aborted messages. (Now it's not centered, but that's a whole lot better than random error messages.) [b]If anyone else still gets error messages, please report them.[/b] I appreciate it, thanks.

    pcx99, did you get an error on your first time or did you have to reload a few times?

    2] Yes the first javascript can load different items at different times it may not always attempt to attach an object to a body which has not yet finished loading.[/quote]

    Does this also mean that if the body loads completely before the javascript executes, there will be no error?

    Thanks gain!
    Copy linkTweet thisAlerts:
    @pcx99Feb 18.2007 — I took the div container out from

    <i>
    </i>&lt;div class="advertisement"&gt;
    {valueclick code}
    &lt;/div&gt;


    and I haven't seen IE give me any operation aborted messages. (Now it's not centered, but that's a whole lot better than random error messages.) [b]If anyone else still gets error messages, please report them.[/b] I appreciate it, thanks.

    pcx99, did you get an error on your first time or did you have to reload a few times?



    Does this also mean that if the body loads completely before the javascript executes, there will be no error?

    Thanks gain![/QUOTE]


    I used firefox, I don't get errors ? I knew about the problem though because I encountered something similar when I created a dynamic division in my floating video package.

    It's not a matter of the body loading completely it's a matter of the <script> being directly attached to the <body>. That is...

    <i>
    </i>&lt;body&gt;
    &lt;p&gt;
    &lt;center&gt;&lt;/center&gt;
    &lt;div&gt;&lt;/div&gt;
    &lt;script&gt;
    &lt;/body&gt;

    is ok but...

    &lt;body&gt;
    &lt;div&gt;&lt;script&gt;&lt;/div&gt;
    &lt;/body&gt;

    is not.


    That's why an iframe will work. You can center it and do whatever else you want and the ad will appear in the iframe with nothing between the script and the body because an iframe is in effect its own self contained universe.
    Copy linkTweet thisAlerts:
    @bobthemanauthorFeb 18.2007 — &lt;body&gt;
    &lt;div&gt;&lt;script&gt;&lt;/div&gt;
    &lt;/body&gt;


    Yeah, I completely understand now, yes. As far as iframe, I'll have to see how that works out.

    I'm extremely surprised I can't find anything online about this error relating to valueclick/fastclick code. It's a big company so you'd think more people would have noticed (I doubt I'm the only person who thought of centering the code).
    Copy linkTweet thisAlerts:
    @bobthemanauthorFeb 18.2007 — Ahhh, rats... It happened again, after I removed the divs around the ad code... I got the error, the default page, and then when I refreshed, the page worked. Dang, I'm not sure what to do now :-(

    Although half an hour later, I still haven't gotten another error and over at browsershots.org, I don't seem to be getting any more screenshots with error messages in them. I don't know...
    Copy linkTweet thisAlerts:
    @konithomimoFeb 18.2007 — You can also put all of your code into a function and then use an onload to call it. Onload calls happen after the document has completely loaded. Or you can write a function to create the script objects and append them to the document, and then call that function onload.
    Copy linkTweet thisAlerts:
    @bobthemanauthorFeb 18.2007 — You can also put all of your code into a function and then use an onload to call it. Onload calls happen after the document has completely loaded. Or you can write a function to create the script objects and append them to the document, and then call that function onload.[/QUOTE]

    The problem is I don't control any of that code. The only code I control is a half a dozen lines for a bookmark script.
    Copy linkTweet thisAlerts:
    @bobthemanauthorFeb 18.2007 — Problem might be solved... The operation aborted errors usually came up with one specific kind of ad, one that used http://cdn.fastclick.net/fastclick.net/expando_reloaded.js

    I have filtered out those specific expandable ads and I hope this error goes away. Although I'm not sure why the errors still persisted when I took the div away from the code.
    Copy linkTweet thisAlerts:
    @konithomimoFeb 18.2007 — Problem might be solved... The operation aborted errors usually came up with one specific kind of ad, one that used http://cdn.fastclick.net/fastclick.net/expando_reloaded.js

    I have filtered out those specific expandable ads and I hope this error goes away.[/QUOTE]

    I guess that pcx99's first post was correct then, seeing how that is what the post said.
    Copy linkTweet thisAlerts:
    @bobthemanauthorFeb 19.2007 — What I don't understand is why the errors happened even when the div was taken away from around the ad code. Hopefully this is behind me.
    Copy linkTweet thisAlerts:
    @bobthemanauthorFeb 19.2007 — Well, I'm 100% convinced now that it's that expando_reloaded.js file that's causing all the problems. I've seen another site that serves the same ad that uses the file and I get the same error. Thanks for your help pcx99!
    ×

    Success!

    Help @bobtheman spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...