Saturday December 5, 2009
Many of the more knowledgeable JavaScript programmers claim that truly hiding your page source so that only those with the right password can access your page is impossible but they are wrong. While almost all attempts to hide the password can either be reverse engineered or bypassed within a few minutes if not sooner, Fritz Schneider proved that this need not always be the case by implementing a version of the Rijndael encryption algorithm in JavaScript. His version is a bit big to use (at 20k) but I have managed to compress his code down to one third the size. While a 6.6k JavaScript is still rather large, it is small enough to make real encryption using just JavaScript possible.
JavaScript Encryption
Friday December 4, 2009
One way encryption (or hashing) is possible with JavaScript. You can use MD5 or SHA1 encryption, it is just not very useful since your visitors can always modify the JavaScript to bypass it.
JavaScript Hashing
Thursday December 3, 2009
Some people prefer that additional details about a term or link on their web page be displayed inline after the link instead of hovering over the page in its own box. This JavaScript shows and hides the content of a span that follows immediately after the linked text.
Inline Tooltips
Wednesday December 2, 2009
So far in our tutorials on validating forms we have looked at the JavaScript needed to perform different types of validations. What we haven't looked at is how to attach these validations to the form itself. In this tutorial we look at how we can have a field validated as soon as it has been entered.
Individual Field Validations