Avatar of Coast Line
Coast Line
Flag for Canada asked on

Jquery Fancybox not opening on click

Hi, With the following website link

Click Here

When i click on the first item of the product which is ADD TO CART, the fancybox code just blinks and it never pops up, I am not sure wht is missing up here,

The JS Code which triggers the fancybox is in master.js file with the name of openWindow

Can anyone check and tell me what i am doing wrong
jQueryJavaScript

Avatar of undefined
Last Comment
Leonidas Dosas

8/22/2022 - Mon
Leonidas Dosas

I made some syntax corrections try with this code:

openWindow = function(url) {
    $.fancybox({width:$(window).width()-150,height:$(window).height()-187,
                href:url,autoScale:!1,
                transitionIn:"none",
                transitionOut:"none",
                type:"iframe",modal:"false",
                padding:0,showCloseButton:!1,autoDimensions:!0,
                centerOnScroll:!0,opacity:!0,overlayShow:!0,overlayColor:"#525252",
                scrolling:"auto"});
};

Open in new window

HainKurt

try this

fix this element/class

<div class="form-control">

which is inside the form...

then use this format

<a href="#" ...

for links...
ASKER CERTIFIED SOLUTION
Leonidas Dosas

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck