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?
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.