Horses Keep Distance

August 22, 2008 Deep C 2 comments
Horses Keep Distance

Horses Keep Distance

After dinner we got this view again captured by friend Siddhesh Rane in Pune only.

Categories: 2008, Fun, India, Pune Tags: , , , , ,

Little Crack Little Broken

August 22, 2008 Deep C Leave a comment
Little Crack Little Broken

Little Crack Little Broken

It seems that “Little crack, Little broken but running all the way in Pune”. Just got behind a bus in Pune captured by friend Siddhesh.

Categories: 2008, Pune Tags: , , , ,

Dynamically Adding and Removing Text Boxes using JavaScript

July 9, 2008 Deep C 22 comments

After many days I was just trying to work with PHP, MySQL and JavaScript yesterday. In one of the page I wanted to add/remove text boxes on demand (or say dynamically) so after much thought and search i found the solution in using JavaScript. Here is the sample of code which I used for my purpose and may also be beneficial for you web developers who wanted to add or remove text boxes dynamically.

It simply uses two functions:
addElement(): It first gets the element id where we want to include a new element followed by creation of new element and appending it inside the element.
removeElement(): It removes the last added new element.

<html>
<head>
<title>Adding and Removing Text Boxes Dynamically</title>
<script type=”text/javascript”>
var intTextBox=0;

//FUNCTION TO ADD TEXT BOX ELEMENT
function addElement()
{
intTextBox = intTextBox + 1;
var contentID = document.getElementById(‘content’);
var newTBDiv = document.createElement(‘div’);
newTBDiv.setAttribute(‘id’,’strText’+intTextBox);
newTBDiv.innerHTML = “Text “+intTextBox+”: <input type=’text’ id=’” + intTextBox + “‘ name=’” + intTextBox + “‘/>”;
contentID.appendChild(newTBDiv);
}

//FUNCTION TO REMOVE TEXT BOX ELEMENT
function removeElement()
{
if(intTextBox != 0)
{
var contentID = document.getElementById(‘content’);
contentID.removeChild(document.getElementById(’strText’+intTextBox));
intTextBox = intTextBox-1;
}
}
</script>
</head>
<body>
<p>Demo of Adding and Removing Text Box Dynamically using JavaScript</p>
<p><a href=”javascript:addElement();” >Add</a> <a href=”javascript:removeElement();” >Remove</a></p>
<div id=”content”></div>
</body>
</html>

Just drop me a comment if you have any suggestion, comments or query.

Categories: JavaScript Tags: ,

A Log for Life

February 3, 2008 Deep C Leave a comment
Today on 3rd Feb 2008 around 7pm between Mulund station and Matunga station in Mumbai local train journey I lost my all time favorite helpful companion i.e. my mobile. It was Silver-Black colored Sony Ericsson T610 which was with me for more than three years in my good as well as bad times.

I also lost all my contacts as it was saved on my phone rather then SIM.
I also lost few of favorite poetic SMSs which i saved on it from long ago.
I also lost few of the pictures taken by that mobile and which never got backed up.

Moral for me: Never love your mobile.

P.S.: I used to see IMEI code of my mobile but never wrote it anywhere as far as I remember.

Categories: Personal Tags: , ,

Know Your PAN Info

January 27, 2008 Deep C 31 comments

Now we don’t need to remember our PAN number always as Income Tax Department (आयकर  िवभाग)  of India come up with a very good and user friendly site which easily and quickly displays the PAN information. Click on the link below:

http://incometaxindiaefiling.gov.in/knowpan/knowpan.jsp

Just correctly feed your Name and DOB information and Bingo ;-) .

It worked for me in one shot, Lets see if it works for you also in that way.

Categories: India Tags: , ,