SWFupload and Fancybox?

22 views
Skip to first unread message

Josip Lazic

unread,
May 18, 2009, 1:23:20 PM5/18/09
to fancybox
Hi,

I'm trying to make/force fancybox to work with swfupload. If I remove
'display:none' from upload div, swf upload works just fine, but if I
call that dic in fancybox uploading does not work :(

Did anyone stumbled upon this kind of problem, and knows how to fix
ti?

Thanks,
Josip

JFK

unread,
May 21, 2009, 5:56:19 PM5/21/09
to fancybox
if your problem is 'display:none' (which I don't really like to use)
and you still want to hide the div, maybe the solution is to hide the
div with a jquery function (i.e.)

for your upload div
<div id="test" style="display:none;">
change it to
<div id="test">

and add to your jquery script (just before you activate fancybox):
$(document).ready(function() {
$("#test").hide(); //same result as display:none
//Activate FancyBox
$("a#video").fancybox({
.....etc

this also has the advantage that if javascript is deactivated in the
browser, you still have access to the hidden content (you wouldn't
with display:none)
Reply all
Reply to author
Forward
0 new messages