• 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

Retain Drop Down menu values on "Back"

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
I'm using javascript in a JSP which uses the onchange() function to populate 4 drop down boxes that are linked. Based on the options selected in the JSP a graphic is created. Now when I go back to the JSP, I want all the options selected on the form to be retained. However the Drop Down menus do not retain their values. Please help!

I don't quite get whats explained in https://coderanch.com/t/112616/HTML-JavaScript/retaining-form-field-after-submission
thanks in advance
ravi
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you need the browser to remmeber the values, either you need to use a cookie on the client side, or you need to capture them on the server side.

Eric
 
Ravi Pat
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you suggest a place where I might find some example code.
thanks..
ravi
 
reply
    Bookmark Topic Watch Topic
  • New Topic