Cannot call method 'shutdown' of undefined - error

453 views
Skip to first unread message

Roshan Rathnayake

unread,
Oct 2, 2012, 5:01:45 AM10/2/12
to flot-...@googlegroups.com
I have a popup in the site. And when come back from the popup to the site, plot graph give the error

"Cannot call method 'shutdown' of undefined"

What is this error and how can I overcome?



Juergen Marsch

unread,
Oct 2, 2012, 5:18:18 AM10/2/12
to flot-...@googlegroups.com
Which URL are you using ?

Roshan Rathnayake

unread,
Oct 2, 2012, 5:33:32 AM10/2/12
to flot-...@googlegroups.com

Sorry what URL are asking about?  I found out that, when the partial view containing the graphs , is reloading the error comes. It occurs in a button click where the partial view is reloaded. And As i told before when returning from the popup. also where the partial view is is reloaded.

Juergen Marsch

unread,
Oct 2, 2012, 5:53:12 AM10/2/12
to flot-...@googlegroups.com
Can you give me a help what you are doing ?
If you use Flot in a website, this website should have an adress
If this adress is not public, you should give some source or something else
Which kind of chart, which options, which data, rtc.

Opening a popup in the site is not a helpful description, to search for.

regards from Krefeld
Jürgen

Roshan Rathnayake

unread,
Oct 2, 2012, 6:14:28 AM10/2/12
to flot-...@googlegroups.com, juerge...@googlemail.com



This is the library I'm using.
http://code.google.com/p/flot/downloads/detail?name=flot-0.7.zip&can=2&q=

I'm loading partial view content to a div. Problem occurs when reloading the partial view after doing some modification from a pop-up window. Again this problem only happens in IE. (Only 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(); "


This is how I'm loading the partial view for the second time:

   $.getJSON("/Main/AircraftSelectionData", dataSet, function (data) {
                            if (data) {
                                $('#myDiv').load('/main/rpmotion');
                                $("#modalPopup").hide();
                            }
                        });

"myDiv" is the div, I needs to reload


Thanks a lot 

Juergen Marsch

unread,
Oct 2, 2012, 6:30:30 AM10/2/12
to flot-...@googlegroups.com
Sorry, but I still don't see anything about the way, how you call flot.
Anyway, take a look here and you will see the (new) official web site of Flot.
There are 2 downloads, hopefully this helps.

regards
Jürgen
Reply all
Reply to author
Forward
0 new messages