Skip to main content

Posts

Showing posts from February, 2007

Calling Cards for India ...

For past 2 days I am using USP long distance phone Card to speak with my wife (Sai). The call time got over today morning. Most of the people here in the hotel said that they are using "Reliance India Calling Card". More importantly reliance is running an offer now and its named as "Valentine Offer". i.e., Pay USD 5 and talk for 120 minutes. It's a cool offer. So thought I would register in Reliance and get hold of that offer today. Their registration page is this https://www.relianceindiacall.com/US/fp_reg_step1.asp but one can't sign-up if we don't have a mobile /Land Line here in US! They themself say "Please do not register with a hotel/hostel/public phone numbers to avail Reliance India Call service. Instead you can use an auto-generated number for registration under Prepaid plan." . The last statement which talks about auto-generated number doesn't hold good till Feb 28th (thats when this offer ends!). I called up their customer care

Javascript: Proper case validation

I am just posting a Javascript sample which I created for answering a question in dotnetspider. <html> <head> <title>Proper Case Validation -- Sample by Vadivel</title> <script> <!-- function ConvertToProperCase() { strTemp = document.form1.txtString.value strTemp = strTemp.toLowerCase() var test="" var isFirstCharOfWord = 1 for (var intCount = 0; intCount < strTemp.length; intCount++) { var temp = strTemp.charAt(intCount) if (isFirstCharOfWord == 1) { temp = temp.toUpperCase() } test = test + temp if (temp == " ") { isFirstCharOfWord = 1 } else isFirstCharOfWord = 0 } document.form1.txtString.value = test } // --> </script> </head> <body> <form name=form1> <input size=50 name=txtString> <input type=button onClick=ConvertToProperCase() value="Convert It Now"> </form> </body> </html> Update: I have tested it with IE 6.0 alone. May be for working in other browsers y