Is there a JavaScript script that determines the geographical location of the visitor? I need one to determine that and depending on there location run 1 of about 5 different JavaScript scripts. How do i do this? Does someone know were i can can a script to do this or could someone write one. I am not very good at Javascript so i cant write my own
jonow
0
Junior Poster
Recommended Answers
Jump to Postyou can detect users ip adress using javascript then find location using some webservices.
http://javascript.internet.com/user-details/ip-address.html
what is your server-side platform?
Jump to Postyes, you can use ajax, query the webservice with ajax, when you get the location information in your xmldocument object. you can run your javascript code accordingly.
All 5 Replies
serkan sendur
821
Postaholic
Banned
jonow
0
Junior Poster
serkan sendur
821
Postaholic
Banned
jonow
0
Junior Poster
digital-ether
399
Nearly a Posting Virtuoso
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.