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" is the div, I need to reload

This is the flot library I'm using.

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.

4 Years
Discussion Span
Last Post by pritaeas

Apparently placeholder.data("plot") is not a (valid) flot object. Without more code it'll be hard to make a serious statement (as was also mentioned in one of your newsgroup replies).

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.