• 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

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

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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[
 
Ranch Hand
Posts: 59
Eclipse IDE Oracle Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic