• Hi,

    At the moment I am trying to use a widget code from sky scanner on a page on my site (using the Gateway theme) I’ve tried several ways to try and embed it to no avail. Could anyone help me? The widget is a part of an affiliate program.

    Thanks!
    this is the code:
    <script type=”text/javascript” src=”//api.skyscanner.net/api.ashx?key=a75e315f-1cee-4212-be62-310770035af1″></script>
    <script type=”text/javascript”>
    skyscanner.load(“snippets”,”2″);
    function main(){
    var snippet = new skyscanner.snippets.SearchPanelControl();
    snippet.setShape(“box400x400”);
    snippet.setCulture(“en-GB”);
    snippet.setCurrency(“USD”);
    snippet.setMarket(“US”);
    snippet.setColourScheme(“classicbluedark”);
    snippet.setProduct(“flights”,”1″);

    snippet.draw(document.getElementById(“snippet_searchpanel”));
    }
    skyscanner.setOnLoadCallback(main);
    </script>
    <div id=”snippet_searchpanel” style=”width: auto; height:auto;”></div>

The topic ‘Problems embedding widget on my page’ is closed to new replies.