Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamical page content refreshing

 
Steve Mutanson
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my JSp page, suppose I have a radio buttons section ("product type") followed by a picklist section ("Product Name"). I want the content of the "product name" be dependent upon "product type", i.e. I want to retrieve the "product name" from database based on what "product type" user picks and then dynamically display them in the picklist after product type is picked.
I know if I put a "submit" button right after the "product type" section it should work. But this makes it cumbersome because I will neded several submit buttons if I want the page to be totally dynamically refreshable (one section be dependent on its preceding section(s)).
Is there better way to do this without puting "submit" buttons next to EACH component and having to click each one to refresh ?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use JavaScript's onChange() function for reloading the page when any of the input elements' selections are changed. Check out the HTML/JavaScript forum(s) for details.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic