• Post Reply Bookmark Topic Watch Topic
  • New Topic

refreshing the same page with old data  RSS feed

 
priya pratheeeep
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,


I have a requirement to refresh my web page, after receiving field-1 input, and display the received data in the same format along with related new fields.

for example display all the states of a selected country

Please advise which is the easiest technique? how to store the data while refreshing etc.
please help
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can accomplish this in one of two easy ways:

1) Refresh the whole page using a normal submit. The parameter data is available to you to repopulate the page with the same, plus any additional data. This technique uses JSP mechanisms.

2) Use Ajax to just fetch the new data, leaving the existing data untouched. You can then use JavaScript to populate the "new" section of the page with the new data. This technique uses Ajax and JavaScript, along with (perhaps) JSP mechanisms.
 
priya pratheeeep
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I take all the data and create one url in javascript...but not getting idea how to pass that url to jsp...i am not familier with javascript.can you please help me

I don't know ajax...

thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"priya pratheep d ",
Please check your private messages regarding an important administrative matter.
-Ben
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!