PDA

View Full Version : various focus events



topcoder1
23 Aug 2007, 11:26 AM
1.I want to detect when user clicks on an htmlInput, onfocus doesn't work. onPush and onSync are fired when I clicks on the htmlInput while it's at it's iFrame mode(WYSIWYG mode), but none of those events are fired when I click on the htmlInput while it's at it's source code mode(no cursor is shown at this mode either). any solution?
2. for a TextField of type 'file', onFocus is fired when user clicks on the browse button, but what if a user enters a file path manually, in this case the onFocus event is not fired, is there a way to detect when the file box gains focus?
thanks

Neo
23 Aug 2007, 11:58 PM
1.I want to detect when user clicks on an htmlInput, onfocus doesn't work. onPush and onSync are fired when I clicks on the htmlInput while it's at it's iFrame mode(WYSIWYG mode), but none of those events are fired when I click on the htmlInput while it's at it's source code mode(no cursor is shown at this mode either). any solution?


Do you want to click a htmInput that is inside an iframe? I guess this should help:

http://extjs.com/forum/showthread.php?t=11110&highlight=iframe