07/10/2009, 10:59 AM
|
#1 (permalink) |
|
Member
![]() Join Date: Jul 2009
Posts: 3
Likes Received: 0
Thanks: 3
Thanked 0 Times in 0 Posts
|
Hey
I am working on a wrapper library for GPS web access. code.google.com/p/geo-location-javascript/ I would like to add webOS to the list of supported platforms, it looks fairly easy to do that in the webOS, but i don't have access to a SDK to develop taht part. Is that somebody interested in helping. One question I got: Can I go to a website in the browser and use javascript to get GPS access or does this have to be an application? Either case, still want it. Best, Stan |
07/10/2009, 11:25 AM
|
#3 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Location: Indianapolis, IN
Posts: 1,686
Likes Received: 0
Thanks: 41
Thanked 365 Times in 215 Posts
|
Unless you are running as an App started up on the device, I don't think you will have access to the Mojo.Services.Request to call on the palm:// bus. Otherwise, this is a glaring security hole for initiating Contact entries, Setting up emails for sending, etc.
|
07/10/2009, 11:48 AM
|
#4 (permalink) | |
|
Legend
![]() Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,956 Times in 1,495 Posts
|
Quote:
Code:
<script src="file:///usr/palm/frameworks/mojo/mojo.js" type="text/javascript" x-mojo-version="1"></script> Last edited by Jason Robitaille; 07/10/2009 at 01:16 PM. |
|
07/10/2009, 12:28 PM
|
#5 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Location: Indianapolis, IN
Posts: 1,686
Likes Received: 0
Thanks: 41
Thanked 365 Times in 215 Posts
|
Using a relative path like that will reference the WEB SERVER, not local storage. This is a fundamental security principle for web browsers.
|
07/10/2009, 12:29 PM
|
#6 (permalink) |
|
Member
![]() Join Date: Jul 2009
Posts: 3
Likes Received: 0
Thanks: 3
Thanked 0 Times in 0 Posts
|
Is there a request for permission from the user when requesting the location? That way the security problem could be handled.
So I want to include that in the project, but don't know how since i can't get my hands on a Simulator and don't have a device. Where would i find Documnentation regarding that part of the API. Sorry for all those obvious questions, but i couldn't find a simulator or the API doc even with device already on the market?? |
07/10/2009, 01:17 PM
|
#7 (permalink) | ||
|
Legend
![]() Join Date: May 2005
Location: Winnipeg, MB, Canada
Posts: 3,883
Likes Received: 496
Thanks: 801
Thanked 12,956 Times in 1,495 Posts
|
Quote:
![]() Quote:
Last edited by Jason Robitaille; 07/10/2009 at 01:23 PM. |
||
07/10/2009, 03:06 PM
|
#9 (permalink) | |
|
Member
![]() ![]() Join Date: Jun 2009
Location: Indianapolis, IN
Posts: 1,686
Likes Received: 0
Thanks: 41
Thanked 365 Times in 215 Posts
|
Quote:
|
|
![]() |
|
| Tags |
| gps, javascript |
| Thread Tools | |
| Display Modes | |
|
|



