This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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; | |
} |