Categories

How to validate only digits and decimal points in Javascript?

TweetShare(function() {var s = document.createElement(‘SCRIPT’), s1 = document.getElementsByTagName(‘SCRIPT’)[0];s.type = ‘text/javascript’;s.async = true;s.src = ‘http://widgets.digg.com/buttons.js’;s1.parentNode.insertBefore(s, s1);})();

Our company had implemented an online payment form where customers could pay online on the company website against outstanding invoices or any other service. However, the validation on the form regarding the payment amount field was pretty simple as it [...]

How to customize the style drop down in FCKEditor

TweetShare(function() {var s = document.createElement(‘SCRIPT’), s1 = document.getElementsByTagName(‘SCRIPT’)[0];s.type = ‘text/javascript’;s.async = true;s.src = ‘http://widgets.digg.com/buttons.js’;s1.parentNode.insertBefore(s, s1);})();

One of my clients wanted to use the same CSS classes which were being used on the public website in the FCKEditor so that he could apply the classes in one go while writing the content. Now the Style drop [...]

Disable Enter key on form

TweetShare(function() {var s = document.createElement(‘SCRIPT’), s1 = document.getElementsByTagName(‘SCRIPT’)[0];s.type = ‘text/javascript’;s.async = true;s.src = ‘http://widgets.digg.com/buttons.js’;s1.parentNode.insertBefore(s, s1);})();

If you need to disable JavaScript on your form then apply the following code in the <head> tag.

<!– <script language=”javascript” type=”text/javascript”> function checkEnterkey(evt) { var evt = (evt) ? evt : ((event) ? event : null); if (evt.keyCode == 13) { return false; }
}
document.onkeypress = checkEnterkey;
</script>
–>