I am using jqplot graph, in that i am trying to save the graph as image by using jqplotSaveImage(), but when i triggered this function i get the following exception,
Unhandled exception at line 3, column 146939 in jquery.jqplot.min.js
0x8007007a - JavaScript runtime error: unknown exception
Any idea how to solve this?
Try to override this function:
$.fn.jqplotSaveImage = function() {
var imgData = $(this).jqplotToImageStr({});
if (imgData) {
window.location.href = imgData.replace("image/png", "image/octet-stream");
}
};
User contributions licensed under CC BY-SA 3.0