The following code is not working in IE8, I have to get data from my controller and need to access the function abcd() and do something, my breakpoint comes out directly without going inside the ajaxcall
$.ajax({
url: "/Transactions/MyList/" + transactionID,
type: "GET",
contentType: "application/json",
cache: false,
success: abcd
});
**function abcd()** {
//do something
}
I would guess that MyList is an action method inside TransactionsController and it returns JsonResult. Correct? Do you AllowGet on your Json result? you can pass a second parameter to the Json result which indicates the AllowGet behaviour (return Json(data, JsonRequestBehavior.AllowGet))...
Plus your abcd method should have one parameter - data - to process what you receive from the call...
$.get( "//here give the id/class" );
For example:
$.get( "test.php" );
or
$.get( "test.php", { name: "abc", time: "2pm" } ); etc