Adam Zastawski

My Personal Blog

Capture [Enter] key press

Posted by Adam

With Tibco's General Interface (GI) you can capture the fact that user has pressed the [Enter] key while the focus is within any textbox. By placing the javascript below in the Execute event for the textbox you can change the focus of the form when the user presses Enter.

 

image

jsx3.sleep(function() { ProjectNamespace.getJSXByName("[TextBoxNameHere]").focus(); });

replace 'ProjectNamespace' with the namespace in your project settings.

replace '[TextBoxNameHere]' with the name of the textbox that should receive focus next.

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Posted on: 11/24/2007 at 1:27 AM
Categories: AJAX | Tibco - GI
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

Wednesday, July 23, 2008 1:06 PM