I’m writing a browser extension using Kango framework.
As part of its functionality it must know where the user is located. I have that part covered with an API, but the said API requires an ip address as one of the params.
Is there a way to sort of internally see what it is (or what it was last time) or do I have to make a separate call to ANOTHER service (a simple php page I suppose) to figure out what the ip is?
The extension will make another call after the location is established. Should I be irked about 3 separate calls?
Thanks.
Javascript:
PHP:
Sidenote: I am using jQuery here, read the docs here if you don’t know how to use it: http://docs.jquery.com/Main_Page