Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

How to display the form values even after refreshing the page?

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai,
plz go thru my problem and reply immediately.
In a form,
I have select fields like clients,events,groups,etc.
In that i'm displaying all the clients,events and group names from
the backend database.
I'm also having a new option in each select field.
If I select the new option, it will
open a popup window, for adding a new client or event or group.
when we add a new client or event or group it will be saved in the
backend database and as I have to show that new entry in the main screen
immediately on save, I'm refreshing the main screen whenever i'm opening a pop up &
saving a new value.
my problem is, I have some text fields,text areas and select
fields whose values are refreshed when I refresh the screen.
(ie. it shows empty or its first option)
Now I want all the values to be captured and displayed back for those fields even
after refreshing this page.
(this fields are not saved in the backend till this time, as i'm just
started entering them for a new user, so I can't get them from backend).
How can we do it using javascript?
(or by using html).
My requirement may seem to be peculiar but that's what they require.
plz help me if anybody knows this.
i want this stuff immediately.
(if possible give some example coding).
(if not exact even some ideas or good suggestions will be good).
thanks in advance,
regards,
saravanan.r.
 
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to repost the data in the form.
You can use some hidden input and pass it to the form again.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!