Print Page | Close Window

List Box -SetFocus

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: JavaScript
Forum Description: Discussions relating to the use of JavaScript within PDF.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=806
Printed Date: 22 Oct 2019 at 2:46pm
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: List Box -SetFocus
Posted By: akku
Subject: List Box -SetFocus
Date Posted: 14 May 2013 at 8:34pm
I found one unpleasant thing with setting focus for List Box
just after pressing any list item by KeyBoard (!!!)-this field is loosing focus and simple adding setFocus command for Mouse-up Action (valid for keyboard) is not succesful
Loosing focus little bit particular -we dont have dashed frame around field and Home and End keys (or lef and right arrows) are Dead
Nevetherless -Up and Down keys are alive

Please help -if you have ant idea to avoid this

Ps If you just and setFocus on another field +alert before unworking setting focus (see above) -it become alive (!!)
May any idea to replace alert by something ))) uploads/1189/Untitled.pdf - Untitled.pdf



Replies:
Posted By: gkaiseril
Date Posted: 14 May 2013 at 10:01pm

A script runs until it processes all of the code. If an alert pops up, the script waits for an answer and continues to run the script.

You script for the live field jump to another field, pops up an alert, and then returns to the live field. Comment out the last line an the cursor will stay at the  temp field.


Posted By: akku
Date Posted: 15 May 2013 at 6:26pm
Some type of solution is found
Last line in routine for Mouse Up is setting focus on another field
This another field setting focus back to initial ListBox on "Focus On"
It works!
See attachment uploads/1189/Solution_for_backing_focus.pdf - Solution_for_backing_focus.pdf



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net