deanagit / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

opera error #497

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. probably using it in opera right after on load

What is the expected output? What do you see instead?
expected is to make the object but throws the following error:

Uncaught exception: TypeError: Cannot convert 'c(Z).style' to object

Error thrown at line 4, column 15607 in w(Z, X) in 
http://localhost/javascripts/swfobject.js:
    c(Z).style.visibility=Y
called from line 4, column 17733 in <anonymous function: embedSWF>() in 
http://localhost/javascripts/swfobject.js:
    w(ah,true)
called from line 4, column 4234 in K(X) in 
http://localhost/javascripts/swfobject.js:
    X()
called from line 4, column 17243 in <anonymous function: embedSWF>(ab, ah, ae, 
ag, Y, aa, Z, ad, af, ac) in http://localhost/javascripts/swfobject.js:
    K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})
called from line 322, column 4 in <anonymous function: 
WebSocket.__initialize>() in http://localhost/javascripts/web_socket.js:
    swfobject.embedSWF(

What version of the product are you using? On what operating system?
2.2 on ubuntu with opera 10.60

Please provide any additional information below.
I am using it with websocket.js, and it just fairly initializes. most of the 
time it doesn't.

Original issue reported on code.google.com by strand.e...@gmail.com on 21 Aug 2010 at 3:30

GoogleCodeExporter commented 9 years ago
here's the error with the src:
Uncaught exception: TypeError: Cannot convert 'getElementById(id).style' to 
object

Error thrown at line 579, column 3 in setVisibility(id, isVisible) in 
http://127.0.0.1/javascripts/swfobject.js:
    getElementById(id).style.visibility = v;
called from line 682, column 7 in <anonymous function: embedSWF>() in 
http://127.0.0.1/javascripts/swfobject.js:
    setVisibility(replaceElemIdStr, true);
called from line 141, column 3 in addDomLoadEvent(fn) in 
http://127.0.0.1/javascripts/swfobject.js:
    fn();
called from line 651, column 4 in <anonymous function: embedSWF>(swfUrlStr, 
replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, 
flashvarsObj, parObj, attObj, callbackFn) in 
http://127.0.0.1/javascripts/swfobject.js:
    addDomLoadEvent(function() {
called from line 322, column 4 in <anonymous function: 
WebSocket.__initialize>() in http://127.0.0.1/javascripts/web_socket.js:
    swfobject.embedSWF(

Original comment by strand.e...@gmail.com on 21 Aug 2010 at 3:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Without seeing your code (or a link) we can't determine if this is a bug or 
implementation error.  However, getElementById(id).style is only used in the 
setVisibility function, and can be avoided by using switchOffAutoHideShow().

http://code.google.com/p/swfobject/wiki/api#swfobject.switchOffAutoHideShow%28%2
9

I'm closing this ticket, but if you feel it needs to be investigated further, 
please post a reply and we can discuss.

Thanks!

Original comment by platelu...@gmail.com on 8 Nov 2010 at 7:19