An example on how to populate dropdown corresponding to another, using ajax along with demo.
is_object function for javascript
Function to get if the passed argument is an object or no.
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
Getting 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
Glow 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 it to
How 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
Make 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 😛 So how do
CSS Properties To JavaScript Reference Conversion
Heya Peeps, Today one of my colleague was stuck in very basic Javascript function, in which he was trying to change the font-size of a paragraph by tweaking the CSS “font-size” property with the help of a Javascript function. His code was perfect but with one problem, that was proper
Sleep or wait function in javascript
Always wondered that why does Javascript do not have some extraordinary functions like trim, wait, sleep etc. Oh well, i think at that time they din bother to add them or din feel the requirement. I was working on a script last week and somehow i wondered if i can
Add user specific replies in wordpress comments
Always wondered how to leave a reply to specific comments or a thread like replies. Well wordpress made it very simple for you. The function wp_list_comments accepts various useful parameters . There is one parameter called max_depth which is going to do the trick for you. If you open your
Creating a simple color palette or color picker in javascript and html
Color palettes are one of the prime resource of a web 2.0 website. There are many color picker codes available online, but they all involve lot of coding and pasting stuff here and there. And some useless CSS and input boxes, which in result mess up the core code. Well
Add append remove value in select html element using javascript
Hiya Guys, Its been long since i posted here on “DigiMantra”. Been really busy in my office and events,conferences etc. As I love to write code/tutorials here so I am back 😛 This time I am gonna show you how can you swap elements from one select html element to
Add javascript function using css class
In this tutorial i am gonna show you how a javascript function can be hooked to a HTML element with its predefined class or id attribute. We are going to use class attribute here because we may want to have multiple elements of the same kind where in we want
An alternate for Associative array in javascript
Yeah i know array is what you have been living with because you think you do not require object at some places. And talking about array, you gonna choose associative arrays for sure, right eh ? Well on the sad note you do not get associative arrays inside javascript. Its
Prototype in javascript | An object oriented javascript
In this tutorial i am going to show you how to use prototype object in javascript to change the way you used to code. Prototype is an amazing way to add custom properties/methods to your existing legacy Objects or make your own. Well did that sound complicated ? Hmmm.. Lets