fancybox-2

Adding a URL to an Iframe being called by Fancybox2-AJAX Based on the Iframe's ID

南笙酒味 提交于 2019-12-11 12:06:47
问题 Okay I have this working minus the fact of having this working once I call in with fancybox via AJAX. Static Example Works: <iframe id="videourl1" width="640" height="340" src="" frameBorder="0"></iframe> <iframe id="videourl2" width="640" height="340" src="" frameBorder="0"></iframe> <iframe id="videourl3" width="640" height="340" src="" frameBorder="0"></iframe> $("div.video-container iframe").each(function(){var idAdd=$(this).attr("id");$(this).attr("src","http://www.youtube.com/embed/"

Fancybox-2 not showing PDF in IE-8

佐手、 提交于 2019-12-11 11:54:15
问题 Can't get Fancybox-2 to show PDFs with Internet Explorer! (It works fine in Chrome and Firefox) In <head> I have this code: <!DOCTYPE HTML> <!-- Add fancyBox --> <link rel="stylesheet" href="../../../js/fancybox/source/jquery.fancybox.css" type="text/css" media="screen"/> <script type="text/javascript" src="../../../js/fancybox/source/jquery.fancybox.pack.js"></script> <script type="text/javascript"> $(document).ready(function () { $(".fancybox").fancybox({ height: '100%', // width: '50%', /

jQuery launch a fancybox AFTER ajax form submission

杀马特。学长 韩版系。学妹 提交于 2019-12-11 10:08:13
问题 I currently have a page which has a form being submitted by ajax. The ajax submission works fine, but i can't seem to get it to work so that the FancyBox only opens AFTER the form has submitted. Ajax form submission code is: $('#create-card-process').ajaxForm({ dataType: 'json', success: function(data) { if (data.success) { console.log(data); $('#card-saved-success').fadeIn(); $('#card-saved-success').delay(3000).fadeOut(); } else { alert('Failed with the following errors: '+data.errors.join(

How to show ajax response in fancybox iframe

自古美人都是妖i 提交于 2019-12-11 09:39:39
问题 I have 2 jsp's products.jsp and viewcart.jsp .Now I am trying to show cart(viewcart.jsp) in iframe using fancybox. When i click add to cart, iframe wont popup. This is what i have done. How should i pass the ajax response to iframe? $(document).ready(function(){ $('.cart').click(function() { var pdtid = $(this).attr('data-productid'); $.ajax({ url : '${pageContext.request.contextPath}/addtocart' + pdtid, dataType: 'json', type : 'GET', data :{'id': pdtid}, success: function(response) { $

fancybox 2 iframe loading issue

时光怂恿深爱的人放手 提交于 2019-12-11 08:38:19
问题 i'm having an issue with fancybox 2 on my recently launched website. i use links on my pages to open galleria (galleria.io) galleries and PDF files in a fancybox lightbox. for the photo galleries (galleria), i load another webpage in the fancybox iframe and i am defining explicit thumbnail images so all the full size pics don't have to load immediately. for PDF content, i load the PDF file directly in the iframe. however, more often than not, the first time a link is clicked the iframe does

displaying image/text gallery with Fancybox 2

感情迁移 提交于 2019-12-11 07:25:54
问题 I have Fancybox set up to display a gallery of 8 pictures. The first one is displayed on the page and opens the gallery when clicked. What I'm trying to do now is add another gallery, except with HTML content instead of images, so it's like flipping through a book when navigating the gallery. But nothing's appearing when I click the image. Here's my Fancybox script: <script type="text/javascript"> $(document).ready(function(){ $("a.fancybox").fancybox({ openEffect : 'none', closeEffect :

How to prevent showing same image when there are two anchors opening the same gallery with fancy box on same page?

有些话、适合烂在心里 提交于 2019-12-11 04:49:05
问题 I have a page that has two ways to open a gallery of images/videos that open in fancybox 2. The problem is that because there are two links that open the start of the gallery with the first image, the first image is displayed twice in the gallery. Here is my example http://www.londonsitedesign.co.uk/test.html How can I prevent the first image being displayed twice in the gallery? 回答1: If the first link will only start the fancybox gallery, then it doesn't need to have the fancybox class

Increase top and bottom margin FancyBox v2 because of fixed navigation

安稳与你 提交于 2019-12-11 04:32:49
问题 I'm currently working on a website which in future will be responsive. The site is primarily made up of images which in turn load into a FancyBox when clicked. v2 of FancyBox is now responsive and so re-sizes the images etc when screen size changes. As part of my design I have two fixed banners which appear at the top and bottom of the page, see image below: By default there is a margin around the FancyBox so that it's styled nicely. However, with the fixed positioning that I've added to the

Starting one gallery from multiple preview pictures, with Fancybox2

六眼飞鱼酱① 提交于 2019-12-11 03:56:27
问题 I'm starting one gallery with multiple preview pictures (links). The first one begins the gallery, the next goes to a specific photo in the same gallery, but you can click through the entire gallery if you choose to. Think of it as a set up bookmarks that take you to different points of one larger gallery of images. I've replicated how this is working for me now, though it's redundant and not very efficient. I'm merely faking it so that the entire thing loops. I appreciate any advice. Here

Fancybox Scaling Issues in Mobile Devices With Low Height Landscape Orientations

久未见 提交于 2019-12-11 03:16:00
问题 Problem Description: I am using Fancybox v2.1.5 in a responsive page design. The problem I have is with smaller mobile devices that are more rectangular than square. When the device is in portrait orientation and I call Fancybox, it displays to the width of the screen and the title text wraps below the image. This is not an issue as there is usually a lot of extra screen real estate in portrait mode. When I change the device to landscape orientation however, Fancybox shrinks its height in