[Javascript] problem with swfobject.js

Schalk schalk at volume4.com
Mon May 15 17:54:30 CDT 2006


Greetings All!

I am using swfobject.js to include flash on a website. Both IE and 
Firefox complains about the following snippet of code:

if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof _20=="string")?document.getElementById(_20):_20;
n.innerHTML=this.getSWFHTML();
return true;
}else{
if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}
return false;}};

In particular, it complains about the 'n' variable stating that it has 
no properties in FF and IE says Object expected. Has anyone else come 
across this problem? Any ideas on how to fix this? Thanks!

-- 
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Business.Solution.Developers





More information about the Javascript mailing list