If you need to get your visitor's city, state, province & country using javascript, you can do that by using Google APIs. Its very easy to do with a few lines of code and can provide a lot of possibilities because you can determine your visitors location with javascript. You can set your site's language, timezone, or design according to your visitors location. Here are the instructions:
Blog on Web Design, SEO, Marketing Optimization, Web Development, and Random Stuff by Mike Wagan
Showing posts with label javascript. Show all posts
Showing posts with label javascript. Show all posts
Thursday, July 14, 2011
Wednesday, February 09, 2011
JQuery: How To Get URL Parameters & Values
While developing on a Drupal website, I was using the URLFill module to automatically fill in the form fields with some GET variables in the URL (something like http://example.com?var1=value1&var2=value2). For some reason it is not filling-up a Content Taxonomy field where the widget is set as autocomplete. So what I did was to implement the auto-filling of the said field with JQuery. This was the function I used:
Thursday, August 05, 2010
Quick and Easy Javascript Form Validation
If you need a quick javascript form validation script, you can use this one from Javascript-coder.com. Its pretty easy to implement and I've used it in some of my projects already. Its gonna save you some time coding from scratch!
Subscribe to:
Posts (Atom)