var MyNamespace = MyNamespace  || {};
MyNamespace.BingMap = {
    BingMapCredentials: 'xxxxxxxxx', // should be a default setting (null)
...

JavaScript Convert simple Javascript t...

by Chase Florell, February 04, 2012 09:12, 3 refactorings, tagged with javascript, jquery, bing maps

I've been working on a simp...

F9d6a814ab6823fbaa7898d23ad8df1b Talk
$(function(){
  $("a").each(function(){
    var _this = $(this);
...

JavaScript Rewrite amazon URL's with J...

by jspr, October 20, 2011 00:28, 3 refactorings, tagged with speed, jquery

I use this with dotjs to re...

3ec52e31343e4baa96af6bb001465f30 Talk
var date_fmt="yyyy-mm-dd";
...

JavaScript Modularize jquery code to a...

by mhd.myopenid.com, September 22, 2011 00:47, 1 refactoring, tagged with jquery

I want to modularize code i...

55502f40dc8b7c769880b10874abc9d0 Talk
$.fn.tatFocus = function () {
    console.log("tatFocus", this)
    $(this).focus(function(){
...

JavaScript remove text on focus input

by zodman, August 04, 2011 09:35, No refactoring, tagged with input, jquery, focus

remove text on focus input

A1c5fdec1dd6e17d609f21033fdf122e Talk
.
.
.
...

JavaScript Creating DOM elements in a ...

by https://www.google.com/accounts/o8/id?id=AItOawn4VBTJWio9c9HU8aELBjkIu53LWMVjhqc, June 19, 2011 13:43, No refactoring, tagged with jquery, dom, node creation

On the cusp of graduating f...

55502f40dc8b7c769880b10874abc9d0 Talk
/**
* 
*/
...

JavaScript Refactor jquery key event &...

by Zoltran, May 31, 2011 00:17, 1 refactoring, tagged with javascript, jquery, keydown

How i can optimize this code?

D5303b0c98c5046f64ebb02445e85809 Talk
/*!
 * 
 *  jmodalbox - jQuery Modal box Script
...

JavaScript My first jQuery Plugin

by https://www.google.com/accounts/o8/id?id=AItOawlHbSqDAk7Vx0jfGAq20CmMlIm7u7PJJ8k, December 30, 2010 05:57, No refactoring, tagged with javascript, jquery, plugin

This is my first jQUery plu...

55502f40dc8b7c769880b10874abc9d0 Talk
var value = $.trim($(this).val());

if ($(this).hasClass(invalidClass))
...

JavaScript jQuery script: too many ifs...

by Nathan, November 18, 2010 09:49, 3 refactorings, tagged with validation, jquery, if else

This is part of a jQuery pl...

D5145c421cd25af6fa577c15219add90 Talk
<script type="text/javascript">
  $(document).ready(function() {
    
...

JavaScript JQuery - snippet to select ...

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

These two blocks are virtua...

0918379fbd1d6551c6619f94ef4692e0 Talk
$(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, 3 refactorings, tagged with javascript, jquery, cookies

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

A959afc1b4415ada875f4d3eaa889132 Talk
// 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
var getRandomNo = function(seed){
	
...

JavaScript learn more explodeEffect

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

This jQuery snippet creates...

55502f40dc8b7c769880b10874abc9d0 Talk
;(function($) {
        $.fn.extend(
...

JavaScript filter selectbox with 3000+...

by akarzim, February 03, 2010 23:05, 2 refactorings, tagged with speed, jquery, dom, select

This is a little jQuery scr...

0018abed2b5e8b460993ed915adc0d11 Talk
$('#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
<div id="notices">

...

JavaScript jQuery remove warnings.

by lukas, September 04, 2009 14:21, 1 refactoring, tagged with jquery, remove elements

Hey,

so I have all this ...

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

JavaScript RESTful jQuery PUT/DELETE l...

by Aupajo, May 27, 2009 00:49, 10 refactorings, tagged with http, jquery, rest, put, delete, request

I'm putting together PUT/DE...

Ca3dc3f93730afb41d6753d8bf010a38 Talk
// Snippets
function remove_spaces(value) {
	if (value == null || value == "") {
...

JavaScript Jquery functions

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

I`m a beginner with jquery,...

55502f40dc8b7c769880b10874abc9d0 Talk
// 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...

B6c85faacb1a59a39f31f8820dcbd478 Talk
// form fields  
  var address = $("#address");
  var zip = $("#zip");
...

JavaScript Perform AJAX request when t...

by Chris, February 16, 2009 06:49, 1 refactoring, tagged with form, ajax, jquery, validate

If three fields (address, z...

5d7c8b8f2de06c07b2bf0848d20ce71f Talk
<a href="#" class="view-code" >view code</a><a href="#" class="view-code"  style="display:none">hide code</a><br  />
<div class="tool_block" style="display:none" >
<code class="buttons" >&lt;a href=&quot;javascript:q=(document.location.href);t=(document.title);void(open('http://mvcforge.com/submit?url='+escape(q)+'&amp;title='+escape(t),'','resizable,location,menubar,toolbar,scrollbars,status'));&quot; title=&quot;Submit to MVCForge&quot; alt=&quot;Submit to MVCForge&quot;&gt;&lt;img src=&quot;http://mvcforge.com/themes/mvcforge/images/forge-btn.png&quot; alt=&quot;Submit to MVCForge&quot; /&gt;&lt;/a&gt;</code>
...

JavaScript Show / Hide Code in Javascript

by armano.myopenid.com, February 14, 2009 15:03, 8 refactorings, tagged with jquery, showhide, toggle

hi guys,
i just want to sh...

1cd9c8984f2fdeb996130d54d62a98d9 Talk
$('.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...

Bfca16459c82a7836c3d5c8d79f0b640 Talk
/* 
  I've used a plugin to extend the jQuery object with a jumpsTo method
  which automatically shifts focus to the specified element once
...

JavaScript jQuery One-Liner

by Adam Soltys, January 23, 2009 17:53, 7 refactorings, tagged with jquery

I have a a feeling that the...

B4efcc9044b035677a9f61d437e15213 Talk
$(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 javascript, loop, array, jquery, List

Using jQuery, I'm trying to...

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

JavaScript Expanding input list using ...

by Billskog, January 04, 2009 09:05, 2 refactorings, tagged with javascript, jquery

The idea is to have a expan...

1d61786256cde4ad5a3afb2f1ff3812b Talk
<div id="showcase">
  <ul class="nav">
...

JavaScript Tab-Switching in jQuery

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

Is there a better way?

Ca3dc3f93730afb41d6753d8bf010a38 Talk