Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorushi
    • CommentTimeJul 6th 2007 edited
     
    Today I noticed quite odd issue.
    When i use SWFObject with "addParam("wmode", "transparent");" all the input-fields refuse to understand special letters (ex. @ÄÅÖ).
    In Internet Explorer it works, but not in Firefox.

    I got "@" working using english commands (shift+2) but scandic command (altgr+2 or ctrl+alt+2) doesn't work.
    Also small "äöå" works but cap's don't

    (Notice: i didn't change windows keyboard language)

    EDIT: Sorry, i found another post with the same problem, but has anyone got a sollution for this yet?
    • CommentAuthorAran
    • CommentTimeJul 6th 2007
     
    No. No solution that we know of. It is not a swfObject thing. Basically wmode=transparent = problems (esp with forefox) :(
  1.  
    I found a way to implement the wmode parameter on a corporate site I'm making. It means minor changes to the swfobject.js file. When you use the addparam..., it's only adding it to the <object> parameters. This would be alright if Firefox used the <object> tag. It doesn't. It uses the <embed> tag. Therefore, you have to go into the code and change the code so that it has the 'wmode="transparent"' property added. Follow the instructions below. There is no need to include the addParam. It worked for me, and I see no reason why it shouldn't for you. Follow the instructions:

    >Open swfobject.js in Notepad
    >Go to Edit -> Find
    >Type "embed"
    >Click Find twice
    >When found, click Cancel
    >Insert the following code DIRECTLY AFTER THE <embed + (a space)
    >>wmode=\"transparent\"
    >Save
    >Refresh your page in IE and Firefox
    >Voila!

    If you have any questions, email me at jammer2552@yahoo.com. Good Luck.
    • CommentAuthorAran
    • CommentTimeJul 9th 2007 edited
     
    @jammer2552

    If you have a look at the v1.5 swfobject_source.js, you can see that addParam() IS used with the embed tag (lines 80-83 specifically):

    swfNode = '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'" style="'+ this.getAttribute('style') +'"';
    swfNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';
    var params = this.getParams();
    for(var key in params){ swfNode += [key] +'="'+ params[key] +'" '; }
    ...


    If you use addParam("wmode", "transparent") it WILL be added to either <object> or <embed> (depending on what browser you are using)

    Are you using an old version perhaps?


    In the non-source version of the .js file you can see it working as below:

    "<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}