Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

126
Views
aplicaciones elegantes | Fancybox al hacer clic no funciona

Estoy usando esta biblioteca para mostrar fancyboxes: https://fancyapps.com/docs/ui/quick-start

Ahora quiero ejecutar una función cuando se active next en el fancybox pero no puedo hacer que funcione.

Aquí está el script que estoy usando actualmente:

 Fancybox.bind("[data-fancybox]", { next: function() { return(console.log('Next called'); } });

Pero no funciona, ¿alguien sabe por qué?

¡Muchas gracias!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

su código no es sintácticamente correcto. Ejemplo, debería verse así:

 Fancybox.bind("[data-fancybox]",{ next: ()=>{ return(console.log('Next called')); } });

Pero para eventos, necesita usar https://fancyapps.com/docs/ui/fancybox/events como https://jsfiddle.net/wfkbugpq/2/

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!