If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > 1.asp to 2.asp back to 1.asp (which must refresh)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-08-07, 06:11
squizoid squizoid is offline
Registered User
 
Join Date: Mar 2005
Location: Wellington, New Zealand.
Posts: 28
1.asp to 2.asp back to 1.asp (which must refresh)

Hi again

Still working on this survey thing, seems to be every couple of days I am getting stuck. Hope someone can help.

I have a view survey page 1.asp that loads from a db, I can now press a button to send invite or reminder emails which opens a confirmation page 2.asp (does the emailing and updates the db to say that its sent). I have a back button which needs to refresh 1.asp when it opens otherwise the emails may be resent.

Doh, seems to be trickier than I thought. I have searched both VBSCRIPT and JavaScript for a solution that works and can't figure one out. Now's your chance to jump in.....

Heres something I maybe able to adapt (sry from another forum )
http://forums.devshed.com/asp-progra...one-53270.html

???
Reply With Quote
  #2 (permalink)  
Old 03-11-07, 06:44
squizoid squizoid is offline
Registered User
 
Join Date: Mar 2005
Location: Wellington, New Zealand.
Posts: 28
Solved

Hi

I have finally found something that works, and refreshes the page when the back button is clicked. I just added this code onto the end.

<input type="hidden" id="refreshed" value="no">
<script type="text/javascript">
onload=function(){
var e=document.getElementById("refreshed");
if(e.value=="no")e.value="yes";
else{e.value="no";location.reload();}
}
</script>
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On