• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

getting parameterValues from a separate frame

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have two frames. The frame at the bottom contains my submit button that calls my servlet while the top frame contains my values that I need to pass via HttpRequest.
How do I retrieve those parameters from the top frame. "getParameterValue(String)" only works where the form data is in your current frame
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For programming on the browser, your only real choice is JavaScript. You can use it to grab variables from the form(s) in the top Frame as they are entered and stick the values in hidden form variables in the bottom. You can also use it to do preliminary validation.
There are LOTS of Javascript books.
Bill
 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Trevor,
This isn't a Javascript forum, so I'll keep this short. I think that the easiest way to do this is to add an "onBlur()" method to each INPUT element in the top form, and have it set the value of a corresponding hidden INPUT element of the real form in the bottom frame.
When you do a form submit, only the name/value pairs from the submitting form are passed, and it is not possible to have a form spread across two frames -- they are treated as separate documents by the browser.
Good Luck!
PCS
[ November 14, 2002: Message edited by: Philip Shanks ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic