banner image
Sedang Dalam Perbaikan

Fix: IE7 with Sitemeter: Operation aborted

Update: Sitemeter has fixed the bug (click). Now, you may return the Sitemeter script wherever you like. The text below therefore becomes interesting for curious minds only.
This posting is primarily addressed to those webmasters who experience a similar problem.



If your web page contains a Sitemeter counter, Internet Explorer users eventually see an "Operation aborted" error message. Once they click OK, the whole page disappears and is replaced by a blank page.
Quick fix: If you don't need Sitemeter so much and you want to simplify the life of 1/2 of your visitors, just remove the Sitemeter portion of your HTML code. Otherwise, continue to read.
The behavior began yesterday because Sitemeter updated their scripts. Unfortunately, they forgot about a bug of the Internet Explorer that has been causing a similar "Operation aborted" error with many scripts (for example, this blog used to have a "welcome message" that identified your place: it used to crash MSIE, too). See a technical explanation of the bug at
Microsoft Knowledge Base 927917.
If a Javascript tries to append a body element to an object that is not directly embedded below <body>, but it is within an internal table or a similar hierarchy instead, the operation will fail. In other words, all Javascripts that appear inside tables and other modules are at risk.




This bug should be fixed in Internet Explorer 8. (You may download IE8 beta 1 now.) It is also absent in Firefox 3.0.1 and Opera 9.51 which are also faster than MSIE 7 and which are recommended to the visitors.

Meanwhile, there are several methods to fix the problem on the webmaster's side. One of them is to use the simplified, script-free counter:
<a href="http://s24.sitemeter.com/stats.asp?site=s24lumidek" target="_top">
<img src="http://s24.sitemeter.com/meter.asp?site=s24lumidek" alt="Site Meter" border="0"/></a>
Obviously, s24 and s24lumidek must be replaced by your identifiers. The disadvantage is that the icon is actually not displayed now, due to another bug. But you will see all the information about your visitors, except for the referring URL. They are counted.

Alternatively, you may study the Microsoft pages above and try to modify your script (learn Javascript e.g. from the book on the left side). For example, you can insert a condition that identifies the browser and if it is MSIE, you will run no script - or the simplified one without Javascript.

If you can move your Sitemeter Javascript out of all the tables etc., good for you. What I personally did on my blogger.com blog - hopefully temporarily - is a rather extreme version of this solution:
Go to the dashboard, choose "Layout", "Edit HTML", scroll to the bottom, and include the ordinary full Sitemeter Javascript (with the counter.js source from the Sitemeter website) right before </body> at the end of the HTML template. Preview and save the template. The counter will appear at the very bottom of your blog. Don't forget to remove (or uncomment) the old copy of the Sitemeter from the bulk of your web page.
Sitemeter will hopefully fix this bug soon and we will be able to move the counter wherever we like. Moreover, I hope that Microsoft will fix this general bug of MSIE browsers.

And finally, one more advise for the visitors of the Internet who encounter important crashing websites with the Sitemeter (whose webmasters haven't yet fixed the problem) and who can't or don't want to change their IE7 browser: Add Sitemeter among the restricted sites.
1. Open "Tools" / "Options" in the menu
2. Click "Security" tab
3. Select "Restricted Sites"
4. Click "Sites" button
5. Under "Add this website to this zone", enter "*.sitemeter.com" without the quotes
6. Click "Add" button
7. Close windows using "Close" or "OK", not "Cancel".

After that, and without a restart, Sitemeter's thwartage is thwarted!
Thanks to papertiger for reporting the error.

Summary

Many alternative solutions are written above. Because they may look somewhat chaotic, let's summarize them. IE7 users may
  1. download IE8 beta 1 (beta 2 will be released next week)
  2. download Firefox
  3. download Opera
  4. add Sitemeter.com among restricted sites
The owners of the affected blogs may
  1. remove the Sitemeter Javascript completely
  2. replace the Sitemeter Javascript by the script-free HTML code
  3. move the Sitemeter Javascript out of the tables, e.g. at the end of the document
  4. write down an extra script that blocks the Sitemeter Javascript from IE users (please post details as a comment if you can do it)
Virtually all these recipes are described in this article (read it again!). ;-)
Fix: IE7 with Sitemeter: Operation aborted Fix: IE7 with Sitemeter: Operation aborted Reviewed by DAL on August 02, 2008 Rating: 5

No comments:

Powered by Blogger.