Page 1 of 1

[textedit] request to add feature "name" as entry has

Posted: 31 Oct 2014, 18:53
by reaby
Hi,

textedit, is very very good addition, but it's missing name attribute!!!
Which means the contents of it doesn't get send to dedicated- or web-server :(

please take consideration to add this feature :)

Re: [textedit] request to add feature "name" as entry has

Posted: 04 Nov 2014, 18:10
by reaby
While waiting a fix,

i found out that normal entry can be used to pass the data, but it needs a little trick to pass the data, here's my work-around, if somebody else needs it while waiting the fix :)

Code: Select all

<manialink version="2">
<timeout>0</timeout>
<textedit default="" autonewline="1" sizen="205 85" posn="0 0 0" id="input"/>
<entry default="" posn="200 200 0" sizen="9 4" id="output" name="content"/>
<script><!--
main() {     
        declare CMlTextEdit input  <=> (Page.GetFirstChild("input") as CMlTextEdit);
        declare CMlEntry output  <=> (Page.GetFirstChild("output") as CMlEntry);       

	while (True) {
		yield;
                output.Value = input.Value;          
	} 
}
--></script>
</manialink>
idea is to pass the contents of the textedit to invisible entry (posn 200,200), and pass the entry as http-get parameter to webserver :)

Re: [textedit] request to add feature "name" as entry has

Posted: 13 Nov 2014, 10:43
by noyranea
Hi there,

sorry for not answering sooner :? . I'll add the name attribute as soon as possible, don't worry ;)

Glad to see you found a workaround (a little bit very much ugly but... my bad :D).

Keeping you informed,

-- noyranea

Re: [textedit] request to add feature "name" as entry has

Posted: 13 Nov 2014, 10:51
by noyranea
The feature has been added, it should be available in the next update.

Sorry again for the inconvenience,

have a nice day !

-- noyranea

Re: [textedit] request to add feature "name" as entry has

Posted: 14 Nov 2014, 08:18
by reaby
Glad to see you found a workaround (a little bit very much ugly but... my bad :D).
Heh, it indeed is ugly, but it works :lol:
Better way should have been using EntrySubmit -event, but this works and was much faster to do :3
The feature has been added, it should be available in the next update.
Thanks!

Re: [textedit] request to add feature "name" as entry has

Posted: 30 Nov 2014, 09:31
by reaby
Hi Noyranea,

The feature works very well for normal manialinks, many thanks for this :thx:

Addition: Sorry, I didn't test this properly. Looks like this doesn't work.

But if I use the texteditor at server-side, looks like the data is not passed back to xmlrpc interface (and to server controller).

Currently I would only use it only at one element: to set the server comment, as it would just look little better when admins set multiline comment.

Just to scale the usage:
How often an admin changes the comment in approx 30 servers ?
I would say, not that often :)

*edited addition*
means, it's not really a priority :)

-
reaby