NetTalk Central

Author Topic: Location Services Questions  (Read 1954 times)

RayA

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • My Web Site
    • Email
Location Services Questions
« 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

 

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Location Services Questions
« Reply #1 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.

RayA

  • Newbie
  • *
  • Posts: 43
    • View Profile
    • My Web Site
    • Email
Re: Location Services Questions
« Reply #2 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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11158
    • View Profile
Re: Location Services Questions
« Reply #3 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