Need help? Check out our Support site, then

can't execute code from a freed script

  1. Hi,

    I am trying to redirect my current website to my blog, but I get a javascript error in IE 7 beta2 when trying that, can't execute code from a freed script, line 27:

    The problem is somewhere here:
    function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
    window.onload = func;
    } else {
    window.onload = function() {

    Does anybody know of a solution? Or is this an IE 7 beta2 problem? You can see the problem live by going to:

  2. It's nothing to do with IE7. blogs do not allow the use of javascript. It is stripped when the page/widget/post is saved. This is due to the security implications of javascript.

    drmike (a few days ago) posted links to reports on gmail, myspace and I think blogger being hacked because they allowed javascript.


  3. Yes, but shouldn't the template I am using then be updated and the javascript removed? The javascript is in the template. I am using the Regulus 2 template.

  4. He's trying to load and run the script over at his old site I believe.

    I would think that this would be better handled with a htaccess redirect.

    redirect permanent * http: //

    Note space added after the colon to get it to display correctly.

  5. Okay, thanks for the tip.

    I got it to work by placing an empty index.htm and the following .htaccess:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} .
    RewriteCond %{HTTP_HOST} !^osgis\.wordpress\.com [NC]
    RewriteRule ^index.htm$ http:// [R=301,L]

  6. Osgis - my apologies, I completely read your first post wrong. teach me for "popping in" won't it!

    Glad you got it sorted. :)

Topic Closed

This topic has been closed to new replies.

About this Topic