You could make an AJAX call. Have your action render the element, then insert the return content into the DOM.
On Mon, Sep 21, 2009 at 2:31 AM, mikeottinger <[email protected]> wrote: > > Hi All, > > This is sort of an open question, I have a need to insert a section > of a form into a page using javascript. I'd like to leverage elements > for this. Basically, refer to the element from my javascript and have > the ability to replace variables in it. This is something Rails > supports through its RJS framework. Any ideas on whether this is > possible? Has anyone implemented something similar. I'm really trying > to avoid creating a long nasty javascript variable that builds up this > form. > > Thanks! > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
