Lightbox Plus Colorbox
Lightbox won't load Agoda maps external content (1 post)

  1. websupportguy
    Posted 3 years ago #

    Nice plugin, thank you. But when I try to load an Agoda hotel map as external content into the lightbox, I get an empty lightbox and a JS console error

    Unsafe JavaScript attempt to access frame with URL http://mydomain.com/ from frame with URL http://www.agoda.com/pages/agoda/popup/popup_areamap.aspx?hotel_id=10713&area_id=31432&area_Name=Bangkok+Riverside&city_id=9395&city_Name=Bangkok&country_id=106&latitude=100.5144417&longitude=13.72401111. Domains, protocols and ports must match

    I was getting something similar with Google Maps but was able to fix it by appending "&output=embed" to the end of the URL, but not with the Agoda maps which is what I really need to display in the lightbox.

    The URL I am trying to display in the lightbox is:

    This link

    By the way, I am not terribly technical. Just know little bits of JS. So if explaining a fix to try, please don't assume I know what you're talking about.

    BTW, I had "use iframe" checked. When I unchecked that, I got a different error which might be easier or harder to resolve:

    XMLHttpRequest cannot load http://www.agoda.com/pages/agoda/popup/popup_areamap.aspx?hotel_id=10713&ar…id=106&latitude=100.5144417&longitude=13.72401111&CID=1476677&output=embed. Origin http://traveltipsthailand.com is not allowed by Access-Control-Allow-Origin.


    WordPress Information

    WordPress Version: 3.5.1
    jQuery Version: 1.8.3
    Server Information

    Site URL: http://traveltipsthailand.com
    PHP Version: 5.2.17
    Server Software: LiteSpeed
    Plugin Information

    Lightbox Plus ColorBox Version: 2.6
    LBP Shortcode Version: 3.5
    ColorBox Version: 1.3.32
    Simple PHP HTML DOM Parser Version: 1.5 Rev: 202
    Client Information

    Browser: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
    Viewport: 1903x912
    Platform: Win32
    Javascript: Yes

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic