[program-java] Re: OT - Javascript question?

  • From: "Corbett, James" <James.Corbett@xxxxxxxxxxxxx>
  • To: "'program-java@xxxxxxxxxxxxx'" <program-java@xxxxxxxxxxxxx>
  • Date: Wed, 13 Apr 2011 15:32:25 -0400

Hi Jim H:

Please don't take this as a condemnation of any sorts but did you not read the 
previous message from JR on this topic? I ask because it appears that I'm 
missing messages from the list on a more frequent bases and most times if 
another message hasn't the chain appended I will need to visit the list 
archive. Anyone else experiencing similar issues?

Jim C.


________________________________
From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Homme, James
Sent: April 13, 2011 15:27
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] Re: OT - Javascript question?

Hi,
I just remembered what event it could be. Onblur. That's when you tab out of a 
field. If you move it to that event, it will run and do its magic and your 
screen reader won't have a fit.

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 J. R. Westmoreland
Sent: Tuesday, April 12, 2011 10:04 AM
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] Re: OT - Javascript question?

Jim,

I suspect you are right. The reason it is going to the end is that when you put 
a value back like that it moves the cursor to the end as though you had typed 
it.
I'm taking a class on javascript and we talked a bit about that.
I probably wouldn't have used the onchangedevent I'd have used the event that 
is triggered when you exit the field to uppercase the whole thing at that 
point. <smile>

Best,
J. R.



From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Homme, James
Sent: Tuesday, April 12, 2011 6:43 AM
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] Re: OT - Javascript question?

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.

Other related posts: