//e is the object, and 'op' is a parameter passed that tells us
//if we're increasing or decreasing the value.
function step_change(e, op) {
...
JavaScript An incrementor function tha...
document.observe('dom:loaded', function() {
var tObjs = document.getElementsByTagName('table');
for (var x = 0; x < tObjs.length; x++) {
...
JavaScript Highlight the table row on ...
A fairly common thing to do...
function showBlock(element_id, element) {
dropdown_tracker = element_id //using global variable to track dropdown
...
JavaScript Using global variable for c...
The following is the code I...
// Snippets
function remove_spaces(value) {
if (value == null || value == "") {
...
JavaScript Jquery functions
I`m a beginner with jquery,...
var search = 'foo'; var key = null; ...
JavaScript Javascript Switch Statement
help me produce better code?
// New function for enviar.
$(document).ready(function() {
var options = {
...
JavaScript jQuery repeating yucky code
by crungmungus.myopenid.com,
February 18, 2009 11:30,
6 refactorings, tagged with javascript, jquery
Using the jquery.form.plugi...
$('.answer_filter').change(function() {
var filter = jQuery(this);
var select = jQuery('#' + filter.get(0).id); // @TODO find a more appropriate solution
...
JavaScript Get the id of a <select&...
by sebastian.deutsch.myopenid.com,
January 27, 2009 17:19,
3 refactorings, tagged with javascript, jquery, select
I get a change event within...
$(document).ready(function(){
// get the text file to be parsed
$.get('test-data.txt', function(textData){
...
JavaScript Split text into unordered l...
Using jQuery, I'm trying to...
$.fn.grow_input = function() {
return this.each(function() {
...
JavaScript Expanding input list using ...
The idea is to have a expan...
<div id="slideshow" style="background:#FFF"> <h2 class="slideshowTitle">Around the World with Language</h2> ...
JavaScript Serena Collage slideshow
by tbeseda,
November 19, 2008 21:53,
No refactoring, tagged with javascript, serena, collage, serenacollage, slideshow
Creating a slideshow in our...
setDefaults = Behavior.create({
initialize: function(obj) {
myforms = this.element;
...
JavaScript Highlight Selected forms, S...
by openid.aol.com/forwardfootmedia,
October 10, 2008 01:49,
5 refactorings, tagged with javascript, prototype, Ruby on Rails, lowpro
The script binds itself to ...
var hash = new String(document.location).indexOf("#");
if(hash > 0)
{
...
JavaScript Small Javascript Code
by openid.aol.com/aviewanew,
October 06, 2008 01:20,
6 refactorings, tagged with javascript, ajax, history
It's for detecting if you'r...
function toHTML(code) {
code = removeTags(code)
code = convertTables(code)
...
JavaScript Markdown-like editor
Hey all, I've created a Mar...
javascript:
popw=window.open('','Tarpipe micro-post','width=800,height=150');
popw.focus();
...
JavaScript Tarpipe to twitter, jaiku a...
<a href="http://tarpipe.com...
function odump(object, depth, max){
depth = depth || 0;
max = max || 2;
...
JavaScript Recursively dump an object
Given an object, iterate th...
/*
Example Usage:
new ImagePreloader({
...
JavaScript Image Preloader
by getopenid.com/deleteme,
December 26, 2007 20:34,
No refactoring, tagged with javascript, image, preloader, images
I'm looking at the 'createI...
function thousdands(num, decpoint, sep){
if (arguments.length == 2) {
sep = ",";
...
JavaScript Thousands
Formats numbers with thousa...
//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 ...
#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...
Essentially there is a text...