开发者

Javascript current location in all browser code?

开发者 https://www.devze.com 2023-03-09 19:11 出处:网络
I want to create application to fetch the current location data using Java script. I want to use this code in any of the browser Firefox,IE,Safari,Chrome,Opera mini along with any version.(1.x,2.x,3.

I want to create application to fetch the current location data using Java script.

I want to use this code in any of the browser Firefox,IE,Safari,Chrome,Opera mini along with any version.(1.x,2.x,3.x,.4.x)....

I have tried but it is running with some of the browser and with limited version.

can any body help me out to find out the solution for finding current location using java script for any browser which is compatible .....please share co开发者_JS百科de snippet or any useful link...

thanks, mishal shah


Here is the solution which abstracts from platform http://code.google.com/p/geo-location-javascript/ if you talk about geolocation.


This is a better resource which includes information about both W3C Geolocation standard and Google Gears Geolocation API

http://code.google.com/apis/gears/api_geolocation.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号