title: Open SWF onclick in a DIV with Jquery
body: <p>For each item in a JSON I create an URL with this code.</p>
  
  <pre><code>$('&lt;a&gt;').attr('href',item.link + '?enablejsapi=1&amp;version=3').text(item.title).addClass(domain.replace(/[^a-z]/ig,'_')).appendTo('#sample-feed-block');
  </code></pre>
  
  <p><strong>How can I force this URL (all SWF) to open the link in a DIV?</strong> Should I add .click(function() ?</p>
  
  <p>Do you think I can call a Jscript function that uses the SWFObject from the Google repository?</p>
  
  <pre><code>function loadSWF(url, targetID){
  
   //Check for existing SWF
   if(isObject(targetID)){
  
    //replace object/element with a new div
    replaceSwfWithEmptyDiv(targetID);
  
   }
  
   //Embed SWF
   if (swfobject.hasFlashPlayerVersion("9")) {
  
    var attributes = { data: url, width:"550", height:"400" };
    var params = {};
    var obj = swfobject.createSWF(attributes, params, targetID);
  
   }
  
  }
  </code></pre>