Welcome To Snipplr
Everyone's Recent JavaScript Snippets Tagged javascript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1127
posted 12 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
1050
posted 12 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
764
posted 12 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
599
posted 12 years ago by goo
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
1765
posted 12 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
605
posted 13 years ago by luizlopes
an operator that implements true prototypal Object inheritance in JavaScript
0
775
posted 13 years ago by luizlopes
JSLint requires the body of every `for in` statement should be wrapped in an `if` statement
0
856
posted 13 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
636
posted 13 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
1952
posted 13 years ago by claudiowebdesign
wrote this snippet as a necessity to preload many images without writing same code all the time in JS...
0
810
posted 13 years ago by alik
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
770
posted 13 years ago by ryanstewart
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
775
posted 13 years ago by ultranaut
http://stackoverflow.com/questions/3628649/javascript-self-contained-sandbox-events-and-client-side-stack
0
819
posted 13 years ago by ultranaut
This is a JavaScript powered dropdown (flyout) menu. HTML and CSS included.
0
905
posted 13 years ago by zvineyard