Note that there are some explanatory texts on larger screens.

plurals
  1. POTarget a Flash Param with jQuery?
    text
    copied!<p>Still dipping my toes into jQuery. I have this:</p> <pre><code>&lt;span id="copyButton" class="copyButton"&gt; &lt;object id="copy_but" width="100%" height="30" align="middle" style="width:100%;height:30px;" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"&gt; &lt;param value="http://cdn.domain.com/Graphics/images/share/copyButton.swf" name="movie"&gt; &lt;param value="Transparent" name="wmode"&gt; &lt;param value="text2copy=http://domain.us/1acSKSF" name="FlashVars"&gt; &lt;param value="sameDomain" name="allowScriptAccess"&gt; &lt;param value="false" name="allowFullScreen"&gt; &lt;param value="high" name="quality"&gt; &lt;param value="#f7f7f7" name="bgcolor"&gt; &lt;object width="100%" height="30" style="width:100%;height:30px;" data="http://cdn.domain.com/Graphics/images/share/copyButton.swf" type="application/x-shockwave-flash"&gt; &lt;param value="http://cdn.domain.com/Graphics/images/share/copyButton.swf" name="movie"&gt; &lt;param value="Transparent" name="wmode"&gt; &lt;param value="text2copy=http://domain.us/1acSKSF" name="FlashVars"&gt; &lt;param value="sameDomain" name="allowScriptAccess"&gt; &lt;param value="false" name="allowFullScreen"&gt; &lt;param value="high" name="quality"&gt; &lt;param value="#f7f7f7" name="bgcolor"&gt; &lt;a href="http://www.adobe.com/go/getflash"&gt; &lt;/object&gt; &lt;/object&gt; &lt;/span&gt; </code></pre> <p>And I want to change the URL where it says "text2copy" in both areas. a couple of lines I've tried just to test reading the values are (always returns "undefined"):</p> <pre><code>$("#copy_but param[name='FlashVars']").attr("value") $("param[value*='text2copy']").attr("value") </code></pre> <p>Does anyone have any ideas?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload