Note that there are some explanatory texts on larger screens.

plurals
  1. POMake Uploadify work in a jquery accordion header when wmode=transparent
    primarykey
    data
    text
    <p>I have a jquery accordion, and I want to insert uploadify inside the accordion header. Putting it there worked fine, but when I set the uploadify swf wmode to transparent, it does not work well:</p> <p>-in Chrome clicking the upload swf does nothing<br> -in Firefox it does open the upload window, but also closes/opens the accordion<br> -in Internet Explorer it acutally works fine</p> <p>If I set the wmode to window it does work fine, but I must use the transparent mode.</p> <p>Any ideas?<br> Arad.</p> <p>Edit: Another solution would be to invoke uploadify swf click using javascript- is it possible?</p> <p>Edit2: the code-</p> <p>relevant HTML:</p> <pre><code>&lt;div id="accordion"&gt; &lt;div class="category" id="category$category_id"&gt; &lt;h3 class="ui-accordion-header"&gt; &lt;div class="header-div"&gt; &lt;div id="categoryTitle$category_id" class="categoryTitle"&gt;$category_name&lt;/div&gt; &lt;/div&gt; &lt;div class="rightPart"&gt; &lt;input id="fileInput$category_id" class="fileInput" name="fileInput" type="file" /&gt; &lt;/div&gt; &lt;/h3&gt; &lt;div style="overflow: auto; height: 400px; text-align: left; padding: 10px"&gt; (pictures are here...) &lt;/div&gt; &lt;/div&gt; &lt;div class="category" id="category$categor... (more categories) &lt;/div&gt; </code></pre> <p>relevant javascript:</p> <pre><code>var stop = false; $('#accordion h3').click(function(event) { if (stop) { event.stopImmediatePropagation(); event.preventDefault(); stop = false; } }); $('#accordion').accordion({ header: "&gt; div &gt; h3", collapsible: true }).sortable({ axis: "y", handle: "h3", stop: function(event, ui) { stop = true; }, update: function(event, ui) { var categoriesArray = $(event.target).sortable('toArray'); updateCategoriesOrder(categoriesArray); } }) $('.fileInput').livequery(function(){ var myID = $(this).attr('id'); // grab id of the clicked fileInput button (e.g. 'fileInput45') myID = myID.replace('fileInput',''); // strip down to the numeric value $(this).uploadify({ 'uploader' : 'uploader/uploadify.swf', 'script' : 'uploader/uploadify.php', 'cancelImg' : 'uploader/cancel.png', 'multi' : true, 'auto' : true, 'folder' : '/uploads', 'width' : 24, 'height' : 24, 'wmode' : 'transparent', //'wmode' : 'window', 'fileDesc' : 'Images (*.jpg;*.jpeg;*.jpe;*.png;*.gif;*.bmp)', 'fileExt' : '*.jpg;*.jpeg;*.jpe;*.png;*.gif;*.bmp;', 'queueID' : 'uploadQueue',// + myID, onComplete : function(event, queueID, fileObj, reposnse, data) { //alert(myID); } }); }); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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