please guide me. i have the following problem:
i have a parent window that has a dropdown that is showing names and which is getting its value from a table.table conatins two columns, one is Name and other is Release.
there is a button called AddNew which is used to add new Name and release in table.
on clicking the button a popup window opens that has two textbox for Name and Release. on clicking the submit button new jsp page is called that inserts the Name and Release in the database. popup window also closes when submit button is hit.
now i want to show the newly added value in my dropdown of the first page. i am not able to refresh it from third page. it shows the new NAme if refreshed manually.
i know how to refresh page from popup. it can be done by using document.opener.location.reload. but problem is that popup has closed and third jsp runs independent of popup.
is there any way to stop the closing of popup till database is updated or to refresh the first page from third page directly????
i tried putting a while loop in popup so that it waits till database is updated and then updates the parent and then get closed but that didnt work.
any help will be appreciated. TIA
aashu