Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 326 327 328 329 330 ... 552
i could put a demo of this in action if you want
0 2239 posted 16 years ago by abbey
Notes to self: re-use this for other projects
0 2761 posted 16 years ago by abbey
Just a beginning, hoping to refine this ASAP.
0 2144 posted 16 years ago by alvincrespo
Make IE6 do tricks with jQuery
0 1796 posted 16 years ago by vagrantradio
0 2946 posted 16 years ago by jmcd
I use something similar to the example to get the difference between statuses in a status log table that I have. It comes in handy when determining the number of days between status changes. This works in MySQL 5.0.
0 2217 posted 16 years ago by bradless
This is assuming that you have SlideDeck loaded already. http://www.slidedeck.com/
0 1695 posted 16 years ago by Jamie
0 1720 posted 16 years ago by almazom
Remove the doctype and any xml namespace declarations from your header and quirks mode will take care of the rendering, additionally this fix is not compatible with IE8 rendering so we need to put IE8 in emulation mode
1 2272 posted 16 years ago by jaff
0 2003 posted 16 years ago by humanoid
1 1929 posted 16 years ago by humanoid
Catches click, if element has nextUntil elements, triggers a slideDown of child elements and returns false (to stop the anchor), if there are no nextUntil elements, does nothing and allows the click through (the anchor works).
0 1605 posted 16 years ago by daulex
Just thought id put up a version of my form validation class. It will be expanded in the future but I thought Id let everyone have a look. # Update 0.1 # * Create Error List Function * Validate Email Address Function * Valida...
0 2030 posted 16 years ago by alvincrespo
1 1658 posted 16 years ago by nmobix
This is a simple example of OOP in Javascript, based off the highly popular Javascript "The Definitive Guide" book by David Flanagan. I will be expanding this example in the future, let me know what you'd like to see. Thanks! Note: You must have...
0 1965 posted 16 years ago by alvincrespo
A more useful version of `typeof` and functions to test if a parameter is of a specified type.
0 1580 posted 16 years ago by wizard04
I couldn't find anything like this in a quick search, so I thought I'd share it here.
1 2337 posted 16 years ago by alexpgates
If you just use a `<script>` element in the overlay, the browser toolbars are reset to their default configuration (at least with jQ 1.3.2).
0 1713 posted 16 years ago by eternicode
The ByteArray class is part of the flash.utils package and supports the reading and writing of binary data. The FileReference class is part of the flash.net package and is used to upload and download files from a local computer to a server. In t...
2 2231 posted 16 years ago by BoNzO
A handy, generic form processor which validates presence of fields marked in a hidden value, like: <input>. Easy to override and customize as needed. Adapted from a script found in PHP 5 Unleashed.
1 2376 posted 16 years ago by nate63179
Had many people ask me how I display all posts in a category when they click on the category link in the header @<a href="http://www.vagrantradio.com">http://www.vagrantradio.com</a>. There's a lot more involved, but here's the quick and dirty;
0 2256 posted 16 years ago by vagrantradio
Add a classname of js to the document body to style browsers with javascript enabled differently
1 1928 posted 16 years ago by lwcooper
0 1665 posted 16 years ago by sai-venkat
By using hook_form_alter, you can add your own callback functions to any Drupal form. These functions will be called when Drupal validates the form and when Drupal submits it. In example below, a module called 'simple_checkout' adds its own hand...
1 2201 posted 16 years ago by berkes
1 ... 326 327 328 329 330 ... 552