Javascript

Javascript Replace Function

I just have been asked, “Does, Javacript string.replace function replace string only once?”. I said, “No”. But when I test the function I was wrong. Then did a search on internet and found that Javascript’s Replace function is not a String Replacement function as in anyother language, but it is regular experssion based Replacement function. [...]

Calculating distance

With increasing use of Map service such as google, yahoo and MSN one often need to calculate distance between two location. This can be done many ways I suppose. However, to calculate the short distance we can perform calculation based on longitude and latitude values of those two location.  However, it is simply a math [...]

Filling Text Boxes for Testing

It is often required to fillin the form on webpage so you can test the form submission action. For this I often need to put different value so I can recognize the values are coming good. Like I need to create PDF on the fly, In that I need to fill the form on web [...]