aspose file tools*
The moose likes JSP and the fly likes Updating parent JSP(without a page refresh) on pop-up action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Updating parent JSP(without a page refresh) on pop-up action" Watch "Updating parent JSP(without a page refresh) on pop-up action" New topic
Author

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

Kumara SharmaS
Greenhorn

Joined: Nov 08, 2011
Posts: 21
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

For refreshing parent window on some event happened on child window, then just google:
[google]refresh parent window javascript[/google[


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Ravi Majety
Ranch Hand

Joined: Feb 26, 2009
Posts: 59

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.

 
Consider Paul's rocket mass heater.
 
subject: Updating parent JSP(without a page refresh) on pop-up action