//function that loops through the elements
function __validateForm(theform){
...
JavaScript Simple form validator with ...
by eljota,
November 11, 2007 10:32,
5 refactorings, tagged with javascript, js, form, validation, regex
This is a real simple form ...
<script type="text/javascript">
window.onload = function() {
...
JavaScript Shorten links
is there a better, shorter,...
var Fenster = null;
function neuesFenster(meineSeite,meinName,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
...
JavaScript Unobstrusive changing of im...
I am pretty new to javascri...
document.write ('<noscript>\n');
document.write (imageClick);
document.write ("</noscript>");
JavaScript I care about older browsers...
by Gary Haran,
October 30, 2007 22:30,
3 refactorings
I found this great piece of...
function toUpperCase( str : String ):String {
...
JavaScript Uppercase a string, but ski...
I had to do this on my curr...
<script type="text/javascript"> var feature_stuff = new Array( '<li><a href="#">URL 1</a></li>', ...
JavaScript Random URL
Outputs one of the 5 urls r...
#Functions [javscript] var ms = 0; var state = 0; ...
JavaScript Stop Watch
by richardhealy,
October 27, 2007 13:31,
3 refactorings, tagged with time, clock, speed, test, javascript
I use this to test speed of...
/* Set some variables */ ...
JavaScript ImageFlow - something like ...
by admiralquade,
October 25, 2007 14:54,
23 refactorings
Hi there, I wrote a javascr...
function curry(fn, scope)
{
var scope = scope || window;
...
JavaScript Curry
by richardhealy,
October 18, 2007 09:34,
6 refactorings
I use this little function ...
(function(){
var unicode = {
...
JavaScript Unicode Converter
by harrydeluxe,
October 18, 2007 01:43,
2 refactorings
I'm pretty sure we can figu...
function mark_for_destroy(element) {
...
JavaScript Combining javascript for 2+...
by Etandrib,
October 17, 2007 21:32,
3 refactorings
This is some javascript whi...
number_to_currency: function (number, options) {
try {
var options = options || {};
...
JavaScript Rails-like number_to_curren...
by Barry Hess,
October 16, 2007 03:18,
10 refactorings
This is pretty much a port ...
String.prototype.ucfirst = function()
{
// Split the string into words if string contains multiple words.
...
JavaScript ucfirst
by Ali Karbassi,
October 08, 2007 22:41,
7 refactorings
I'm wondering if this could...
$w('mp3 pdf doc txt rtf').each(function(ext){
$$('a[href$=.' + ext + ']').each(function(a){
var pageview = '/downloads' + a.href.substr(a.href.lastIndexOf('/'), a.href.length); /* /downloads/wtf.mp3 */
...
JavaScript Tracking File Downloads Aut...
by getopenid.com/deleteme,
October 04, 2007 10:48,
2 refactorings
This is dependent on the Pr...
function getElementsByClass(searchClass, node, tag)
{
...
JavaScript Simple Form Validation
by Ali Karbassi,
October 02, 2007 18:55,
11 refactorings
All this does is check to s...
var d = new Date() d.setDate(d.getDate()-1) var yesterday = (d.getMonth()+1+"/"+d.getDate()+"/"+d.getFullYear()) ...
JavaScript Go Back To Yesterday
by https://getopenid.com/thegenericgeek,
October 01, 2007 09:58,
8 refactorings
Display yesterday's date. ...
/*** * Beautify date to how recent the event occurred compared to now. * Some examples: 1 second, 4 hours, 10 days, 1 year. ...
JavaScript Beautify JS Date to how rec...
by furtive,
October 01, 2007 09:55,
13 refactorings
This adds a .when() method ...
function http_object()
{
...
JavaScript AJAX Chat Handler
by Martindale,
September 29, 2007 21:20,
No refactoring
This code clumsily handles ...
var Rating = Class.create();
Rating.prototype = {
initialize: function(element, rating, options) {
...
JavaScript Rating system for this site
by macournoyer,
September 29, 2007 14:09,
3 refactorings
Here's the code of the rati...
var Aux = {
multiformatEditor : function(target, value, onExit)
{
...
JavaScript AJAX rich text widget
by mahound,
September 28, 2007 00:07,
5 refactorings
I don't like this code. It ...
Object.extend(Date.prototype, {
isLeap: function(){
var year = this.getFullYear();
...
JavaScript Is this year a leap year?
by Gary Haran,
September 21, 2007 07:16,
16 refactorings
I'm pretty sure we can figu...
String.prototype.hello = function(){
alert('hello world!');
}
...
JavaScript Hello World
by Gary Haran,
September 17, 2007 13:09,
1 refactoring
This is simply to test out ...
Makes 32 bit PNG's transpar...