Note that there are some explanatory texts on larger screens.

plurals
  1. POqq.FileUploader doesn't work when loaded in AJAX popup
    primarykey
    data
    text
    <p>So I got a dialog box that is loaded dynamically using AJAX, in that box, I have a file input that is replaced with Valums qq.FileUploader. I do call the init on the FileUploader after loading the content, my input box gets replaced properly by the FileUploader.</p> <p>As you can see in the picture below, the input gets replaced by everything, and the new "hidden" input, is there. Problem is that I can't click on it. However, I can drag-and-drop files correctly. So, the upload still works, but only drag-and-drop. This has been tested with Chrome and Firefox, both on Windows.</p> <p><img src="https://i.stack.imgur.com/VH35L.png" alt="Image of dialog with input replaced"></p> <p>See <a href="https://stackoverflow.com/questions/7592787/valums-qq-fileuploader-dont-work-when-its-initialized-after-loading-button-by">Valums qq.FileUploader doesn&#39;t work when it&#39;s initialized after loading button by ajax</a></p> <p><strong>EDIT</strong>: The dialog code is not jQuery UI, it's custom code, basically, I trigger an event when I open a dialog, and I'm binded on this event to execute the FileUploader code.</p> <p><strong>EDIT 2</strong>: So I tried using a timeout of 1s after the popup to execute the FileUploader code, but still no go. Also tried to play with z-indexes, and no go.</p> <p><strong>EDIT 3</strong>: After several weeks it's still not working. I just can't seem to be able to find the cause of this problem. Here are two images that illustrate where the "hidden" file upload is (in red). And that it works outside, but not inside a dialog.</p> <p>This is <strong>outside</strong> a dialog, and it works just fine: </p> <p><img src="https://i.stack.imgur.com/KOJLj.jpg" alt="This is outside a dialog, and works"></p> <p>This is the SAME exact form, but <strong>inside</strong> a dialog, but this doesn't work:</p> <p><img src="https://i.stack.imgur.com/qSP4k.jpg" alt="Same exact form, inside a dialog, doesn&#39;t work"></p> <p><strong>EDIT 4</strong>: Just set up a JSFiddle with my code: <a href="http://jsfiddle.net/G5qP6/6/" rel="nofollow noreferrer">http://jsfiddle.net/G5qP6/6/</a></p> <p>However, as you can see, it works just fine in the JSFiddle, which get's me wondering, why does it doesn't work in my application.</p>
    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.
 

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