Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



1 ... 17 18 19 20 21 ... 46
When a link is clicked, call up this function. Parameter message = message you want to display after click url = page you want to forward to if the user clicks OK
1 1532 posted 15 years ago by chopbust
This is to call up Javascript alert through PHP. I hate switching between echoing Javascript while writing PHP so I wrote one in PHP.
0 1864 posted 15 years ago by chopbust
cause i'm so lazy
0 1562 posted 15 years ago by Savio
Hay dos maneras, la mejor es usar el script manager, tambien ver la diferencia entre http://forums.asp.net/t/902895.aspx
0 2973 posted 15 years ago by ramirocalero
All credit goto author. Not me.
0 1286 posted 15 years ago by easy2die
On click event, display a div on mouse coords. Tested on Firefox 3.6.11, chrome 6, internet explorer 6. Based on this source code: http://www.webdeveloper.com/forum/showthread.php?t=92007
0 4481 posted 15 years ago by juanduke
This snippet of code is probably the most common and _valuable_ in the world of jQuery.
1 1774 posted 15 years ago by creativeboulder
Be sure to call the exact version desired or the script is only cached for one hour! http://encosia.com/2009/10/11/do-you-know-about-this-undocumented-google-cdn-feature/
1 1986 posted 15 years ago by housecor
Learn how to test for CSS property support in specific browsers using this simple Javascript technique.
2 1615 posted 15 years ago by neal_grosskopf
2 1945 posted 15 years ago by nveselinov
This is a very useful piece of code (html, css, jquery) to have a nice animated floating menu on your page. I totally love it. I used it with jquery 1.3.2 and up
3 1951 posted 15 years ago by e11world
0 1491 posted 15 years ago by virua
1 1132 posted 15 years ago by rebel2000
Was using this to disable certain js functionality as it wasnt working on apple\'s webkit
2 1974 posted 15 years ago by thiswayup
In regards to progressive enhancement, see also the [jQuery version](http://snipplr.com/view/48275/default-value-for-input-fields-jquery-version/).
6 2217 posted 15 years ago by riddla
<p>This snippet could be used when a text input has a default value. Thus, when user clicks on the input to write, the default value disappears and allows the user to write, but if the user does not type anything, the default value will appears again...
1 1782 posted 15 years ago by andres_314
This is quick code that demonstrates the usage of Microsoft's jQuery templating plugin.
8 2109 posted 15 years ago by Nettuts
Also includes the fix for when the user resizes the window.
4 1712 posted 15 years ago by Meander365
Just a fun and silly way to asynchronously update tweets about Justin Bieber.
3 2166 posted 15 years ago by Nettuts
This is a simple bit of code that allows you to do a write once date format in a PHP style date() format and convert it to be used by datepicker jQuery UI widget. It returns the converted string.\r\n\r\nNothing fancy here, but a time saver for the f...
1 2435 posted 15 years ago by roblynch
1 1636 posted 15 years ago by sb_01
1 1471 posted 15 years ago by sb_01
1 1436 posted 15 years ago by sb_01
Grab Google CDN's jQuery. Fall back to local if necessary, Taken from the HTML5 Boilerplate.
1 2006 posted 15 years ago by f6design
1 ... 17 18 19 20 21 ... 46