Archive for the javascript Category

Page 1 of 3123

[Solution] HTML validation fail for AddThis buttons

Recently I was doing  W3C validation for a website and bumped into a validation trouble because of some social media buttons added to the website. These buttons was added using the famous & widely used AddThis Share Buttons. On Validating I was getting following errors - there is no attribute

Read Full Post

Ajax:Quickly submit a form in JQuery using serialize

I am sure you often do a form submission via Ajax and more easily using JQuery. But did you know using a simple method called serialize in JQuery form submission could be more easier. Serialize method converts the form elements & values in an encoded string and submits to the form action. This h

Read Full Post

Decoding Art Clokey Google Doodle

Google Doodle always amazes each one of us which their extra ordinary creativeness. Be it the Guitar Le Paul's birthday or today's Google doodle on Art Clokey's  birthday. When I opened twitter this morning found that lot many people are discussing about the Google Doodle being made in flash. Howev

Read Full Post

Show loading icon in JQuery Ajax request

JQuery is the most used Javascript framework. It's exceptionally simpler and famous. The best part of JQuery is that it has very nicely done documentation and lot many resources available online. Lately, while doing one of my codeigniter I used JQuery and wanted to share a little snippet of code

Read Full Post

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

Page 1 of 3123

Get Adobe Flash playerPlugin by wpburn.com wordpress themes