• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Updating parent JSP(without a page refresh) on pop-up action

 
Kumara SharmaS
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I have 2 JSPs, say parent.jsp, child.jsp

parent.jsp has a dropdown of food items
and also a button(on click opens child.jsp as a popup)

removeButton.action(){
Open a popup
User reviews the item
Clicks on Confirm Remove button
}

Pop up closes and dynamically without a page refresh, the item should get removed from the dropdown in parent.jsp

How can this be achieved? How can I send a flag/something form the child.jsp to parent.jsp to actually remove the element.
User may just say Remove on parent.jsp and say Cancel on the popup, in which case the item should not be removed.
Are these different ways of linking parent and child pages/popups?

Thanks
KSharma
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For refreshing parent window on some event happened on child window, then just google:
[google]refresh parent window javascript[/google[
 
Ravi Majety
Ranch Hand
Posts: 59
Eclipse IDE Java Oracle
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sharma,

I feel that can be performed using the javascript. Because using javascript we can get the DropDown Values List dynamically and remove and reassign the list. So if you were able to call a javascript method in parent.jsp from your child.jsp then it is done.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic