NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: RayA on March 07, 2012, 08:47:25 PM

Title: Location Services Questions
Post by: RayA on March 07, 2012, 08:47:25 PM
My first question is why do i get a compile warning (calling function as a procedure) when I use p_web.GetLocation()

It works but the warning is given when I compile.

My other question is I am using Location Services in a net form.  When I go to the net browse proc that uses that from for updates, thats when the web browser is prompted asking for permission.  Why does it do there? The p_web.GetLocation() code has not fired yet. 

Ray Abadie

 
Title: Re: Location Services Questions
Post by: kevin plummer on March 07, 2012, 09:28:48 PM
Hi Ray,

I guess it's trying to return you some data so you need to do something like Loc:Location = p_web.GetLocation()


If your form is popup then it generates it in a hidden div on the Browse page. If you move your code to a new embed on the form you may be able to stop it firing at that point.
Title: Re: Location Services Questions
Post by: RayA on March 07, 2012, 10:18:51 PM
Thanks Kevin,

Thats a big help. And yes the form was a pop up.   I am ok with the net browse prompting the user at that point, I was just curious why it was doing it there when the location code was in the form.  This give me a better understanding on how it works. 

LOL .... and now I know

Ray Abadie
Lafayette, La.
Title: Re: Location Services Questions
Post by: Bruce on March 10, 2012, 04:40:05 AM
>> p_web.GetLocation()

can be called in one of two ways; by default as just
p_web.GetLocation()
(and I'll suppress the warning) or as
packet = clip(packet) & p_web.GetLocation(net:nosend)

you'll most likely use the first approach in almost all cases (which is why it's the default.)

cheers
Bruce