Results 1 to 2 of 2

Thread: Google Maps

  1. #1
    Senior Member
    Join Date
    Jan 2014
    Posts
    262

    Google Maps

    Hi Guys

    Adding a web gadget map to a page as per the Lianja demo with the URL controlled by a memvar, rather than a table so that we don't have to wait for a SAVE()before the changes are made.

    We are struggling with the syntax, having now tried every combination we can imagine

    We know that setting the URL to lib:/showdialog_map.rsp?address={"FY7 8JW"} - works - it's near Blackpool in the UK and postcode alone is fine



    What we are trying to do is :


    Approach 1

    Set the URL to lib:/showdialog_map.rsp?address={map1}

    then populate the public memvar map1 in a function with a postcode that we know works. FAILS


    Approach 2

    Set the full URL in the webview gadget each time


    var map1 = "FY78JW";
    var mapstring = "lib:/showdialog_map.rsp?address=&map1";
    Lianja.getElementByID("page.section.mapwebview").u rl = &mapstring;

    FAILS


    What are we missing?

    Thanks


    Simon
    Last edited by SpringBox; 2019-10-22 at 08:16.

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,730
    What is &map1 and &mapstring?

    it seems you are expecting VFP macros to work in JavaScript. These are two different languages.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us