The extension persists whether or not you are in an ajax request or
not throughout the unit of work. It's an Monorail extension that
simply places an 'isAjax' key in your flash on each request so you
don't have to deal with the details. Firefox (I am not sure about 3.+)
would actually strip the ajax header on a redirect, so if you have a
redirect during an ajax call, you would lose that way of knowing the
request type. I have an GlobalApplication that I use on all MonoRail
apps so I just configure it inside there and forget about it.



On Oct 21, 4:52 am, Gabriel Mancini de Campos
<[EMAIL PROTECTED]> wrote:
> thanks Ken, i will your advice,
>
> Mike, it´s a big implementation, can you explan better their
> functionallity ??
>
> Biel
>
> On Oct 19, 3:06 am, Mike Nichols <[EMAIL PROTECTED]> wrote:
>
> > I have a write up here 
> > :http://using.castleproject.org/display/MR/Handling+Ajax+Requests
> > I have used the extension proposed therein on lots of projects with no
> > issues. It deals with some oddness Firefox introduces with redirects
> > on ajax calls, too.
> > mike
>
> > On Oct 17, 1:02 pm, "Ken Egozi" <[EMAIL PROTECTED]> wrote:
>
> > > in the filter (IFilter), the Execute methods accepts IEngineContext, which
> > > has a reference to the current IRequest
>
> > > so context.Request.Headers should also work, and keep the IFilter more
> > > testable (as it won't be coupled with HttpContext.Current)
>
> > > On Fri, Oct 17, 2008 at 9:32 PM, Gabriel Mancini de Campos <
>
> > > [EMAIL PROTECTED]> wrote:
>
> > > > thanks victor!
>
> > > > in your filter
>
> > > > if you use jQuery and you need to know if your request is a ajax
> > > > process or a form process use this :D
>
> > > > bool ajax = (System.Web.HttpContext.Current.Request.Headers["X-
> > > > Requested-With"] == "XMLHttpRequest");
>
> > > > see u guys
>
> > > > On Oct 17, 4:29 pm, "Victor Kornov" <[EMAIL PROTECTED]> wrote:
> > > > > No, it should not change from browser to browser. The headers is 
> > > > > setup by
> > > > > jQuery.
>
> > > > > On Fri, Oct 17, 2008 at 11:21 PM, Gabriel Mancini de Campos <
>
> > > > > [EMAIL PROTECTED]> wrote:
>
> > > > > > Hi Ken
>
> > > > > > I found this, but this header don't change of browser to other ?
> > > > > > example, the object is diferent between ie and ff.
>
> > > --
> > > Ken 
> > > Egozi.http://www.kenegozi.com/bloghttp://www.musicglue.comhttp://www.castle...
--~--~---------~--~----~------------~-------~--~----~
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