Welcome To Snipplr


Everyone's Recent JavaScript Snippets



1 2 3 4 5 6 7 ... 65
based on the NappScrollViewExtended module (it is good but couse my app some problem)
0 1185 posted 12 years ago by boardmain
Bind onload function to the iFrame and set the size of the iFrame to the iFrames loaded content. In the example jQuery is used.
5 1545 posted 12 years ago by Neven
A set of common From scripting tasks
1 1334 posted 12 years ago by chetkloss
Returns the differencia in days between tw dates
0 1542 posted 12 years ago by agarcim
Functions to add, get y remove CSS rules
0 1240 posted 12 years ago by agarcim
Javascript DOM Create Element
0 1293 posted 12 years ago by flamboyanz
Con este esquema puedes crear objetos instanciables en Javascript usando jQuery. Su uso es muy simple, sólo debes copiar el siguiente código y cambiar las variables que están en mayúsculas.
0 1128 posted 12 years ago by porquero
This is a more precise version of the native setTimeout(). It uses the same parameters as setTimeout, but adds a third parameter "resolution" which defines how often (in ms) to check for the time that passed. // alert after 5 seconds with an i...
2 1026 posted 12 years ago by McSodbrenner
Simle markup, simple CSS combined with ver straight forward javascript to produce some really cool effects.
0 1187 posted 12 years ago by COBOLdinosaur
Con ese codigo pueden agregar tildes y ñ en los alert o en las funciones de facebook
0 1248 posted 12 years ago by serialk89
Sometimes you have some information on your page and your visitors might want to copy it. The easiest way is to provide a mechanism that allows them to simply click a button to do so. You have to paste this code into the head of your web page:
0 2415 posted 12 years ago by apphp-snippets
This script informs your visitor that a given page may be reached only from the page that you specify. Paste this code before the ending <head> tag on the page:
0 2365 posted 12 years ago by apphp-snippets
This snippets show how to extract the video id of a youtube video from its URL
0 2564 posted 12 years ago by slimITTN
This will reset the tabindex of all input fields on a form after page load
0 1736 posted 12 years ago by bitsculptor
The following code allows only numeric characters to be entered.
1 2231 posted 12 years ago by jprochazka
This will remove the items in a select box/list box that have been selected.
0 1233 posted 12 years ago by j100
removes scrollbars and expand to content height.
0 1269 posted 12 years ago by bonalepo
Code snippets from the x-editable source code
0 1214 posted 12 years ago by steho
Get Parameter from url query string
0 1729 posted 12 years ago by goo
The following function loads all browser-cookies into an associative array with the cookie name as the index and the cookie value as the value
0 1137 posted 12 years ago by satie83
Javascript which converts a Date object into an ISO 8601 formatted string - 'YYYY-MM-DDTHH:mm:ss.sssZ' - with a fallback for when the function 'toISOString' doesn't exist (e.g. IE 8 or less). Usage: var now = new Date; console.log(now.toISOStrin...
0 3113 posted 12 years ago by davidwaterston
Removes $ from HTML form post, allows only number and decimal points. Has $ display in field but disappear when onfocus.
1 2346 posted 12 years ago by lromak
Utilizzare il login d facebook in icloud appcelerator
0 1131 posted 12 years ago by boardmain
Class to create Flickr-API REST calls.
0 1029 posted 12 years ago by Raymonder
Often on a page footer, we want a copyright date range starting with the year the website was launched and ending the current year. Doing this dynamically means no need to update on 1/1 every year. The js snippet below uses the server date to accompl...
0 2446 posted 12 years ago by rumremix
Browser detection before sending any resources to the client.
0 2593 posted 12 years ago by chrisaiv
This is a very basic wrapper for querySelectorAll. Just add prototypes and whatever else you need.
1 2251 posted 12 years ago by o0110o
With this statement you can reload a page, this will also reset any forms on the page.
1 1062 posted 12 years ago by seloh77
Useful trick from css tricks blog at http://css-tricks.com/snippets/jquery/fixing-ie-z-index/
0 1465 posted 12 years ago by rumremix
1 2 3 4 5 6 7 ... 65