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

Talk about ManiaLink development in this forum

Moderator: NADEO

Post Reply
reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

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

Post 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 :)
reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

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

Post 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 :)
User avatar
noyranea
Nadeo
Nadeo
Posts: 187
Joined: 29 Apr 2014, 14:50
Location: Paris, France

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

Post 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
User avatar
noyranea
Nadeo
Nadeo
Posts: 187
Joined: 29 Apr 2014, 14:50
Location: Paris, France

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

Post 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
reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

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

Post 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!
reaby
Posts: 1032
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

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

Post 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
Post Reply

Return to “ManiaLink”

Who is online

Users browsing this forum: No registered users and 2 guests