Category: Javascript

  • Spell Checker for Web Application (PHP on Linux )

    Well try this http://activecampaign.com/activespell/ free spell checker, it use backend pSpell component installed on PHP to work, but is very good spell checker for your HTML editors and TextArea boxes. I have used it in past and found it easy to install.

  • LightBox Vs VideoBox Vs Custom Code

    Recently I was given a task to make LightBox and VideoBox work on same page, where we have Images and Video to show. However, Videobox is inspired by Lightbox as per developer, they are not compatible with each other. The reason I found is that they share few variable and hence they are breaking each other’s code.…

  • 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…