• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Frames Focus and select

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
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
 
You know it is dark times when the trees riot. I think this tiny ad is their leader:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic