paulopmx/Flexigrid — pull request #31 by johnmbaughman (2012-08-23 21:32:41+00:00)
Title: $.ajax cache fix for flexReload() issue

This change has a fix for caching the AJAX data, which is a problem when flexReload is called.

I added a parameter `ajaxCache` which defaults to `false` so that the reload will work.

Then, I altered:
`$.ajax({
type: p.method,
url: p.url,
data: param,
dataType: p.dataType,
success: function (data) {
g.addData(data);
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
try {
if (p.onError) p.onError(XMLHttpRequest, textStatus, errorThrown);
} catch (e) {}
}
});`

To:
`$.ajax({
cache: p.ajaxCache,
type: p.method,
url: p.url,
data: param,
dataType: p.dataType,
success: function (data) {
g.addData(data);
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
try {
if (p.onError) p.onError(XMLHttpRequest, textStatus, errorThrown);
} catch (e) {}
}
});`