Archive for the javascript Category
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 PostWeb 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 PostDrag 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 PostCheck 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 PostSimple 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 PostAjax 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 Postis_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 PostSubmit 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 PostGetting started with BBC Glow javascript library
Hey Folks, You might have recently read on Digimantra that we discussed about the Glow, an open source javascript library by BBC. Many of my readers did not believe this at first that a company like BBC can release an open source library. But the fact is yeah they have been releasing this since
Read Full PostGlow an open source javascript library by BBC
Open Source a big bang which is spreading like a fire in the forest. Everything today has an open-source alternative, let it be Microsoft Windows, Photoshop, Microsoft Office, Outlook Express or whatever. The best thing about Open Source is that people actually love it and the community contributes
Read Full PostHow to remove digg or any other site bar
So you do not like the digg bar as well ? Or someone told you that you are losing traffic cause of the digg bar ? Well whatever the case is you really do no want that fancy bar to hang on top of your website, right ? It is very simple to get rid off that annoying bar, i have showed you in my
Read Full PostMake sure your site is not rendered in an iframe
This is going to be short and simple tip. There are chances that your site can be put into iframe and you probably do not want that to happen. But there are not chances for your site to handle such situation, only before reading this post :P So how do you avoid that ? Well it is fairly simple usi
Read Full Post