Skip to content
This repository has been archived by the owner on Feb 7, 2018. It is now read-only.

Lightbox Html Content not visible for previous defined event handlers #11

Open
jonas-grgt opened this issue Aug 1, 2011 · 0 comments
Open

Comments

@jonas-grgt
Copy link

For example:

Inside my lightbox's HTML I have a input field which I want to use as a autocomplete field. This is done by using jquery-ui.

So I have something like this:

<div id="lightbox">
    <input type="text"/>
</div>

Next I setup autocomplete:

$("#lightbox").autocomplete({source:["foo","bar"]});

And FancyZoom

$("a.light").fancyZoom();

This sadly doesn't work with fancyzoom. I'm guessing that FancyZoom copies the element contained within the #lightbox element.
In firefox you can see the data that has been bound to an element. The original #lightbox input's element has data bound to it (for the autocomplete).
But once you fire up FancyZoom the elements are copied and there is no data bound to the copied elements.

Is there a work around for this issue ? I was thinking of a callback method to be called when the lighbox is completely loaded.

$('selection').fancyZoom({"callback": function() {});
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant