Topic: problem with uploadify inside dialog boxes / lightboxes?

I cant seem to get uploadify to work inside a dialog box, it looks like it isn't instantiating properly?

is this related to this issue?
http://github.com/moxiecode/plupload/issues#issue/15

are there any potential fixes?

I feel bad asking 2 questions in row! As far as I can see they havent been asked before so will hopefully be useful to others in future!

Re: problem with uploadify inside dialog boxes / lightboxes?

ok i've investigated a bit further,

the problem is that plupload puts the 'select files' input with an opacity of 0 (hidden but clickable) in the wrong place if you use a dialog box. the hidden input should be over #select_files.

Any suggestions on a tidy fix?

I'll keep playing....

Re: problem with uploadify inside dialog boxes / lightboxes?

Use the container option.

Re: problem with uploadify inside dialog boxes / lightboxes?

my fix:

call the following jquery after opening the dialog and initializing the plupload:

 $('div.plupload').appendTo('#your_dialog_box').css({'top':'93px', 'left':'44px', 'opacity':1});

Re: problem with uploadify inside dialog boxes / lightboxes?

Might not work correctly in each browser though. Since the flash movie gets moved in the DOM. The container option should work since it then adds the flash shim inside that container and moves it relative to that.