OpenNTF.org - Press a Button on Pressing Ent
    Advanced
   OpenNTF Code Bin
Edit Document Code By Date > Code Document
About This Code
Brief Description:
Press a Button on Pressing Enter in the Notes CLIENT 
Rating:
Rating: 5 , Number of votes: 1 
Contributor:
Fred Ramsey 
Category:
Design Elements 
Type:
Example Code 
Notes Version:
R6.x 
Last Modified:
29 Jun 2007 
OpenNTF Disclaimer

All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.

Code / Description
Disclaimer: I put this together out of articles I found searching the web. I had not seen these capabilities put together like this for the Notes Client.

===

Thanks to being able to execute Javascript in the client in Notes 6.5, there is an easy way to have someone type some text in a field and press enter, then trigger something, like a search or whatever. Look at the JS Header, onLoad, onFocus, and onBlur events. Note, too, that the buttons in this case need names entered on the HTML tab.

Using the onFocus and onBlur events of the fields also allows you to only trap the Enter key for a particular field.

Have fun!

Usage / Example
See attached .NSF
Code Attachments
pboeic.nsf (320 Kbytes)
 Comments

No documents found

 Add your comment!