you might want to hook to onComplete, then inspect the statusCode and
location header.  might be too fragile though.

On Tue, Dec 23, 2008 at 11:46 PM, Jokin Cuadrado <[email protected]> wrote:

>
> the onsucess will  be called on an http 200 response. http redirects
> are usually not understood by the javascript frameworks.
>
> On 12/23/08, M Kenyon II <[email protected]> wrote:
> >
> > I have this javascript:
> >       new Ajax.Request(url, {method: 'get', evalScripts: true,
> parameters:
> > pars, onException: error, onSuccess:successFunction});
> >
> > the url is load.rails
> >
> > The load method runs to the end. The last thing it runs is
> > RedirectToAction("Index", Request.QueryString);
> >
> > The Index method also runs to the end.
> >
> > Then the .brail page loads.
> >
> > The javascript successFunction never gets called.
> >
> > I can't seem to find what is not working right. What would trigger the
> > onSuccess status?
> > >
> >
>
> >
>


-- 
Ken Egozi.
http://www.kenegozi.com/blog
http://www.delver.com
http://www.musicglue.com
http://www.castleproject.org
http://www.gotfriends.co.il

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to