Hi Pamela, Do you know which event is calling the script? Thanks. Jim Jim Homme, Usability Services, Phone: 412-544-1810. Skype: jim.homme. NonVisualDevelopment.org: Blind people can drive computers<http://www.nonvisualdevelopment.org/>. Demonstration GUI Programs: You can program GUI's while blind.<http://www.fruitbasketdemos.org/> From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of William & Pamela Sent: Monday, April 11, 2011 7:04 PM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: OT - Javascript question? I want the cursor not to keep jumping to the end of the edit field after each character I type, when I'm trying to insert a word or more than 1 character in the middle of the edit field. Thanks, Pamela From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Homme, James Sent: Monday, April 11, 2011 9:41 AM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: OT - Javascript question? Hi, If you tell me a little more about what you are trying to do, it might help. From what you say, I'm guessing that the reason this is happening is not because of the script, but because the script may be called by the on change event. The on change event makes the script fire anytime the edit field changes. The edit field changes anytime you type or remove a character. What do you want to happen? Thanks. Jim Jim Homme, Usability Services, Phone: 412-544-1810. Skype: jim.homme Highmark recipients, Read my accessibility blog<http://mysites.highmark.com/personal/lidikki/Blog/default.aspx>. Discuss accessibility here<http://collaborate.highmark.com/COP/technical/accessibility/default.aspx>. Accessibility Wiki: Breaking news and accessibility advice<http://collaborate.highmark.com/COP/technical/accessibility/Accessibility%20Wiki/Forms/AllPages.aspx> From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of William & Pamela Sent: Friday, April 08, 2011 3:39 PM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: OT - Javascript question? I was pointed to the below JS as contributing to my problem, which I will try to explain. When I need to edit or update a field by inserting a word in the middle of the field, every time I enter 1 character the cursor jumps to the end of the field and I have to keep moving the cursor back to the insertion point in the middle of the field I'm editing. I have to keep doing this for every character I want to enter. I don't know JS that well, but any suggestions would be appreciated. I will look into Roger's suggestion of googling "sigte all experts" (don't understand that google search exactly), and getting a copy of JS for dummies. Thanks, Pamela ----- JavaScript code ----- function uppercase(textField) { if (textField.value == '') { return; } var val = textField.value; var upper = ''; var len = val.length; for (var i = 0; i < len; i++) { if (/^[a-z]{1}$/.test(val.charAt(i))) { upper += val.charAt(i).toUpperCase(); } else { upper += val.charAt(i); } } textField.value = upper; } ----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James Sent: Friday, April 08, 2011 8:00 AM To: 'program-java@xxxxxxxxxxxxx' Subject: [program-java] Re: OT - Javascript question? Well Java script is also part of this list so fire away. Jim ________________________________ From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of William & Pamela Sent: April 7, 2011 21:01 To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: OT - Javascript question? I know this is for Java questions, so could someone knowledgable in Javascript please contact me offline? My e-mail is: pmcoats00@xxxxxxx Thanks, Pamela ________________________________ This e-mail and any attachments to it are confidential and are intended solely for use of the individual or entity to whom they are addressed. If you have received this e-mail in error, please notify the sender immediately and then delete it. If you are not the intended recipient, you must not keep, use, disclose, copy or distribute this e-mail without the author's prior permission. The views expressed in this e-mail message do not necessarily represent the views of Highmark Inc., its subsidiaries, or affiliates.