Skip to main content

Posts

Showing posts with the label APIs

How to create a search engine

How to create a search engine I am going to teach you how we can create a search engine using Google API . You can add more styles to it ,because I'd be creating a simple looking search engine. Google Custom Search API are wonderful tools to create some awesome search engine like tools. Also if you want to add a search option to your website and customize the look and feel of your search results, Google Custom Search API serve best to you. I have created a Real Time Search engine (I call it real time as it search as you type). I am really impressed by the speed/response of Google Search API. In order to use Google Search API, you have to first generate a Key for you. Go to following page and signup your self for the Key. Sign up for Google API Key https://code.google.com/apis/ajaxsearch/signup.html Next step is to include the Google Search API javascript. Don’t forget to mention your key in the below code. <script src="http://www.google.com/jsapi?key=YOURKEY...

How to detect your website user's location using javascript

Getting Website vistor's location in Js Hi there,in today's tutorial i am going to show you how you can get your Visitor's location using JavaScript Detecting the location of your website’s users is useful for a variety of reasons. You might, for instance, want to display different content, perhaps in different languages for people from different countries, or display targeted information to visitors from different locations,maybe to show them ads based on their location and much more. Whatever your reasons might be, you have two options: The Geolocation API and IP address lookup The geolocation API It is a new feature in HTML5 that allows a web page’s visitor to share their location with you if they so choose to(the choice is theirs to make). When you try to retrieve the location using this API , a prompt is being displayed to the user, asking them if they’d like to share their location with your website. Well, this obviously means that you won’t get the location...