This is a really big question, because I know that there are several ways to solve this problem, but I will try to summarize.
What I'm trying to do: I use this jQuery plugin to upload files via Flash http://www.uploadify.com/ . However, the #fileInput element with which I must associate this function is the live element that is generated after the page loads: $ ('# fileInput'). Uploadify (). The reason #fileInput is a live element because I use a FancyBox to pop up a DIV, and this FancyBox basically just βclonedβ the internal html DIV.
What happened: when I pressed the "BROWSE" button to download a file, there is no progress bar for downloading. The reason is that Uploadify could not bind to live elements.
Questions: 1. I tried replacing bind () with live () in the uploadify file, but this did not work, because bind () allows you to transfer [data]. The LiveQuery plugin http://docs.jquery.com/Plugins/livequery does not have the same syntax as bind (). Is there anything similar to binding, but works for live elements?
- Unless I try to replace the bind () function and keep the add code the same. Does anyone know how to change the code in FancyBox so that it does not make a clone to create live elements? I know this is also a tough question.
Note: FancyBox site seems dead β http://www.visual-blast.com/javascript/fancybox-jquery-image-zooming-plugin/
Many thanks!
source share