Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This function, when placed in a theme's 'functions.php' file will insert a custom id attribute into the '<li>' elements generated by a 'wp_nav_menu' function based on the title of the element. It will make a WordPress page or category into a hyphen s...
0
1198
posted 12 years ago by SFLWebDev
These two snippets together, the first in the .htaccess file, and the second in your PHP create an elegantly simple solution to arbitrary URLs with php. For a breakdown and example check out the link.
Don't want to follow the link, how about the q...
0
1037
posted 12 years ago by FatFolderDesigner
This send any value via POST to a PHP page. It is done with AJAX, so the POST return can be used on the same page as the submit
0
1264
posted 12 years ago by rickygri
You have to use float or double for the returned value, since the scale occurs in a continuous function.
0
1648
posted 12 years ago by rtperson
The UISegmentedControl consists of a horizontal control divided into segments. Segmented controls are useful for allowing users to pick from a group or set of values.
Each segment functions as its own button. By default, selecting a segment will d...
1
1382
posted 12 years ago by zopebie
When performing tasks that may take some time, you often need to provide some kind of visual feedback to your users. If you know how long the task will take to complete, you can use a progress indicator to show the user how much of the task has been...
1
995
posted 12 years ago by zopebie