I'm trying to use swfobject with my project that is built upon
Backbone RequireJS for AMD loading. I'm wondering if anyone has any
implementation advice? I was able to get things working, but in a non-
ideal situation, where I can call swfobject, after the .render() for
the page has occurred.
If
Both embedSWF and createSWF want an ID to target, but all I'm looking
for is the HTML that it is producing is there a way that I can
call SWFObject and get just the raw HTML? The reason is because the
DOM i not ready yet in my application so I've got to do the HTML
manipulation myself.
you to pass an element instead of an ID,
you can give that a try.
https://github.com/swfobject/swfobject
On Mon, Feb 13, 2012 at 10:08 AM, Matt Babineau mbabin...@minexa.comwrote:
Both embedSWF and createSWF want an ID to target, but all I'm looking
for is the HTML that it is producing
Might have just answered my own question, it looks like the getId()
function is what lets me specifiy an element or ID str:
function getId(thing){
return (isElement(thing)) ? thing.id : thing;
}
I'll give this a shot
-Matt
On Wed, Feb 15, 2012 at 8:59 AM, Matt Babineau