[swx] Stopping a SWX call mid-load

R. Jon MacDonald info at jonnymac.com
Tue Oct 9 19:30:18 PDT 2007


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





More information about the swx mailing list