Welcome To Snipplr
Everyone's Recent Snippets Tagged javascript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Determines whether or not the page has been requested directly, or through AJAX. This can allow for combining a page and related AJAX responses within the same script.
1
990
posted 15 years ago by Wilco
To prevent multiple submit from sending more than one request,
bind the submit event and store a "disabledOnSubmit" data. Next time the event "submit" will be fire, the following jQuery code will return false. All submit buttons are also disabled (...
9
1123
posted 15 years ago by dalexandre
This assumes HTML that looks like this:
<pre><code>
<div id="containing_div">
<div id="div_1" style="background-color:red" class="visible_div">
<p>Test Content 1</p&...
2
646
posted 15 years ago by chippper
Learn how to emulate ASP.NET's AppendFormat method in Javascript. AppendFormat is essentially a simple form of concatenation in ASP.NET.
1
827
posted 15 years ago by neal_grosskopf
Combine this with the my compression script and things load real fast. I think I pulled some of this code of a site on google... can't claim complete credit.
0
949
posted 15 years ago by iloveitaly
A custom compression script I use for auto compression and gzip compression of my css & files. Also allows for 'debug' mode (uncompressed). You simply include the core.css & core.js in your <head>
0
866
posted 15 years ago by iloveitaly
Laat 3 seconden de load div zien met daarin de loader gif animatie.
het element met id prijs wordt 3 seconden verborgen.
0
668
posted 15 years ago by epco
Very easy to use JS Calendar Control with so many customization options.
0
760
posted 15 years ago by design2develop
I made this class because is was fed up with all those strings with escaped quotes with when building html into an output-string. You could also build a php-version of it.
0
664
posted 15 years ago by leonardreinders
In der Datei “t3lib/class.t3lib_div.php†folgende Zeile ersetzen:
0
899
posted 15 years ago by xtine777
This will only work in FF 3.5 and web-kit browsers after (06/26/2009)
2
665
posted 15 years ago by adamdecaf
Basic setup code for using SWFObject to embed flash content in a plage.
2
914
posted 15 years ago by irishspacemonk
Memory leakage in IE6/7 if the event handlers are not purged before deleting an element.
0
788
posted 15 years ago by iTony
- a javascript for alternate row/column table striping
- supports row hover, column hover and cell hover effects and click events.
demo here:
http://www.frequency-decoder.com/demo/table-actions/
0
776
posted 15 years ago by beneberle