File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Frames Focus and select" Watch "Frames Focus and select" New topic
Author

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
textbox.focus()
textbox.select()
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: http://aspose.com/file-tools
 
subject: Frames Focus and select
 
Similar Threads
How to call the action when we press the enter button
Getting data from one frame into another
returning the result in different frame
JFrame focus
inter frame communication