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 <[EMAIL PROTECTED]> 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: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant