I have an access db backend with a frontend in asp. The user is able to add, edit, view, and delete members from the db.
I have a page that lists all members (members.asp), only showing a few fields for each, i.e. ID, fname, lname, city/town, etc. If you click on one of these records, it brings up the detailed info for that member (memberinfo.asp). On the memberinfo.asp page you can click a button to open the form in edit mode (memberinfoedit.asp), which opens in the same window as memberinfo.asp. Right now if you click the edit button and edit the member, it works correctly and saves to the db.
What I would like it to also do is refresh the page with the list of members and close the window I am editing the member in. I get the window to close fine from the body onload by calling a javascript function of the memberinfoedit page, but when I try and submit the opener page it does not submit the list of all members page. I guess this is because the list of members page is not the opener of the memberinfoedit page. The opener page is the memberinfo.asp page.
Is there a way I can refresh the member.asp page from the memberinfoedit.asp page? Can I use something besides the window.opener.submit function from javascript to submit the members.asp page from the memberinfoedit.asp page?
Thanks!
I have a page that lists all members (members.asp), only showing a few fields for each, i.e. ID, fname, lname, city/town, etc. If you click on one of these records, it brings up the detailed info for that member (memberinfo.asp). On the memberinfo.asp page you can click a button to open the form in edit mode (memberinfoedit.asp), which opens in the same window as memberinfo.asp. Right now if you click the edit button and edit the member, it works correctly and saves to the db.
What I would like it to also do is refresh the page with the list of members and close the window I am editing the member in. I get the window to close fine from the body onload by calling a javascript function of the memberinfoedit page, but when I try and submit the opener page it does not submit the list of all members page. I guess this is because the list of members page is not the opener of the memberinfoedit page. The opener page is the memberinfo.asp page.
Is there a way I can refresh the member.asp page from the memberinfoedit.asp page? Can I use something besides the window.opener.submit function from javascript to submit the members.asp page from the memberinfoedit.asp page?
Thanks!