Ask a Question related to ASP Database, Design and Development.
-
TLMM #1
Refresh Page
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?
This is the process of how the pages are opening right now if the user wants to edit:
1. Members.asp (list of members)
2. Click on a member and it opens the detailed info page MemberInfo.asp.
3. On MemberInfo.asp, there is an Edit button. Whenthis is clicked, it opens MemberInfoEdit.asp and closes MemberInfo.asp.
I would like to refresh Members.asp. Since this is not the page that opened MemberInfoEdit.asp, it was opened from MemberInfo.asp, can I refresh the previous page?
Thanks!
TLMM Guest
-
how can i Refresh my page????
Please help me I am using mac os x and Dreamweaver MX 2004, But i make some page but I am not abble to see them normal, please help me....I will... -
Auto Page Refresh
Hi, I have a web page which contains content that is frequently updated: http://www.iwsec.co.uk -
Page Refresh
OK, I have created a user control that contains a dropdown for office locations. Here is the code.... Private Sub Page_Load(ByVal sender As... -
page refresh?
I have the submit and action page. On the submit form, I have several text boxes for user to enter information. On the action page, I have the... -
refresh a page every so often
I want to refresh the text of a label box, say, every second. Is there a way to maintain some kind of persistent connection to the server and the... -
Aaron [SQL Server MVP] #2
Re: Refresh Page
window.opener.reload()
? The user might have to confirm a dialog if they got there by post. If
so, maybe you could allow the page to accept both get and post, and from the
new window use
window.opener.location.href="page.asp?<params here>";
--
[url]http://www.aspfaq.com/[/url]
(Reverse address to reply.)
"TLMM" <tlmm@wwwnews.com> wrote in message
news:ORQPzC2YEHA.1152@TK2MSFTNGP09.phx.gbl...
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?
This is the process of how the pages are opening right now if the user wants
to edit:
1. Members.asp (list of members)
2. Click on a member and it opens the detailed info page MemberInfo.asp.
3. On MemberInfo.asp, there is an Edit button. Whenthis is clicked, it
opens MemberInfoEdit.asp and closes MemberInfo.asp.
I would like to refresh Members.asp. Since this is not the page that opened
MemberInfoEdit.asp, it was opened from MemberInfo.asp, can I refresh the
previous page?
Thanks!
Aaron [SQL Server MVP] Guest
-
McKirahan #3
Re: Refresh Page
"TLMM" <tlmm@wwwnews.com> wrote in message
news:ORQPzC2YEHA.1152@TK2MSFTNGP09.phx.gbl...
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.
[snip]
Have you considered having just one ASP page instead of three?
The list of members is displayed by default; clicking on a member reloads
the same page passing that member's ID and displaying their details;
clicking "edit" reloads the same page but in "edit" mode; finally, after
clicking "update" to submit the changes, the list is redisplayed.
McKirahan Guest
-
dave #4
Refresh Page
Response.write "<script>"
Response.write "self.close();"
Response.write "self.close();"
Response.write "opener.location.href ='member.asp'"
Response.write "</script>"
Would this work for u?
dave
user is able to add, edit, view, and delete members from>-----Original Message-----
>I have an access db backend with a frontend in asp. The
the db.showing a few fields for each, i.e. ID, fname, lname,>
>I have a page that lists all members (members.asp), only
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.the list of members and close the window I am editing the>
>What I would like it to also do is refresh the page with
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.the memberinfoedit.asp page? Can I use something besides>
>Is there a way I can refresh the member.asp page from
the window.opener.submit function from javascript to
submit the members.asp page from the memberinfoedit.asp
page?now if the user wants to edit:>
>This is the process of how the pages are opening rightMemberInfo.asp.>
>1. Members.asp (list of members)
>
>2. Click on a member and it opens the detailed info pageis clicked, it opens MemberInfoEdit.asp and closes>
>3. On MemberInfo.asp, there is an Edit button. Whenthis
MemberInfo.asp.the page that opened MemberInfoEdit.asp, it was opened>
>I would like to refresh Members.asp. Since this is not
from MemberInfo.asp, can I refresh the previous page?>
>Thanks!
>
>
>dave Guest



Reply With Quote

