[Radiant] Ajax responses
Sean Cribbs
seancribbs at gmail.com
Fri May 4 13:47:12 CDT 2007
Ben,
Your process method will have access to the request object. If it's an
Ajax request, request.xhr? will return true.
Sean
Benjamin Curtis wrote:
> On May 4, 2007, at 11:36 AM, Mislav Marohnić wrote:
>
>
>> On 5/4/07, Benjamin Curtis <rails at bencurtis.com> wrote:
>> I'm doing a custom page, and I'd like to respond to some Ajax
>> requests in my custom process method. I haven't been able to find an
>> example of this yet, and I'm wondering if anyone who has done it
>> would like to volunteer a snippet of code as a guide.
>>
>> A "custom page" means you are extending Radiant with a custom
>> controller? If so, implementing Ajax in your site will be trivial.
>> Do you need help on the server side, or help with JavaScript? I can
>> show you how to leverage the Prototype framework real easy.
>>
>
> No, it's not a custom controller. I may yet take that route, if I
> must, but by "custom page" I meant I have created an extension that
> has a model that inherits from Page and overrides process.
>
>
> _______________________________________________
> Radiant mailing list
> Post: Radiant at lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.radiantcms.org/pipermail/radiant/attachments/20070504/4603789f/attachment.html
More information about the Radiant
mailing list