1
2
3
4
(function () {
    if (!window.console) {
        window.console = {};
...

JavaScript console.log for ie

by lawoffives.blogspot.com, August 20, 2010 15:14, 1 refactoring, tagged with javascript, console

I'm assuming jQuery is pres...

9803fa03938ea54a15ed1954996b1e5c Talk
1
2
3
4
<script type="text/javascript">
	document.onkeyup = KeyCheck;       
	function KeyCheck(e){
...

JavaScript Prevent Default not working.

by Anri, August 19, 2010 16:03, 2 refactorings, tagged with javascript

I am attempting to add Prev...

4058d6b5dc2bfd92fd7f7f9a13eb61a6 Talk
1
2
3
4
function MapWrapper(containerId, userDefinedOptions) {

	MAPWRAPPER_SCOPE = this;
...

JavaScript Javascript googlemap wrappe...

by basit74.myopenid.com, August 18, 2010 12:39, No refactoring, tagged with javascript

I have written a googlemap ...

40f83fc990800c254b7c51f700cad710 Talk
1
2
3
4
<script type="text/javascript">
  $(document).ready(function() {
    
...

JavaScript JQuery - snippet to select ...

by pbarney, August 02, 2010 23:26, 2 refactorings, tagged with javascript, jquery, radio button, input, select all

These two blocks are virtua...

0918379fbd1d6551c6619f94ef4692e0 Talk
1
2
3
4
$(document).ready(function(){
  $('#nav_menu_1').before('<a id="open_all" class="" href="#">Screen reader users can click here to open all menus</a>');
  $("#menu_column ul li").not("#menu_column ul li ul li").each(function(){
...

JavaScript Simple jQuery script - Opti...

by Gareth, July 22, 2010 10:30, 2 refactorings, tagged with jquery, javascript, cookies

Hi, I am pretty new to JS, ...

A959afc1b4415ada875f4d3eaa889132 Talk
1
2
3
4
// this is a function that creates with_libraryname functions
var lazy_load_library = function (path) {
	return function () {
...

JavaScript Lazy Library Loading

by raganwald, February 26, 2010 22:31, 2 refactorings, tagged with javascript, jquery, jgesture, periodicalupdater, lazy loading, lazy evaluation

There are certain libraries...

Fd0d54f1856a8c9cc03f2e5de7c4bc6d Talk
1
2
3
4
		
var getRandomNo = function(seed){
	
...

JavaScript learn more explodeEffect

by adardesign.myopenid.com, February 21, 2010 14:51, 2 refactorings, tagged with javascript, jquery, random, ui

This jQuery snippet creates...

Avatar Talk
1
2
3
4
/**
 * timer.class.js - Version 1.0.0
 * Last update: 01 Jan 2010
...

JavaScript timer.class

by Livingston Samuel, January 01, 2010 14:20, 3 refactorings, tagged with javascript, timer

please review this tiny jav...

5c73a4df4d3d5e8e1f2dc7d7d55a32f1 Talk
1
2
3
4
<script type="text/javascript" src="prototype.js"></script>
<ul id="theUL">
	<li class="toto titi">1</li>
...

JavaScript Select Element with multipl...

by Denis Jacquemin, December 03, 2009 08:23, 4 refactorings, tagged with javascript, prototype, prototypejs, css

Hi all,

With the help of...

56c449f1a408dba893793094599f7fb5 Talk
1
2
3
4
// Copyright (c) 2009 Benjamin P. DeLillo

// Unless otherwise specified, vectors and matricies are assumed to be
...

JavaScript WebGLU, a library for worki...

by bjartr.blogspot.com, October 28, 2009 21:49, No refactoring, tagged with webgl, webglu, javascript

I'm new to javascript and a...

Avatar Talk
1
2
3
4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

...

JavaScript Playing with dom

by Denis Jacquemin, October 24, 2009 21:33, 2 refactorings, tagged with javascript, select, option, prototype

This code works fine, I jus...

56c449f1a408dba893793094599f7fb5 Talk
1
2
3
4
<html>
<head>
<script type="text/javascript">
...

JavaScript My1stJavascript: Dice roller

by tenpn, October 19, 2009 13:45, 2 refactorings, tagged with javascript, helloworld

A C++ programmer who is lea...

A31fbafa397845ab6ec33df5139ae589 Talk
1
2
3
4
$('#page').inlineEdit();
$.fn.inlineEdit = function (opts) {
    var options = $.extend({
...

JavaScript edit inplace plugin with wy...

by kristian, October 14, 2009 11:02, -3 refactorings, tagged with javascript, jquery, wysiwyg

This is based on jquery and...

Eaf2025323bb63b0befc35491afa618e Talk
1
2
3
4
fireEvent: function(event){
		var type = event.type;
		
...

JavaScript Error on closure

by Mikhas, September 08, 2009 14:17, 3 refactorings, tagged with javascript, closure

This code used to works fine.

54aceba7df836ea9396d6a14cc2f19c0 Talk
1
2
3
4
//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...

by Danny Peck, June 08, 2009 15:58, 2 refactorings, tagged with math, increment, javascript

Essentially there is a text...

8f5553306c2cf7f4b14153f6117f8e9b Talk
1
2
3
4
document.observe('dom:loaded', function() {
    var tObjs = document.getElementsByTagName('table');
    for (var x = 0; x < tObjs.length; x++) {
...

JavaScript Highlight the table row on ...

by Danny Peck, May 26, 2009 14:38, 7 refactorings, tagged with highlighting, javascript, table

A fairly common thing to do...

8f5553306c2cf7f4b14153f6117f8e9b Talk
1
2
3
4
  function showBlock(element_id, element) {
    dropdown_tracker = element_id                 //using global variable to track dropdown
...

JavaScript Using global variable for c...

by ttdavett.myopenid.com, May 19, 2009 08:51, 3 refactorings, tagged with javascript, prototype

The following is the code I...

F677fa685a2cfe8aff31f161062db3d3 Talk
1
2
3
4
// Snippets
function remove_spaces(value) {
	if (value == null || value == "") {
...

JavaScript Jquery functions

by diegorv.myopenid.com, March 23, 2009 16:35, 4 refactorings, tagged with jquery, javascript

I`m a beginner with jquery,...

Avatar Talk
1
2
3
var search = 'foo';
var key = null;
...

JavaScript Javascript Switch Statement

by 파이어준, March 16, 2009 06:00, 6 refactorings, tagged with javascript, switch, case

help me produce better code?

9e2c437fb89b21498e262788e45b20c8 Talk
1
2
3
4
// 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 jquery, javascript

Using the jquery.form.plugi...

B6c85faacb1a59a39f31f8820dcbd478 Talk
1
2
3
4
$('.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, 2 refactorings, tagged with javascript, jquery, select

I get a change event within...

Bfca16459c82a7836c3d5c8d79f0b640 Talk
1
2
3
4
$(document).ready(function(){
	// get the text file to be parsed
	$.get('test-data.txt', function(textData){
...

JavaScript Split text into unordered l...

by keif, January 23, 2009 17:10, 5 refactorings, tagged with jquery, javascript, loop, array, List

Using jQuery, I'm trying to...

802c73427a78116c398cfb6765be9c08 Talk
1
2
3
$.fn.grow_input = function() {
  return this.each(function() {
...

JavaScript Expanding input list using ...

by Billskog, January 04, 2009 09:05, 1 refactoring, tagged with jquery, javascript

The idea is to have a expan...

1d61786256cde4ad5a3afb2f1ff3812b Talk
1
2
3
<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 serena, collage, serenacollage, slideshow, javascript

Creating a slideshow in our...

6e585eb21989377a2669d19cca43f40d Talk
1
2
3
<div id="showcase">
  <ul class="nav">
...

JavaScript Tab-Switching in jQuery

by Aupajo, November 19, 2008 00:45, 1 refactoring, tagged with javascript, tabs, jquery

Is there a better way?

Ca3dc3f93730afb41d6753d8bf010a38 Talk