Hi Roger
You are correct - any examples you find online will be about manipulating HTML widgets in a web browser. We use JavaScript under the hood but all of the interactions with the user interface are specific to DashBoard and quite distinct from how a browser would work.
I was looking to see if our onkeypress or onkeyrelease combined with ogscript.reveal(id, selectionFlag) would work but the tab is consume by the control to switch focus before the listener is activated.
This is a fairly common request so I will make a note of it and see if anything can be done in a future release (either by adding a focus handler script or a config option to text fields to turn 'select on focus' on).
Cheers
James
------------------------------
James Peltzer
Ross Video
------------------------------
Original Message:
Sent: 06-21-2021 10:47
From: Roger Heyward
Subject: want to highlight text in textbox when onFocus in Dashboard
Basically, I want to be able to quickly tab through some textboxes, and when each textbox becomes active then I want the text in that textbox to be highlighted for quick replacement. Not really sure how to go about this. I have found some JavaScript blocks online, but it is all for html docs, and I'm not really sure how to translate that to ogScript, including where to place the code. Would it be a task in the Param Attribute for that object?
------------------------------
Roger Heyward
------------------------------