I am using flot graphs for jquery in mvc3 razor web app.
I'm loading partial view containing a plot graph to a div. I have a pop up window coming from another event. After popup window closes following error gives.
This only happens in IE
Following is the error:
"Microsoft JScript runtime error: Unable to get value of the property 'shutdown': object is null or undefined"
throws by the following line: in "jquery.flot.js"
"// run shutdown in the old plot object
placeholder.data("plot").shutdown(); "
After the pop up i reload the partial view containing the flot graph again. Below is how I do dat.
$.getJSON("/Main/AircraftSelectionData", dataSet, function (data) {
if (data) {
$('#myDiv').load('/main/rpmotion');
$("#modalPopup").hide();
}
});
"myDiv" is the div, I need to reload
This is the flot library I'm using.
http://code.google.com/p/flot/downloads/detail?name=flot-0.7.zip&can=2&q=
I am using jquery 1.5.1 and jquery ui 1.8.11
Please help. I hope this is clear enough. Thank you in advance.