WordPress.org

Ready to get started?Download WordPress

Forums

Lightbox Plus Colorbox
How to load external iframe from Menu link? (6 posts)

  1. mlgrippi
    Member
    Posted 1 year ago #

    Hi there -

    I want to load an external web site (iframe) from my site... I used your demo code which worked from a text link, but I am hoping to load this iframe through both a MENU link and also buttons on my site...

    My site: http://www.mghomeloans.com (and it is the Apply link on the menu that I am wishing to load the iframe).

    I tried this, and it almost worked... but it says page cannot be found.

    Appearance > Menus > Custom Link:
    URL: https://michaelgrippi.secure-loancenter.com/WebApp/ShortApp.aspx?oempage=1
    Navigation Label: Apply
    Title Attribute: 128 bit SSL Secure Online Prequalification Form
    CSS Classes: lbpModal

    Any assistance would be SO appreciated!!

    http://wordpress.org/extend/plugins/lightbox-plus/

  2. TheGremlyn
    Member
    Posted 1 year ago #

    I was helping mlgrippi with this earlier, and it looks like the the 'CSS Classes' that you can input on the custom menu items apply to the
    li element, not the link element directly.

    My assumption is that the javascript is looking for the href of the link for the element with the class="lbpModal", but since the custom menu applies this to the li element, there obviously isn't one.

    A potential fix could be to have the script travel down to a child element to find the href.

  3. hitomiie
    Member
    Posted 1 year ago #

    @theGremlyn

    i'm trying to achieve that in javascript: find the child element of li having the class "lbpModal".. but don't now how..

    does anyone have an idea how to code that in javascript?

  4. TheGremlyn
    Member
    Posted 1 year ago #

    Javascript has .childNodes that you might use: http://www.w3schools.com/dom/prop_element_childnodes.asp

    But it might be easier going through jQuery with something like .children(): http://api.jquery.com/children/

  5. aaronbennett2097
    Member
    Posted 1 year ago #

    Hi all.

    I'm trying to achieve exactly what mlgrippi has, by the looks of the website, successfully done.

    Mlgrippi, is there any chance you could share the way you managed to get the button to open a lightbox window?

    Thanks in advance (fingers crossed).

  6. fungoody.com
    Member
    Posted 1 year ago #

    looking at the code it appears he switched to FancyBox

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic