Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Frames Focus and select  RSS feed

Kishan Kumar
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,
Having a problem with Frames.

I am having two frames say Frame1 and Frame2.
In Frame1 there is a textbox inside a SubmitForm.
When we hit enter after entering something in the textbox the Frame2 gets populated with a content.

The problem is that..
When we hit enter after entering text in Frame1, we do a
and then submit the form and tell return false too to not shift the focus.

When Frame2 gets populated there is a onLoad which sets focus to a button in Frame2.(I cant change this since the content is third party)

Now there is a highlight on textbox on Frame1 and focus is on a button in Frame2. At this time when I type in some characters the highlighted text field value(in Frame1) is getting changed. But when I hit enter, the button on Frame2 is submitting.

The expectation is that the form on Frame1 should submit. How to do this?. When highlighted field is getting changed how to bring the focus to it. As of now I do not have onchange event as Iam not validating the field.

Thanks for your time.

Regards, Kishan
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!