Welcome To Snipplr
Everyone's Recent Snippets Tagged javascript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Sometimes you have a load of HTML that is difficult to write up as a String from within a javascript function so this is an example of a simple Panel with an event for after rendering that injects it with content from a file.
0
1037
posted 13 years ago by LeeProbert
A simple Ajax database app built with the Karrigell web framework for Python; PyDbLite, a non-SQL Python database engine; and JQuery in the browser
0
635
posted 13 years ago by jcastell
This is mostly taken from the HTML5 Boilerplate project so kudos go there.
Dont forget to update the local URL paths.
0
1033
posted 13 years ago by lawlesscreation
returns the number of seconds since 1 jan 1970
This is useful for generating a number in a url to stop a page from caching
1
894
posted 13 years ago by samwa
With setTimeOut a reference to a function object cannot provide parameters for the scheduled execution of that function.
We can instead use a closure to provide parameters for the execution of a function prior to the execution of that function.
0
684
posted 13 years ago by coprolit
JavaScript
accessing the DOM of a page loaded in an iframe [javascript] [dom] [iframe] [for-twitter]
0
1170
posted 13 years ago by Thammas
This is my own (compact) JS library which contains a variety of methods - cookies, (fast) sorting of tables,paragraphs, etc., highlighting rows, moving elements up or down, converting strings to dates, updating a clock etc.. Include the library and a...
0
514
posted 13 years ago by AndyG
"Javascript module pattern emulates the concept of classes in such a way that we're able to include both public/private methods and variables inside a single object, thus shielding/namespacing particular parts from the global scope."
When inheritanc...
0
932
posted 13 years ago by coprolit
JavaScript
greaseMonkey - Ajout script personnelle sur vos pages - Add your owner javascript in your html\'s code
0
808
posted 13 years ago by nasso