[swx] Stopping a SWX call mid-load

R. Jon MacDonald info at jonnymac.com
Tue Oct 9 22:42:41 PDT 2007


PERFECT. Thanks!

-----Original Message-----
From: swx-bounces at osflash.org [mailto:swx-bounces at osflash.org] On Behalf Of
Ken Matsui
Sent: Tuesday, October 09, 2007 8:27 PM
To: swx at osflash.org
Subject: Re: [swx] Stopping a SWX call mid-load

What about 'SWX.cancelAllCalls()' before calling another SWX.call?

Ken

On 10/10/07, R. Jon MacDonald <info at jonnymac.com> wrote:
> Hi SWX List,
>
> I'm working on a site built around SWX and I thought I would email the
list
> in the event anyone else (or Aral) knows how to solve the issue.
>
> When a user is rapid-clicking the navigation, I run into an issue where
I'm
> getting multiple SWX calls returning data -- and thus their return
listeners
> are getting called.
>
> For instance, when the user changes pages (chooses a different nav item -
> which we'll call 'page Y') mid-load of a SWX call for page X, the SWX call
> for page X returns from the server before the SWX call for page Y does.
This
> is the expected functionality, but the return listener for page X is
getting
> called when I don't need it to be called anymore (since we're on page Y).
>
> What I'd love to be able to do is call something like SWX.stop() to stop a
> SWX call before making another one. Is there a way to do this? I suppose I
> could use hackery and remove the listener, but I'll need it later...
>
> You can see the effect I am talking about on the development server,
located
> here:
>
> http://s24962.gridserver.com/
>
> Any help is greatly appreciated.
>
> Thanks!
> jon
>
> - - -
> R. Jon MacDonald | JonnyMac Design
> b/ www.jonnymac.com/blog
>
>
>
> _______________________________________________
> swx mailing list
> swx at osflash.org
> http://osflash.org/mailman/listinfo/swx_osflash.org
>


-- 
 ----------------------------------------------
 Ken Matsui <ken.matsui at gmail.com>

_______________________________________________
swx mailing list
swx at osflash.org
http://osflash.org/mailman/listinfo/swx_osflash.org




More information about the swx mailing list