Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This works cross browser. Merely using onclick on a submit button to show a preloader/ please wait dialog doesn't work in IE since it doesn't show images once the page is being unloaded.
1
865
posted 13 years ago by housecor
I use the following code to prevent a user from getting a "webpage expired" message when hitting the back button on a page where the search results are also on the page with the form.
0
883
posted 13 years ago by bradless
Skeleton for the main panel in a CMSMS module. defaultadmin.php, with CGExtensions
1
727
posted 13 years ago by krillzip
I saw this useful little variation of a for loop in a tutorial by Kevin Yank at Sitepoint. By adding an additional variable "ii" in the loop's arguments, you can avoid having your program calculate the length of your array every time it loops through...
1
818
posted 13 years ago by danielwrobert
This takes a date like so: Sat, 08 Jan 2011 from a database and allows you to use it in your code. For example if you wanted to work out a week from Sat, 08 Jan 2011 it can be done with ease. I created this for a project i am currently working on. Th...
0
717
posted 13 years ago by JonnySnip3r
Modify includes to connect and select to provide correct result set
0
1273
posted 13 years ago by kidmizere