Coder Social home page Coder Social logo

Comments (5)

fancyapps avatar fancyapps commented on June 18, 2024

Hi,

Sorry, but it is not possible to help you without seeing a live page/demo. It should work fine.

from fancybox.

joshwedo avatar joshwedo commented on June 18, 2024

I attached the url of the page.

It is on the checkout page, you must first have a product in the cart.

https://farmahogar.com/realizar-pedido/

from fancybox.

fancyapps avatar fancyapps commented on June 18, 2024

The problem is that the way you are using Fancybox is completely wrong. Look at this -

jQuery("#modal-pequenos-precios").fancybox({'overlayShow': true}).trigger('click').delay(5000);

Why on earth you have this weird code. You have to write something like this:

$.fancybox.open({
	src  : '#modal-pequenos-precios',
	type : 'inline',
	opts : {
		//
	}
});

Because you tell Fancybox to open an element and, when clicking your element, open it again. Therefore links do not work as you expect.

from fancybox.

joshwedo avatar joshwedo commented on June 18, 2024

Okey.

I generated that line with a trigger function so that the modal opens automatically without the need to click on the button.

What way would I have to be able to do it without this strange code?

from fancybox.

fancyapps avatar fancyapps commented on June 18, 2024

My code snippet shows how to immediately open the modal (e.g., $.fancybox.open(...))

from fancybox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.