View detect_ajax
if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) && !empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') | |
{ | |
// If it's ajax do your stuff | |
echo 'This is coming via ajax!'; | |
exit; | |
} | |
//if not an ajax do other stuff | |
echo 'This is coming from PHP!'; |
View inline-block-whitespace-off
/* | |
* Taken from: http://yui.yahooapis.com/3.5.0/build/cssgrids/grids.css | |
*/ | |
.nav { | |
letter-spacing: -0.25em; /*webkit*/ | |
*letter-spacing: normal; /*IE hack*/ | |
word-spacing: -0.43em; | |
} |