Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



1 ... 35 36 37 38 39 ... 46
Función para usar con el evento onkeydown, que funciona igual en todos los navegadores. Onkeypress devuelve 0 para las teclas especiales en navegadores que no sean Internet Explorer.
0 1770 posted 17 years ago by kcmr
Always always always backup client side validation with server side validation! =D
2 2115 posted 17 years ago by charmcitycoder
Add class external to all target=_blank links
4 1938 posted 17 years ago by gfazioli
This is a very simple bookmarklet that will temporarily sort the *visible* messages in Gmail by subject. You'll have to run it again each time Gmail refreshes the list. [Sort Gmail Messages](javascript:(function(){function%20f(r){var%20t=r...
0 2002 posted 17 years ago by wizard04
The log4j.properties file in Tomcat is called log4j.xml file in JBoss.
0 1446 posted 17 years ago by cimm
Activate the server side JavaScript debugger in Alfresco.
0 1284 posted 17 years ago by cimm
If you have a lot of javascript you need to load to make your page work, but don't want to load all of it before the user sees your page, you can use this handy script to backload it all.
4 1819 posted 17 years ago by garside
Forces the redraw of the active document screen.
0 1400 posted 17 years ago by preasha
This takes a very readable date, such as "Fri, 4 Dec 2008 15:13:00 +0000", and outputs it as a relative date (such as "1 hour ago").
1 1832 posted 17 years ago by bjarkebech
0 1057 posted 17 years ago by IJajan
Here's how I was able to capture the HREF of a page using actionscript
3 1671 posted 17 years ago by chrisaiv
How to create a custom “:checked” pseudo selector for use in MooTools. It is just a small snippet but I’ve found it incredibly useful.
0 1807 posted 17 years ago by ianmonge
by andrew weaver
2 1372 posted 17 years ago by melvitax
判断客户端的浏览器和操作系统的类型和版本号
0 1092 posted 17 years ago by mn232nm
strip non alphanumerical characters while typing
1 1385 posted 17 years ago by ginoplusio
a set of function useful to check data (functions name in italian but easy to translate).
0 2906 posted 17 years ago by ginoplusio
Simply jQuery script for CSS drop-down menu
7 2047 posted 17 years ago by bcalloway
0 1604 posted 17 years ago by Zver
sorting a table through javascript
3 1972 posted 17 years ago by ginoplusio
Many thanks to bloggingdeveloper.com for this one. Works like a charm. Usage is similar to server side built-in functions.
2 1549 posted 17 years ago by charmcitycoder
This is a sample Google Maps API script that shows a base map with city markers, each with a numbered label. The marker is a default, blank red marker with a number label defined by the overlay array. Clicking on a marker takes you to a page define...
1 2250 posted 17 years ago by bcalloway
Sample script to use Google API to display a map with multiple marker layers that can be toggled on/off using checkboxes. The map data is provided using the .kml files provided from "My Maps" on Google, or Google Earth files.
2 3026 posted 17 years ago by bcalloway
Escape all special regex characters (.*+?|()[]{}\) from a string. Useful when dynamically building a Regular Expression object based on input text that could hold regex characters.
2 2401 posted 17 years ago by kouphax
Based on templates by luxuryluke and Kevin Hale. Basic XHTML 1.0 layout which includes basic layout structure and is prepared for jQuery. On load a 'js' class is added to the root element in order to nicely handle graceful degradation if JS is dis...
8 2247 posted 17 years ago by nighthawk
Thanks to Matt Farina This snippet is useful for preloading content with media that has been received via an AJAX request. For simple preloading of known images, see similar snippet.
6 1913 posted 17 years ago by nighthawk
Thanks to Matt Farina Also see similar snippet for preloading arbitrary content, e.g. media in content received via AJAX.
14 2059 posted 17 years ago by nighthawk
1 ... 35 36 37 38 39 ... 46