Is Request Ajax: how to find
this is good way to find out if something is ajax or not in javapublic static boolean isAjax(request) {
return "XMLHttpRequest".equals(request.getHeader("X-Requested-With"));
}
this is good way to find out if something is ajax or not in javapublic static boolean isAjax(request) {
return "XMLHttpRequest".equals(request.getHeader("X-Requested-With"));
}
Comments
Post a Comment