Welcome To Snipplr
Everyone's Recent Snippets Tagged header
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
<pre><code>* Use the proper DOCTYPE.
* The opening <html> tag should include language_attributes().
* The "content-type" meta element should be placed before everything else, including the title element.
* Use bloginfo() to fetch the title and des...
2
858
posted 13 years ago by blueocto
The first thing to do is to create header files. Create as many different headers as you want. In this exemple, I have created 3 custom headers from my theme default file header.php, names headercontact.php, headergallery.php and headerdefault.php....
1
864
posted 14 years ago by stephcode
Quick and easy way to determine if the HTTP request is an AJAX call or a standard call. Supports the notion of Unobtrusive JavaScript.
3
1228
posted 14 years ago by joshuascott94
Something I have always found annoying about JSF datatables is the limitation to only apply one header class style to the entire table. This is un-functional for datatables that would display monetary amount or other data that is typically right alig...
0
827
posted 14 years ago by adriamooney
When developing a website, an important consideration is accessibility on other media, including the medium of print. However, the printing engines of most browsers render content differently to allow for simple printed pages. One of the most notable...
1
986
posted 14 years ago by karlhorky
This sinpet is extracted from a post of "Undefined Value", Kris Johnson's Blog.
2
1167
posted 15 years ago by funkypanda
long htaccess expired header for all files except for server side scripts
2
959
posted 15 years ago by dennyhalim
include this snippet in your sites to force InternetExplorer 8 to display your site like InternetExplorer 7
In summary, IE7 compatibility support looks as follows:
IE=7
Display in IE7 Standards mode; Already supported in the IE8 Beta 1 relea...
3
1243
posted 15 years ago by tobaco
The problem is some times the redirect may kick you off to the next page before all the session variables have been saved. The true solution to lost session vars on redirect is to simply call session_write_close(); before setting the redirect header....
0
1449
posted 16 years ago by Wardy