Archive for the tutorials Category
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 :P This time I am gonna show you how can you swap elements from one select html element to another. Demo var box2;var bo
Read Full PostInstall phpmyadmin using wget on godaddy or other hosts
Recently i shifted to godaddy hosting and i realized that godaddy's hosting connections had SQLyog to be installed and not the phpmyadmin. Then i thought i should install phpmyadmin myself so that i can restore my current database from the old webhost. However later i realized that phpmyadmin is int
Read Full PostHow to use HTTP_POST_VARS in php
HTTP_POST_VARS was a very useful global array, but we dont use it these days. I do not understand or i did not find time to research if it has been discontinued or had some problem. But it was quite a nice array which stored all the fields and their values of a html form into a key-value pair array
Read Full PostSimple, free SEO tricks for your wordpress blog
Hiya, This is going to be very short, brief blog entry but is sure gonna be useful. I used these tricks for the SEO part and trust me it gave me really good results. SEO is really a wide scope in itself and i dont know if i can grasp it all :P Well for me the following tricks for like a charm for
Read Full Postcalculating time difference in PHP
Date and time is one function which is always like there in whatever website, project you create. The more simple they look like to start with the more complex they become. Complexity comes in when we put these functions into different loops conditions etc. Well Today i got a bug in some code and it
Read Full PostDisplay Avatars in wordpress themes
This is going to be a concise tutorial. On my another blog i had an old theme which doesn't support displaying Avatars in comments. So i wandered along and found this snippet which can be replaced by the Avatar picutre when compiled and sent over to the server. So lets get it straight and show you t
Read Full PostAdd 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 the javascript functions to be hooked. We
Read Full PostAn 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 not that you do not get,
Read Full PostPrototype 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 go further and make sense
Read Full PostHow client server model works in websites
In this tutorial I am going to tell you the things from the scratch. What you need to have is an attentive and willing brain, that is all I require from you to understand this tutorial. Basically, Internet is nothing but interconnected computers. These computers are connected across the globe throu
Read Full PostSimple Timer in javascript
This tutorial shows you a simple count down timer in javascript, which you can modify according to your need.. This is in javascript, hence it is not as powerful as it should be, like if a user refreshes its browser, the value is not stored anywhere, and the countdown timer start again. But for t
Read Full PostHide/show div,elements with javascript
In this tutorial i am going to explain how can we hide or unhide elements on a webpage using simple javascript function. Let me tell you this function is very basic and can be extended according to your requirement. There are certain readymade libraries/frameworks available like jquery,prototype. Th
Read Full Post