Project

General

Profile

Suppressing codemirror textarea value in every jsupdate POST request.

Added by Mathimaaran Selvam almost 8 years ago

Hi All,

I am trying to use codemirror within Wt.

I used some code snippets from an old thread.

https://sourceforge.net/p/witty/mailman/message/29773816/

It is working with some modification, but I notice that for every POST request to the Server, the complete text in the codemirror editor is sent to the server.

When I load huge text in to the codemirror editor, the POST requests doesn't seem to reach the server ( Which I think is probably due to the size of the request > 100Kb)

I tried disabling the textarea in the codemirror editor but the text was still part of POST request. (!?)

I have readOnly attribute set in the codemirror, (I don't need editing capability).

How do I suppress the text being sent to the server. (or control it)

May be I am missing something basic.

Can someone help me out?

Thanks,

Mathi.


Replies (2)

RE: Suppressing codemirror textarea value in every jsupdate POST request. - Added by Wim Dumon almost 8 years ago

Mathi,

Your analysis is correct, Wt sends all form elements on each update, regardless of whether they were changed or not. This is not necessary. You point to the correct feature request, but it has not yet been implemented.

Best regards,

Wim.

    (1-2/2)