javascript - Fancybox stops working when invoked twice in the same browser session -
javascript - Fancybox stops working when invoked twice in the same browser session -
i have odd problem fancybox. using version 1.2.6 (yes it's old, that's i'm stuck currently), invoke iframe via button click (see screenshot below)
everything fine if user selects radio button , submits form. however, if user closes fancybox invokes iframe 1 time again (using same button click before), form not clickable. instead there left , right arrows on iframe if it's trying display image (see screenshot below)
the way 'fix' issue reload page or not dismiss fancybox in first place.
[update]
here how invoke fancybox. dismiss fancybox, have click on "modify address" button.
$('#hidden_link').fancybox({ framewidth:400, frameheight:500, hideonoverlayclick:false, hideoncontentclick:false, showclosebutton:false }).trigger('click');
the element #hiddenlink
hidden href
.
<a href="/assets/cnt/index.html" style="display:none;" id="hidden_link"></a>
[update 2]
firebug displays error image corrupt or truncated: data:image/gif;base64,aaaa
when occurs. not sure if related or not.
does fancybox create container div modal on page load, or create on demand? if creates 1 on page load might offer "destroy" or "delete" method can phone call on close.
if creates 1 on demand might able explicitly destroy existing 1 on close.
javascript fancybox
Comments
Post a Comment