Welcome Guest, Not a member yet? Register   Sign In
jQuery pagination links not showing up in Google search results
#7

[eluser]sketchynix[/eluser]
to save you some time...
pulled from http://snipplr.com/view/16624/isajax/
Code:
function isAjax ()
{
    if (
        isset($_SERVER['HTTP_X_REQUESTED_WITH'])
        && $_SERVER['HTTP_X_REQUESTED_WITH'] == "XMLHttpRequest")
        return true;
    return false;
}

in your controller
Code:
if($this->isAjax){
     ///return div view
  }
  else{
   ///return full page
  }


Messages In This Thread
jQuery pagination links not showing up in Google search results - by El Forum - 09-24-2010, 12:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB