NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started 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
-
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.
-
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.
-
>> 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