Page 1 of 1

getting active / focused object ID

PostPosted: Fri Sep 11, 2015 9:44 am
by TinTin
Any news on this feature please..

Re: getting active / focused object ID

PostPosted: Fri Sep 11, 2015 5:49 pm
by Neosoft Support
It's on the list.

In the mean time you can use the following code:

Code: Select all
BeginJS
  $App.FocusedObj = $(":focus").attr("id");
EndJS


This will place the id of the focused object into a variable called [FocusedObj].

You could use it like this:

Code: Select all
BeginJS
  $App.FocusedObj = $(":focus").attr("id");
EndJS
jsAlert "The focused object is: [FocusedObj]"

Re: getting active / focused object ID

PostPosted: Sat Sep 12, 2015 3:09 am
by TinTin
perfect thanks very much ;-)

Re: getting active / focused object ID

PostPosted: Sat Sep 12, 2015 3:12 am
by TinTin
just one more thing... with text input it would be handy to have option for detecting mouse down / up events

Re: getting active / focused object ID

PostPosted: Sat Sep 12, 2015 1:38 pm
by Neosoft Support
just one more thing... with text input it would be handy to have option for detecting mouse down / up events


Good idea. I'll add it to the list.