File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

updated data from child, refresh parent ,how to?

 
majid nakit
Ranch Hand
Posts: 167
  • 0
  • 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.
 
Nilesh Miskin
Ranch Hand
Posts: 44
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can start from this tutorial on AJAX.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic