The moose likes HTML, CSS and JavaScript and the fly likes Frames Focus and select Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Frames Focus and select" Watch "Frames Focus and select" New topic

Frames Focus and select

Kishan Kumar
Ranch Hand

Joined: Sep 26, 2000
Posts: 130
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

Regards,<BR>V. Kishan Kumar
I agree. Here's the link:
subject: Frames Focus and select
It's not a secret anymore!