text control beginning and trailing spaces

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

HarryDeBoer
Ebase User
Posts: 118
Joined: Tue Oct 23, 2012 7:01 am
Location: The Netherlands

text control beginning and trailing spaces

#1

Postby HarryDeBoer » Wed Apr 29, 2015 8:25 am

Hi,

If I type in a space char as first or last character this is automaticly truncated. I think this should not be the case. If I want something like:

Today there are more than 100 people. (and 100 is the value of a field) then I get: Today there are more than100people

<textcontrol><fieldcontrol><textcontrol>
0 x
Kind regards,

Harry

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Thu Apr 30, 2015 8:20 am

Harry,

I think the browser does this - removes leading and trailing spaces. You need to generate your own spacing i.e. padding on one of the text controls or use a Spacer Control.

Regards
Jon
0 x

HarryDeBoer
Ebase User
Posts: 118
Joined: Tue Oct 23, 2012 7:01 am
Location: The Netherlands

#3

Postby HarryDeBoer » Fri May 01, 2015 9:24 am

Hi Jon,

the spaces are removed in the Ebase IDE. As soon as you close the dialog for editing the text (Set text for control ...) then it already happens. No browser involved till that moment.
0 x
Kind regards,

Harry

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#4

Postby Jon » Fri May 01, 2015 12:03 pm

Harry,

You could well be correct. But I think you will find that the browser will also do this, so maybe that's why Ebase also does it. The comment about adding your own spacing CSS still applies - that's really the best way. If you still want your own space characters in the text you can add them as &nbsp; Then click the html option in the text control.

Regards
Jon
0 x

HarryDeBoer
Ebase User
Posts: 118
Joined: Tue Oct 23, 2012 7:01 am
Location: The Netherlands

#5

Postby HarryDeBoer » Fri May 01, 2015 2:57 pm

Hi Jon,

&nbsp; is the way to go in my case. Thanks.
0 x
Kind regards,

Harry


Who is online

Users browsing this forum: No registered users and 20 guests