On Thu, May 27, 2010 at 1:01 AM, Cooke, Mark <[email protected]> wrote:
>> > Which class should I use to handle/process text at editing time,
>> > before posting it? It is possible?
>> > I'd be glad if I had a button like the 'preview page' button, which
>> > would do something with the text and show me the process result
>> > still at the editing window.
>> >
>>
>> AJAX + IRequestHandler ?
>
[...]
>
> What you cannot do is write python code in trac on the server and expect
> it to be able to process text only available on the client. Well, you
> could if you use Olemis' suggestion and use AJAX to post the text back
> for processing on the server but why bother the server when this could
> be handled by the client?
>
Laconic answer , 'cause have no much time .
- See browser (tree) view for an example .
- You might want to use X-<DontRemember> header to mark the request
as XHR (i.e. AJAX)
- If you use POST + form MIME type beware of Trac security
--
Regards,
Olemis.
Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/
Featured article:
--
You received this message because you are subscribed to the Google Groups "Trac
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/trac-users?hl=en.