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.

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).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.