I am trying to insert following snippet in my JSP file
{
$.ajaxSetup({
cache: false,
async: false
});
var ajax_load = "loading data please wait...";
var loadUrl = "abc.jsp";
$("#seoarea").html(ajax_load).load(loadUrl, {
param1: holdvalue1,
param2: holdvalue2
});
}
While running this on mozilla firefox its throwing "$.ajaxSetup is not a function" error.
$
should be undefined as well, and you should see a different error(ReferenceError)
on$
instead of onajaxSetup
, unless$
has been defined by some other code before yourajaxSetup
code, and then jQuery comes, or jQuery is not included at all.