WOW

Posted by Kumar Chetan on April 28, 2005

Do this
a) Login to ur gmail account
b) If U r using IE right click near the labels
c) From menu select refresh and U see the following
“Arrgh! The page has been corrupted. If you are running security or firewall software, you may have to disable it. Learn more
Even the most good things tend to crash.
I just changed my cellular no. I was using BSNL Post Paid, had used Spice Post Paid, BSNL Post paid and Pre Paid services also. Every one has some problem. Spice had
a) Customer care problems. AFAIK every time I dialled in to their customer care nobdoy knew the exact details of plan I was using. common ansr was, “Sir Just hold on. Let me confirm it from my sr.”
b) Bad billing
e) Un reliable dealer, the worst thing in a business. I had purchased the Spice plan which offered me 150 SMS free. When I started using I came to know this was a false promise by the dealer and was just to close a deal. U can do nothing.
BSNL had these
a) U call their customer care, and on first place U will have to wait for atleast 30 mins for Customare care exec.
b) If you are lunk and can tolerate an IVRS for 30+ mins U can speak wid a real customer care exec. They know everything and U can trust them but If U need to get something activated or deactivated U need to contact local offices of BSNL ruled bu Indian Babus.
e) The billing is transparent. But if there is some problem then again U need to see the Local Office ruled by Indian Babus
Now am using AirTel, I thot it is a better service provider. again I was wrong. The network is clogged I can’t call my friends on AirTel. Customer care lines are mostly IVRS and ansr ur call when the machine is not clogged. But real fun is free SMS to anywhere in India.
But again every good thing crashes. For last an hour I have been trying to call my frend, on Airtel, and the phone is out of reach. :(

The DOM

Posted by Kumar Chetan on April 20, 2005

I was trying to generate some dynamic content using PHP MySQL. My client Mr. Raj was luking for some thing which will allow him to create and manage dynamic forms. Also he along with little bit of my interfernce designed a database. this database was meant to grab evvery bit of info related to a user. Is he/she mrried? Spourse employed? got children? If yes then age name sex. Have u got fone? if yes then which? Cellular/Landline/this that …..
Now when I am trying to grab info regarding a fone no then I need a mechanism that will allow User to keep adding the fields till he/she wants and then press submit. I had planned it to be like the contact book of Gmail. How do I do this????
Answer is DOM. create a node and then keep duplicating it. simple.
Check this code

var fieldcounter = 0;
function moreFields(whichfield,wheretoadd){
fieldcounter++;
newFields = document.getElementById(whichfield).cloneNode(true);
newFields.id = ”;
newFields.style.display = ‘block’;
var newField = newFields.childNodes;
for (var i=0;i
var theName = newField[i].name
if (theName) newField[i].name = theName + fieldcounter;
}
var insertHere = document.getElementById(wheretoadd);
insertHere.parentNode.insertBefore(newFields,insertHere);
}

BTW I dont own copy right to this function. I copied it shamelessy from www.quirksmode.org/. Its the best site for anyone who has been harassed by crossbrowser compatibility issue.
Infact I have never used JS Dom behaovours. I thot them to be some alien things.


Fine Print: In very short I own my views & if you don't like something on my blog, I am sorry, I can't help you. In fact I am not even sorry. Ch33r5.