Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged javascript



1 ... 4 5 6 7 8 ... 33
Usually when working with form you use a server to handle it, and if your doing it entirely in javascript no reload is required, but what if you wanted to take the information and use it in a javascript on another page, completely client side. I had...
0 683 posted 11 years ago by FatFolderDesigner
Find the date with or without a year and with double or single digit month or day. Easily extendable to other date delimiters and formats.
0 624 posted 11 years ago by pumpkinthehead
Esto es por si estamos desarrollando una aplicación en la cual necesitamos manejar la fecha y hora con javascript.
0 492 posted 11 years ago by jrobinsonc
In JavaScript, there are 6 "falsy" values (values that evaluate to false): false, null, undefined, 0, "" (the empty string), and NaN Anything else evaluates to true.
0 327 posted 11 years ago by goo
1 345 posted 11 years ago by otternq
Use CDN if online. Fallback to local version if offline.
0 566 posted 11 years ago by caruso_g
A complete HTML page for a Facebook "app" that does login entirely on the client. 1 - Create a Facebook application (see Facebook developer docs.). 2 - Because of a Facebook "bug" the app should have Sandbox Mode disabled (App Settings - Advanced -...
8 1192 posted 11 years ago by rlmcneary2
When you use the `+` operator on an Array, it converts it to a string.` [].toString()` is the same as `[].join(',')`, which gives an empty string in case the array value is `undefined` or `null`. This also works in Javascript `([undefined] + "b" ===...
0 348 posted 11 years ago by luizlopes
an operator that implements true prototypal Object inheritance in JavaScript
0 455 posted 11 years ago by luizlopes
Default adapter saves to DOM.
0 411 posted 11 years ago by stur
JSLint requires the body of every `for in` statement should be wrapped in an `if` statement
0 540 posted 11 years ago by luizlopes
Show Hide table data uses href, anchors, div tags, and javascript to toggle between showing and hiding a table on the html page.
0 366 posted 11 years ago by richtt
this function gets a parameter like an hex color (es: "#ffffff"), an abbreviated hex color (es: "#fff"), an rgb color (es: "rgb(255,255,255)") or an rgba color (es: "rgba(255,255,255,1)"), and returns an object containing the rgba values, like { red:...
0 1269 posted 11 years ago by claudiowebdesign
wrote this snippet as a necessity to preload many images without writing same code all the time in JS...
0 485 posted 11 years ago by alik
Get value from 5 Star Rating
0 1655 posted 11 years ago by neoline
A quick, simple example of using Lawnchair to store and retrieve data for a jQuery Mobile based PhoneGap project. Written by a JavaScript newbie.
0 448 posted 11 years ago by ryanstewart
Usar no console.
0 305 posted 11 years ago by Jotape
two awesome bits: using ''.replace() perform an action (other than replacing it) on some text, and a simple way to concatenate strings with a separator (retardedly simple but it always confuses me)
0 458 posted 11 years ago by ultranaut
http://stackoverflow.com/questions/3628649/javascript-self-contained-sandbox-events-and-client-side-stack
0 454 posted 11 years ago by ultranaut
This is a JavaScript powered dropdown (flyout) menu. HTML and CSS included.
0 562 posted 11 years ago by zvineyard
0 409 posted 11 years ago by dato
1 ... 4 5 6 7 8 ... 33