Hi,
According to the documentation , this should have worked.
Where am I wrong? #textBio is a textbox element.
Thanks.
Hi,
According to the documentation , this should have worked.
Where am I wrong? #textBio is a textbox element.
Thanks.
Are you sure it’s textbox input and not a text element?
Hi, it’s not textbox input, it’s a plain textbox element. The documentation I provided above comes from the section of TextBoxes and not TextInputs and that’s why I’m baffled.
The same happens with Style > Color. Although documentation states otherwise, I get the following error:
Please post the URL or your site and state where the problem can be seen.
The URL is www.civilitas.gr/bio
Regarding the focus() problem I initially reported, this could be seen in the first box’s text (‘Βιογραφικό’) , above the on/off switch. The scenario was, after changing the switch’s state, to send the focus quickly elsewhere (to the textbox for example) in order to avoid some quirky designing/coloring effect of the switch. I bypassed it (since “textbox”.focus never worked) by blurring instead the focus of the input element). I’m ok now but still curious why I couldn’t apply the documentation.
Regarding the color() problem I reported next, the problem could be seen in the first box’s border , again, above the on/off switch. The scenario was to paint the border blue if the switch was checked and grey if the switch was not checked.
Since the code “textbox”.style.color never worked, I had to move on and I bypassed the problem by show/hiding an underneath extra box with a blue border, on and off, stacked on top of the initial element. I’m ok here as well, but not proud, since the ‘show/hide’ trick is not, say, optimal in terms of efficiency. It does the job, but I should have been able to work directly on the exact border.
All in all, I don’t know if the current setup of the page will help you tracing my reports.
Thank you very much for trying to understand the problem and your overall time in this.
@gemats Hmmm, pretty difficult to understand what you used to have . If you feel like it, and you think it would help, you can put together a test page showing the problem scenario and I’ll be glad to take a look at it.
@yisrael-wix of course, thanks.
@gemats the textbox in the documentation refers to a a textbox input element. You can’t focus on a plain text that is not an input field and is not used for capturing the user input. (if you scroll up to the beginning of the textbox chapter, you’ll see the definition: “Textbox. An input element for capturing large amounts of text”).