Using jQuery Mobile to fetch current GPS location
Other than the features that can be used declaratively, APEX offers the possibility to call jQuery Mobile code directly. This recipe will show how to do that by creating a page with GPS coordinates for the longitude and latitude of the device on which the application is run.
Getting ready
For this recipe, you will need a jQuery Mobile Smartphone application, like the one we created earlier in this chapter.
How to do it...
First we have to have a page that can hold the items.
In the Application Builder go to the application and click on Create Page.
Select Blank Page and click on Next.
Enter a number for the new page and click on Next.
Name the page
GPS
and add one HTML Region by enteringGPS
at the item labeled as 1.Click on Next.
Click on Finish.
Click on Edit Page.
We will now add two items to show the coordinates. We assume that the page number for the page we created in the previous steps of this recipe is 4. Change if necessary.
Right-click on the...