Probably what you need is to add a an ajax->observeField call in the thtml to watch the field for changes and use that to call an action that generates a preview and places the result of the ajax call in the div.



On 5/6/06, Jeroen Janssen <[EMAIL PROTECTED]> wrote:

Hi,

Is there a tutorial that shows howto do something like a "live preview"
of a textile rendering. I would like to have something similar that the
typo (rails blog) does when entering a new article.

Basicly I think it works like the following (but I have no idea yet how
to do this in CakePHP):

1) a form with a title and a content field
2) if someone enters text in title or content, an ajax request is send
to the server with the current entered information
3) the server parses the content through textile and combines this with
the title in something that gets send back to the browser
4) the browser renders the information from the server in a seperate
div

Now, since I already have an "element" that renders a single
title/content combination, is this something I can reuse for step 3?

Best regards,

Jeroen Janssen



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to