This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem adding an element to a selection box in Netscape

 
kris isfeld
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that I want to add an item to a selection box in Netscape and apparently you must refresh the screen. The way I am currently doing this is by calling history.go(0); I do not lose any of the text box info that the user adds but I lose hidden input info that I set from javascript and also javascript variables that I set. I don't want to have to hit the server side code on the refresh.
Please help...
 
kris isfeld
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK
 
kris isfeld
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK
 
Daniel Olson
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try this:
Sometimes, you may need to call resp."setHeader()" to set custom headers to your response. For example, to prohibit browsers or proxys from caching data, specify all these in response:
res.setHeader("Pragma", "no-cache"); //HTTP/1.0 Proxy Servers
res.setHeader("Cache-Control", "no-cache"); //HTTP/1.1 Proxy Servers
res.setDateHeader("Expires", 0); // for Browsers
This is taken from Vipan Singla's "Coding Java Servlets includes Java Server Pages" at http://www.vipan.com/htdocs/usefulservlets.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic