Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] Re: Shut down Chart before removal ?

Expand Messages
  • Sanjiv Jivan
    Great, thanks. Any scheduled date for the next release? Sanjiv On Mon, Mar 31, 2008 at 7:33 PM, Josh Tynjala
    Message 1 of 6 , Mar 31, 2008
    • 0 Attachment
      Great, thanks. Any scheduled date for the next release?

      Sanjiv

      On Mon, Mar 31, 2008 at 7:33 PM, Josh Tynjala <jtynjala@...> wrote:

      I've added a simple destroy() function that kills all DataSource listeners and removes the SWF from the DOM, which seems to work fine. It should be available in the next version of YUI.

      Josh Tynjala
      Yahoo!

       


      From: ydn-javascript@yahoogroups.com [mailto:ydn-javascript@yahoogroups.com] On Behalf Of Sanjiv Jivan
      Sent: Monday, March 31, 2008 4:16 PM

      Subject: Re: [ydn-javascript] Re: Shut down Chart before removal ?

       

      Same issue here. Removing the chart's DIV from the DOM directly results in the same error previously mentioned. Is there a workaround / solution for this?

      Thanks,
      Sanjiv

      On 1/25/08, tntnashtm123 <nash.rsa@...> wrote:

      --- In ydn-javascript@yahoogroups.com, "Josh Tynjala" <jtynjala@...>
      wrote:
      >
      > There's no special way to "shut it down". I think you'd be safe simply
      > removing the div.
      >
      >
      >
      > Josh Tynjala
      >
      > Yahoo! Flash Platform
      >
      >
      >
      > ________________________________
      >
      > From: ydn-javascript@yahoogroups.com
      > [mailto:ydn-javascript@yahoogroups.com] On Behalf Of tntnashtm123
      > Sent: Wednesday, January 23, 2008 2:21 AM
      > To: ydn-javascript@yahoogroups.com
      > Subject: [ydn-javascript] Shut down Chart before removal ?
      >
      >
      >
      > Hi
      >
      > To dynamically remove a chart how do I "shut it down" ? before I
      > remove its parent div ?
      >
      > Thanks
      > Tim
      >

      I get the following from FireBug if I delete the parent div

      this._swf.setDataProvider is not a function
      _loadDataHandler("", Object results=[6] tId=9,
      undefined)charts-experiment... (line 878)
      handleResponse("", Document , function(), Chart yuigen5 _queue=[0]
      _events=Object _configs=Object, 9)datasource-beta-m... (line 8)
      DataSource(Object tId=9 status=200 statusText=OK)datasource-beta-m...
      (line 7)
      setProgId(Object conn=XMLHttpRequest tId=9, Object scope=DataSource
      instance0 timeout=0, undefined)connection-min.js (line 7)
      setProgId()connection-min.js (line 7)
      [Break on this error] this._swf.setDataProvider(dataProvider,
      styleChanged);

      regards
      Tim

       


    Your message has been successfully submitted and would be delivered to recipients shortly.