flash.js 659 B

1234567891011121314151617181920212223242526
  1. /*
  2. Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
  3. Available via Academic Free License >= 2.1 OR the modified BSD license.
  4. see: http://dojotoolkit.org/license for details
  5. */
  6. // *** Fricking Eolas. This is here to get around the Eolas issue. Sigh. ***************
  7. dojox.embed.Flash.place = function(kwArgs, node){
  8. var o = dojox.embed.Flash.__ie_markup__(kwArgs);
  9. node=dojo.byId(node);
  10. if(!node){
  11. node=dojo.doc.createElement("div");
  12. node.id=o.id+"-container";
  13. dojo.body().appendChild(node);
  14. }
  15. if(o){
  16. node.innerHTML = o.markup;
  17. //return window[o.id];
  18. return o.id;
  19. }
  20. return null;
  21. }
  22. dojox.embed.Flash.onInitialize();