can’t execute code from a freed script
-
Hi,
I am trying to redirect my current website to my wordpress.com 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() {
oldonload();
func();
}
}
}Does anybody know of a solution? Or is this an IE 7 beta2 problem? You can see the problem live by going to:
http://www.osgis.nl -
It’s nothing to do with IE7.
WordPress.com 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.
Collin
-
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.
-
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: //osgis.wordpress.comNote space added after the colon to get it to display correctly.
-
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:// osgis.wordpress.com/ [R=301,L] -
Osgis – my apologies, I completely read your first post wrong. teach me for “popping in” won’t it!
Glad you got it sorted. :)
- The topic ‘can’t execute code from a freed script’ is closed to new replies.