PDA

View Full Version : Onmouseover of the flash button getting "SCRIPT5007: Object expected" in IE



venkatesh teja
21 Feb 2014, 3:07 AM
Hi...

Onmouseover of the flash browse button getting "SCRIPT5007: Object expected" in IE. How can i solve this
error...?

Can any one please help me... Thanks in advance...

venkatesh teja
21 Feb 2014, 5:33 AM
Hi...

I got the solution for my problem. Please check below solution aproach...

IE9 seems to have a bug with SWFUpload embeds, whereby if you try to call "getAttribute / removeAttribute / setAttribute" on the element, an "object expected" error is raised. And I found that the cleanUp() function in the swfupload.js remove all the js functions including "getAttribute / removeAttribute / setAttribute" from the object DOM in IE9.
To fix this issue
In SWFUpload.prototype.cleanUp
Change:

if (typeof (movieElement[key]) === "function")To:

if (typeof (movieElement[key]) === "function" && key[0] <= 'Z') // Remove only Flash functions (starts with capital letters).