• 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

updated data from child, refresh parent ,how to?

 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can start from this tutorial on AJAX.
 
reply
    Bookmark Topic Watch Topic
  • New Topic