Archive for the javascript Category

Page 1 of 3123

Asynchronous and Synchronous AJAX calls

AJAX as you might be knowing stands for Asynchronous JavaScript and XML, but in this article we are going to see what is the difference between Asynchronous and Synchronous AJAX call ? Let's see how an AJAX call is made from client and what it involves. An object of the browser's XML HTTP Requ

Read Full Post

Change onclick function for anchor tag using JavaScript

In this post we will learn how to change or add JavaScript function on the onclick event for the anchor tag. Infact, you can use this methodology add/change JavaScript function for almost any event and on elements which support such events. In usual scenario one tends to change/add JavaScript fun

Read Full Post

What is self executing function in Javascript

I have been working on JavaScript quite extensively since last few months and I found this self executing function really helpful. It's unique in its own way and can actually help you a lot. A self executing function in JavaScript is the one which is invoked automatically as soon as it is defined. I

Read Full Post

Getting started with Google map API v3

Google Maps recently got promoted to v3 and there are some major changes in v3 API. With the release of v3 the previous version has been officially deprecated and hence there won’t be any further enhancements in that. I will walk you through the basics on how to get started with Google Map API v3.

Read Full Post

How to detect screen or browser size in JavaScript

Hey Folks,   Wonder how to you get the size of a visitor’s computer screen ? Yes, you might need it for some cases where you want to display content of your website correctly according to the screensize of the user’s computer, mobile, iPhone, Android device or any other smartphone. You

Read Full Post

Web Workers – Another leap in JavaScript

Hey Folks, When I started discussing web workers at SparkIT - 2010, I asked about it from the listeners. They came up with funny answers and out of which one was “Web Workers are people, who develop WEB for us”. It might sound funny but Web Workers are really here to change the way we look at

Read Full Post

Drag an element,image etc using javascript,html,css

Hey fellas, Today I am going to show you how you can make an element draggable or moveable on your webpage. This webpage element can be either image, div or even input box. We are going to use simple Javascript, CSS and HTML for this purpose. You can see a working demo on this page and can save t

Read Full Post

Check username availability and validation using ajax,php

So you are creating a signup form and you want to create a fancy looking username validation Ajax script. I know that looks fancy when you signup for Gmail or Yahoo mailbox, instead these kind of validation are now on every signup form. We are going to create this simple script using Javascript, A

Read Full Post

Simple tabs using Javascript and CSS

Hey Folks, Its been long since Digimantra got these Javascript tabs in the sidebar. They are pretty sleek and light in weight. Many of my friends & visitors requested me to share the tutorial for these kind of tabs so that they can customize it and put it on their blogs/websites. These ta

Read Full Post

Ajax powered city state Dropdown

Hey Geeks, Many of you have already gone through a simple javascript example script, which lets you swap elements from two select boxes. I posted this blog post few months back. In this post I am going to show you, how  you can use ajax to populate a dropdown, on the basis of value selected i

Read Full Post

is_object function for javascript

If you are programming in Javascript then you might need to test a variable for object or null at various levels. Some like to rewrite the code while others like to create a generic function or a php like function to make their life easy. So this is going to be a small snippet of code but is a life

Read Full Post

Submit form with enter key, when there is no submit button

Hey Folks, During your web development odyssey, you might have encountered a situation when you need to perform certain action without the "Submit button". Or you want as soon as user completed the form and hits Enter the form gets submitted. Well this is true when you have submit button embe

Read Full Post

Page 1 of 3123