Function.prototype.promise





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2  ...  5 6 7 8 9 10 11 12 13 Next »
2
Date Submitted Mon. Aug. 11th, 2008 11:50 PM
Revision 1
Scripter Fordiman
Tags analytics | drop | google | in | JavaScript
Comments 1 comments
Forgive the formality here; this is one of my professional scripts.

Analyte 1.0 (c) 2008 Bryan Elliott
Purpose:
Simplify inclusion of Google Analytics into any site, add GA tracking to non-HTML links, and reduce 'blocking' action of Google Analytics scripts.

Use:


License:
Unlimited license granted to Abacus Studios, Inc. and I-Site, Inc.
All other parties licensed under CC-BY-SA-3.0:

Creative Commons Attribution / Share Alike 3.0 US
Fulltext and synopsis at
http://creativecommons.org/licenses/by-sa/3.0/us/

This license need not appear in minified or otherwise compressed forms
of this script, so long as the script is in active use by a web site or
application, and no other credit is claimed.
3
Date Submitted Fri. Dec. 14th, 2007 4:41 PM
Revision 1
Scripter Fordiman
Tags "javascript" | Form | Prototype
Comments 0 comments
Prototype's Form.Methods library has a nice piece of code called 'serialize', which, if passed with the optional 'hash' parameter set to true, will convert an HTML form into a Javascript Object.

I was dismayed, however, to find that there was no way to reverse it; just as simply load a form using a Javascrip object.

So, here's one. enjoy.
12
Date Submitted Mon. Oct. 2nd, 2006 11:59 AM
Revision 1
Beginner drench
Tags escape | HTML | JavaScript | String
Comments 0 comments
Similar to Perl's CGI::escapeHTML(), though (because we can!) this adds it as a method to all String objects.
13
Date Submitted Mon. Oct. 2nd, 2006 1:05 PM
Revision 1
Beginner drench
Tags Array | JavaScript | List | Random | shuffle
Comments 3 comments
It works with Array types. The example is a simple list of numbers, but the array could contain anything; lists of strings, functions, DOM nodes, whatever. Unfortunately, a lot of things that seem like arrays in the DOM aren't really, so you can't shuffle the images on a page with just document.images.shuffle() all by itself.
9
Date Submitted Thu. Feb. 8th, 2007 10:05 AM
Revision 1
Helper dohpaz
Tags "web safe colors" | JavaScript
Comments 0 comments
I had searched high and low for a way to generate a palette of web-safe colors. Despite Google's best efforts, what I had found was lacking for my needs. So, I decided to write a library that would generate all 216 web safe colors, and then allow me to manipulate those colors in any way that I chose.

If anybody is curious as to why I would want to do something so... simple, it is because I needed a very light-weight color picker, and didn't want to mess with any fancy options.
14
Date Submitted Fri. Jul. 28th, 2006 1:10 AM
Revision 1
Beginner delook
Tags Form | HTML | JavaScript
Comments 2 comments
Set a word or phrase in an input field, clear it onfocus
12
Date Submitted Fri. Jul. 28th, 2006 5:48 AM
Revision 1
Beginner delook
Tags google | JavaScript | map
Comments 0 comments
A simple demo of the google maps API
3
Date Submitted Tue. Sep. 25th, 2007 10:50 AM
Revision 1
Helper chaos
Tags "form input" | "input focus" | autofocus | JavaScript
Comments 0 comments
This script performs reliable, cross-browser input autofocus that often can be used simply by dropping it in, with no modifications to the form or HTML body. It refuses to switch focus if it detects that the user has interacted with the form (avoiding a major source of annoyance with autofocus scripts) and correctly handles Firefox tabs opened "in the background", which most autofocus scripts fail on. Official home is on the Lost Souls MUD Grimoire.
3
Date Submitted Sun. Oct. 7th, 2007 3:47 AM
Revision 1
Helper chaos
Tags "diminishing returns" | formula | JavaScript | math
Comments 0 comments
A simple, flexible formula for generating diminishing returns out of input numbers. Full explanation and home, with sample calculators and versions of the code in other languages, on the Lost Souls MUD Grimoire.
6
Date Submitted Wed. Oct. 17th, 2007 2:34 PM
Revision 1
Helper chaos
Tags createElement | IE | JavaScript
Comments 0 comments
A wrapper on top of createElement for getting around IE problems with manipulating the name attribute. Unlike most solutions for this, it tests for which method to use once when the page loads rather than every time an element is created. By Chaos of Lost Souls MUD (a text-based fantasy RPG).
« Previous 1 2  ...  5 6 7 8 9 10 11 12 13 Next »