1 2 3 4
(function () { if (!window.console) { window.console = {}; ...
JavaScript console.log for ie
1 2 3 4
<script type="text/javascript"> document.onkeyup = KeyCheck; function KeyCheck(e){ ...
JavaScript Prevent Default not working.
I am attempting to add Prev...
1 2 3 4
function MapWrapper(containerId, userDefinedOptions) { MAPWRAPPER_SCOPE = this; ...
JavaScript Javascript googlemap wrappe...
I have written a googlemap ...
1 2 3 4
<script type="text/javascript"> $(document).ready(function() { ...
JavaScript JQuery - snippet to select ...
These two blocks are virtua...
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...
Hi, I am pretty new to JS, ...
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
There are certain libraries...
1 2 3 4
var getRandomNo = function(seed){ ...
JavaScript learn more explodeEffect
This jQuery snippet creates...
1 2 3 4
/** * timer.class.js - Version 1.0.0 * Last update: 01 Jan 2010 ...
JavaScript timer.class
please review this tiny jav...
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...
Hi all,
With the help of...
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...
I'm new to javascript and a...
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
This code works fine, I jus...
1 2 3 4
<html> <head> <script type="text/javascript"> ...
JavaScript My1stJavascript: Dice roller
A C++ programmer who is lea...
1 2 3 4
$('#page').inlineEdit(); $.fn.inlineEdit = function (opts) { var options = $.extend({ ...
JavaScript edit inplace plugin with wy...
This is based on jquery and...
1 2 3 4
fireEvent: function(event){ var type = event.type; ...
JavaScript Error on closure
This code used to works fine.
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...
Essentially there is a text...
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 ...
A fairly common thing to do...
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...
The following is the code I...
1 2 3 4
// Snippets function remove_spaces(value) { if (value == null || value == "") { ...
JavaScript Jquery functions
I`m a beginner with jquery,...
1 2 3
var search = 'foo'; var key = null; ...
JavaScript Javascript Switch Statement
help me produce better code?
1 2 3 4
// New function for enviar. $(document).ready(function() { var options = { ...
JavaScript jQuery repeating yucky code
Using the jquery.form.plugi...
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&...
I get a change event within...
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...
Using jQuery, I'm trying to...
1 2 3
$.fn.grow_input = function() { return this.each(function() { ...
JavaScript Expanding input list using ...
The idea is to have a expan...
1 2 3
<div id="slideshow" style="background:#FFF"> <h2 class="slideshowTitle">Around the World with Language</h2> ...
JavaScript Serena Collage slideshow
Creating a slideshow in our...
1 2 3
<div id="showcase"> <ul class="nav"> ...
JavaScript Tab-Switching in jQuery
Is there a better way?
I'm assuming jQuery is pres...