Pass variable to URL
Posted: Wed Aug 21, 2013 10:57 am
Hi Guys
I would like to know if it is possible to pass a variable to a URL?
Here is a background of what I am currently doing and want to achieve:
I've created a website where you can enter a business location and it is then saved in a database, an icon can be linked to the location and the end result for a user is to see the location of businesses.
I have created an android app browser to display the map of my website and that can get the user's location using GPS. The GPS coordinates is currently placed is a variable and I need to pass this variable to the URL of the website.
When the browser in the app opens I need to pass the variable
The variable is "theLat" and I have entered maplat to show the variable when opening the webpage in the app, currently it returns theLat and not the variable which should be the latitude coordinate.
Hopefully there is an easy solution to this and I'm just doing it completely wrong. Surely it should be possible to pass a variable straight to a URL in livecode?
Any feedback will be greatly appreciated on this.
Thank you in advance!
Mills
I would like to know if it is possible to pass a variable to a URL?
Here is a background of what I am currently doing and want to achieve:
I've created a website where you can enter a business location and it is then saved in a database, an icon can be linked to the location and the end result for a user is to see the location of businesses.
I have created an android app browser to display the map of my website and that can get the user's location using GPS. The GPS coordinates is currently placed is a variable and I need to pass this variable to the URL of the website.
When the browser in the app opens I need to pass the variable
Code: Select all
mobileControlSet sBrowserId, "url", "mywebsite/mobile/map.php?maplat=theLat"
Hopefully there is an easy solution to this and I'm just doing it completely wrong. Surely it should be possible to pass a variable straight to a URL in livecode?
Any feedback will be greatly appreciated on this.
Thank you in advance!
Mills