Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

updated data from child, refresh parent ,how to?  RSS feed

 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have two pages : parent.jsp and child.jsp



when I open parent.jsp it will populated from a database,whe I click the link update,the child.jsp popup and whatever change I do and I click ok , data will change in the database and the parent.jsp will refresh for new changed data from database.





Any idea on how to do this.



thanks.
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will suggest a slight variation in the page design. You can have an update link on your parent.jsp page. Use Ajax to dynamically update the parent.jsp page to show the form you would otherwise hold in your child.jsp when the user clicks the link. When user submits this form, again hide the embedded form. You will find plenty of websites on the internet following a similar approach.
 
majid nakit
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a good idea, but I don't have any experiences in Ajax, please if you have an example or you know any link like that post it here,

thanks,your help is appreciated.
 
Nilesh Miskin
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can start from this tutorial on AJAX.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!