• Resolved francalvaro

    (@francalvaro)


    Hello, I have a form that when you click on the send button performs a check with jquery and launches a page, I use this code to launch it, but I do not know how to add the part that launches that page within lightbox.

            if($("#javierm").is(":checked") && $("#yolandam").is(":checked") && !$("#caler").is(":checked") && !$("#rositac").is(":checked") && !$("#reyc").is(":checked") && !$("#homeros").is(":checked")){
             var url = "https://calendly.com/d/xxxx-9x9/reunion-colectiva-60";
    $(location).attr('href',url, '_blank');
            return false;
        }

    How can I insert what I need to open that page inside the lightbox? For normal links if it works anywhere on the page but in the jQuery code I use I do not know how to insert it.

Viewing 1 replies (of 1 total)
  • Plugin Author arisoft

    (@arisoft)

    Hello

    The following javascript code can be used to open the lightbox with particular URL:

    jQuery.fancybox.open({src: 'https://calendly.com/d/xxxx-9x9/reunion-colectiva-60', type: 'iframe'});

    One note, the page will not be shown into the lightbox due to security settings for calendly pages (it prevents loading to 3rd party sites). You can contact Calendly support and ask if it is possible to embed their pages into your site.

Viewing 1 replies (of 1 total)
  • The topic ‘Add lightbox code to open a page from jQuery’ is closed to new replies.