HighDots Forums  

Re: onFocus problema

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: onFocus problema in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jerome Bei
 
Posts: n/a

Default Re: onFocus problema - 05-02-2005 , 11:01 AM







Hi,

Seems like the object gets the focus directly after the onfocus event
fires, and after that your method is called, which changes the object value.

You can try the onfocusin / onfocusout-event or call
objSender.select(); after changing the object value.

--Jerome

Reply With Quote
  #2  
Old   
Thomas 'PointedEars' Lahn
 
Posts: n/a

Default Re: onFocus problema - 05-12-2005 , 01:42 AM






Jerome Bei wrote:

Quote:
You can try the onfocusin / onfocusout-event [...]
Micro$oft forgot their usual MSDN Library statement there:

Quote:
There is no public standard that applies to this $foo.
Using onfocusin/onfocusout attributes creates invalid HTML
and the respective DOM object properties are IE only.

<http://www.w3.org/TR/html4/>
<http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-eventgroupings>

There is a DOMFocusIn event defined in DOM Level 3 Events, however that
specification is still a Working Draft and definitions therein would apply
to DOM object properties only (so no onfocusin/onfocusout attributes in
non-extensible/extended markup languages):

<http://www.w3.org/TR/DOM-Level-3-Events/events.html#Events-EventTypes-complete>


PointedEars


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.