Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Andrew Jones 19 posts 39 karma points
    Feb 27, 2013 @ 00:54
    Andrew Jones
    0

    HTTPS Package Issue with google maps & javascript

    I have google maps v3 installed and I am using javascript calendars, however I now need the page to be on an SSL secure page, so I have installed https and this works great however...

    I get the following errors:

    1. Google Maps will not display

    2. Datepicker will not display

    Though my javascript lightbox does display.

    Can anyone help?

    Thanks

    Andy

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 27, 2013 @ 21:06
    Jan Skovgaard
    0

    Hi Andy

    What kind of errors are you getting?

    And does the whole site need to be https or just some certain pages on the site?

    /Jan

  • Andrew Jones 19 posts 39 karma points
    Feb 28, 2013 @ 00:06
    Andrew Jones
    0

    Hi Jan,

    Its just one type of page, the property page.  Here we require a secure booking form with direct PayPal API.

    There is no error message and the page appears fine, the booking form works correctly.  However the maps and calendar do not display.

    Thanks


    Andy

  • gary 385 posts 916 karma points
    Feb 28, 2013 @ 08:50
    gary
    0

    Hi Andrew

    Can only help with the Maps part as I was trawling through it yesterday (so much information) and noticed that if you are using in https page you must call over https, so your reference to the Google api at the top of your page will call something like

    <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>

    It is that http, that needs to be https, but as with all things Google Maps, I doubt it is just that simple. Have been trying to find the call, if I do I will post it, but it at least may give you a direction to go in.
    Just had a look at one of your sites and see that you call both active and static maps, so it may be worth checking both calls as I think they have been updated, this is latest for static over https, 
    https://maps.googleapis.com/maps/api/staticmap?parameters

    Hope it helps

    G

     

  • Andrew Jones 19 posts 39 karma points
    Feb 28, 2013 @ 10:28
    Andrew Jones
    0

    Hi Gary,

    Simple! Frustating when you miss these but a good feeling when it just works after a simple change.

    Cheers


    Andy

  • gary 385 posts 916 karma points
    Feb 28, 2013 @ 10:50
    gary
    0

    Hi Andy

    Pleased it worked, was it the same for the date-picker?

    On a general note, for anyone looking at this thread in the future - it appears that all calls for https need to be from https, even googlefonts, so may be worth checking all, to ensure nothing "goes missing".

Please Sign in or register to post replies

Write your reply to:

Draft