Source language: Translate to:

getting active / focused object ID

General questions about NeoAppBuilder - our rapid application development tool for building HTML5, web and mobile apps.

Moderator: Neosoft Support

getting active / focused object ID

Postby TinTin » Fri Sep 11, 2015 9:44 am

Any news on this feature please..
TinTin
 
Posts: 162
Joined: Sun Dec 06, 2009 4:03 am
Location: UK

Re: getting active / focused object ID

Postby Neosoft Support » Fri Sep 11, 2015 5:49 pm

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]"
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5602
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Re: getting active / focused object ID

Postby TinTin » Sat Sep 12, 2015 3:09 am

perfect thanks very much ;-)
TinTin
 
Posts: 162
Joined: Sun Dec 06, 2009 4:03 am
Location: UK

Re: getting active / focused object ID

Postby TinTin » Sat Sep 12, 2015 3:12 am

just one more thing... with text input it would be handy to have option for detecting mouse down / up events
TinTin
 
Posts: 162
Joined: Sun Dec 06, 2009 4:03 am
Location: UK

Re: getting active / focused object ID

Postby Neosoft Support » Sat Sep 12, 2015 1:38 pm

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.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5602
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA


Return to General NeoAppBuilder Discussion

Who is online

Users browsing this forum: No registered users and 1 guest