1
2
3
4
this.getHttpRequest(identifier).onreadystatechange = function() {
	try {
		ajaxChat.handleResponse(identifier);
...

JavaScript AJAX makeRequest

by Martindale, July 23, 2008 03:02, 1 refactoring, tagged with ajax

This code crashes Firefox 3...

72f4ba51b784673a15a1e89d8d9f49d1 Talk
1
2
3
4
function toHTML(code) {
	code = removeTags(code)
	code = convertTables(code)
...

JavaScript Markdown-like editor

by Zodoz, July 03, 2008 01:36, 1 refactoring, tagged with javascript, markdown, editor

Hey all, I've created a Mar...

2bf2366ae73ca0d6974cad4575a16472 Talk
1
2
3
4
$.fn.textNodes = function() {
  var ret = [];
  this.each( function() {
...

JavaScript [jQuery] All descendent tex...

by jed, June 29, 2008 07:35, 3 refactorings, tagged with jquery, dom, speed, recursive

This function returns a jQu...

7b72d5a18ab92129692e97a76a153fe0 Talk
1
2
3
<html>
<head>
...

JavaScript Javascript Coverflow

by Devon, June 02, 2008 11:16, No refactoring, tagged with javascript, coverflow, animation

Recently I've been working ...

75d72a45e763d7c4d2d645596f173de5 Talk
1
2
3
4
<div id="countdown"></div>
<div id="notifier"></div>

...

JavaScript countdown timer (minutes &a...

by Jermaine, May 27, 2008 09:57, 7 refactorings

Hello Everyone.
I'm trying...

79b4825afe5c22c7d6226037ac81ee69 Talk
1
2
3
4
javascript:
popw=window.open('','Tarpipe micro-post','width=800,height=150');
popw.focus();
...

JavaScript Tarpipe to twitter, jaiku a...

by griflet, May 31, 2008 00:52, No refactoring, tagged with tarpipe, javascript, bookmarklet, POST

<a href="http://tarpipe.com...

Aae34a7973a8d98e53764a1c89090c55 Talk
1
2
3
4
//Given a date, returns a new date object that contains the start of the week
function startOfWeek(d){
    var beg = new Date(d);
...

JavaScript Week Of Date

by spyckie.myopenid.com, May 23, 2008 20:55, 1 refactoring, tagged with javascript date

The code takes a date objec...

C270a3d9a0091977de642fec90b43ad3 Talk
1
2
3
4
function calc_color(value, start, end, min, max) {
    var n = (value - min) / (max - min);
    var s = parseInt(start.replace("#", ""), 16);
...

JavaScript Hex color between two colors

by Lucent, March 11, 2008 08:27, 3 refactorings, tagged with speed

Watch out for edge cases, l...

38daf62a7887b44454a78a37552b22e4 Talk
1
2
3
4
javascript:(function(){
    var elm = document.getElementsByTagName("img");
    for (var i = 0; i < elm.length; i++) {
...

JavaScript Zoom all image files from s...

by griflet, February 27, 2008 23:49, 4 refactorings, tagged with bookmarklet, friendfeed

This one comes straight fro...

Aae34a7973a8d98e53764a1c89090c55 Talk
1
2
3
4
javascript:
popw='';
y=window;
...

JavaScript Mathtex bookmarklet

by griflet, February 15, 2008 11:11, 2 refactorings, tagged with bookmarklet, mathtex, latex

Join the lines and save it ...

Aae34a7973a8d98e53764a1c89090c55 Talk
1
2
3
4
function odump(object, depth, max){
  depth = depth || 0;
  max = max || 2;
...

JavaScript Recursively dump an object

by hubfactor, February 01, 2008 12:40, 2 refactorings, tagged with javascript, dump, recursive

Given an object, iterate th...

Ed9c50a6db8b5e078b5ef84306a8477c Talk
1
2
3
4
check out: http://www.thethirteenthstory.com/WFCINC/site/

the menus grow in IE, fine in all other browsers
...

JavaScript growing menus ?

by Garrett, January 15, 2008 15:29, No refactoring, tagged with drop down menus

i know this isn't a help fo...

E9674d02c33d1d711a462026f40bbaf4 Talk
1
2
3
4
<html>
<head>   
<title>My Experiment</title>   
...

JavaScript How to Refactor from a Loop...

by Jermaine, December 31, 2007 09:59, 17 refactorings

Hi Everyone,

I'm having...

79b4825afe5c22c7d6226037ac81ee69 Talk
1
2
3
4
function showEMail() {
   var e = [ 'm','y','e','m','a','i','l','@','x','y','z','.','c','o','m' ];
   var s = '';
...

JavaScript Anti-spam Mailto

by Jerome Paradis, January 06, 2008 22:52, 5 refactorings, tagged with Anti-spam mailto

Here's a straightforward an...

70a3fa2b5cef1685f96ed038a63af2e4 Talk
1
2
3
4
<html>
<head>
<title>Print Image Only</title>
...

JavaScript print an image

by cuaddu.myopenid.com, December 26, 2007 15:30, 4 refactorings

Hi! I was searching a solut...

Bd37aa4f13db2d8b0856146305618539 Talk
1
2
3
4
/*
 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...

Db11d496fa96adac53b422feb6efd493 Talk
1
2
3
4
function full_reset(form) {
cost_per_unit.innerHTML = ""
charge_per_unit.innerHTML = ""
...

JavaScript Repetitive Calculator Code

by pimp, December 20, 2007 13:20, 1 refactoring, tagged with calculator

I am almost embarrassed to ...

67c02d91e6570d0a0f6e67f96dd7ce28 Talk
1
2
3
4
//creation and affectation
myArray= new Array();
myArray[2]='something';
...

JavaScript Get the last key

by jojolapine, December 06, 2007 11:42, 9 refactorings

I have to get the last key ...

0ab5447b6e091c22232b33b0c85bc6f2 Talk
1
2
3
4
function startup() {
  setInterval(”pinger(’live’,0)”,10000);
  setInterval(”pinger(’standby’,1)”,10000);
...

JavaScript Javascript threading

by Dan Simard, December 06, 2007 14:06, 6 refactorings

This submission is from a q...

A969cbe277419ae0af0acee58f4cfa15 Talk
1
2
3
4
function thousdands(num, decpoint, sep){
	if (arguments.length == 2) {
		sep = ",";
...

JavaScript Thousands

by Kolin, November 29, 2007 12:00, 3 refactorings, tagged with thousands, javascript, number

Formats numbers with thousa...

2f32a949f807af44f74ce14a124b9bad Talk
1
2
3
4
function calcVitesse(){
   var tempsTab = document.forms.adminForm.temps.value.split(':');
   var kilometrage = document.forms.adminForm.kilometrage.value;
...

JavaScript Amélioration d'une fonction JS

by Sebe, November 30, 2007 09:12, 3 refactorings

Bonjour,

N'étant pas un ...

98d4ac7bf1aea89c981eb2e27e47e5ea Talk
1
2
3
4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
...

JavaScript ajax star rater using mootools

by blank714.myopenid.com, November 21, 2007 08:00, 4 refactorings, tagged with mootools, ajax, star rating

i know theres a lot of star...

Avatar Talk
1
2
3
4
Element.addMethods({
  pngHack: function(el){
    var el = $(el);
...

JavaScript pngHack

by getopenid.com/deleteme, November 15, 2007 03:40, 1 refactoring, tagged with rails, png, image, img, prototype, hack

Makes 32 bit PNG's transpar...

Db11d496fa96adac53b422feb6efd493 Talk
1
2
3
4
<script type="text/javascript">

window.onload = function() {
...

JavaScript Shorten links

by DeathfireD, November 09, 2007 14:23, 4 refactorings, tagged with short, url, short url

is there a better, shorter,...

421453710d51d7daaea8069af0aa4126 Talk
1
2
3
//function that loops through the elements
function __validateForm(theform){
...

JavaScript Simple form validator with ...

by eljota, November 11, 2007 10:32, 4 refactorings, tagged with js, javascript, form, validation, regex

This is a real simple form ...

Avatar Talk