Questions tagged as 'fancybox'

1
answer

how to put text in a while in php only once

I have an image gallery made with fancybox that all the images that appear come from the database. the gallery is something so . I have this: <div id="exterior"> <?php $con = mysqli_connect("localhost","root","","gibellin...
asked by 30.11.2015 / 18:34
1
answer

FancyBox with dynamic size

Hello. I have already looked for several examples of how to call a Pop-up Fancybox by passing the size of the window by parameters in my function. Ex. AbrirPopUp(url,w, h) { chamar #Fancybox(url,w,h) } <a href="Javascript:AbrirPopU...
asked by 24.12.2014 / 03:09
0
answers

Enable thumbnail via ajax

I'm uploading a gallery of images via AJAX with fancybox so I also need to put the thumbnails in this gallery how should I proceed? Return from my JSON:    ["title": "caption 1 .....", "href": "553e2ec2a7be4.jpg"}, {"title": "caption 1.",...
asked by 28.04.2015 / 16:58
1
answer

Iframes and Fancybox

I want to open an iframe from Google Maps on a Fancybox via fancybox.iframe . But it gives the following error: No 'Access-Control-Allow-Origin' header is present on the requested resource. I know the explanation of something cross-...
asked by 04.06.2014 / 21:39
1
answer

display content from another page using fancybox

I have a page with the names of several products and I would like to click on one to open a fancybox with the details of each product. These details (name, price, etc.) are on another page and would like to display them on the same page as the p...
asked by 12.02.2018 / 00:41
0
answers

Fancybox - Refresh parent after closing

I'm using a Fancybox iframe where when the user confirms a question I want to update the contents of the original page after success in an ajax: $.ajax({ type: 'POST', url: 'excluir_foto2.asp', data: {cod: cod},...
asked by 01.02.2018 / 13:40
1
answer

How to determine a fixed size for fancybox image gallery?

I'm doing an image gallery with the FancyBox plugin. I'm doing image listing with PHP, but I have a problem. I'm going to be able to have images with different widths and heights, so how do I always apply a fixed width and height to all ima...
asked by 12.09.2017 / 17:03
1
answer

Change text from a div within fancybox

I have a popup using Fancybox, inside it I have a div, I need to dynamically change using Javascript the text of it. I'm using the following code in the click of a button call: $('#id-da-div').html('Novo texto'); This simple code works anyw...
asked by 17.08.2017 / 02:22
1
answer

JQuery FancyBox: Passing a parameter to an inline window

I have 5 buttons that open a window using Fancybox inline modal, and the moment I open this window I need to pick a parameter or some way to show the button that triggered the event: <a class="btn btn-success fancybox1" href="#divFormaP...
asked by 31.08.2017 / 17:10
1
answer

How to open Fancybox above the menu

I'm having a hard time, when I open a lightbox Fancybox it's getting below my menu, I changed the position of it, but I did not like the result, because it was strange, but I could not let it open up. p> The page with the effect is this...
asked by 24.02.2016 / 15:51