Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    May 2005
    Posts
    215
    Thanks
    14
    Thanked 0 Times in 0 Posts

    need to refresh on redirect...

    Hello all. I have a page (Update.asp) which updates a database and now I want it to go back to the previous page (Info.asp) and then refresh that page. The problem is that the previous page is populated through various recordsets and not through the URL, so obviously I can't redirect to it.

    Here is what I am using to go back to that page:

    Code:
    javascript:history.go(-2);
    Normally, I used popups for edit pages and would return with the following:

    Code:
    opener.location.reload(true);self.close()
    ... but I wanted to get away from using the popups because of the delay to open a new browser.

    Is there a way to accomplish what I am seeking? I hope this makes sense.

    Thanks in advance,

    Parallon

  • #2
    Regular Coder
    Join Date
    May 2005
    Posts
    215
    Thanks
    14
    Thanked 0 Times in 0 Posts
    Ok, I got what I was looking for using the following:

    Code:
    javascript:history.go(-2);
    document.location.reload(true);
    ...but now when that page goes to reload, I get the message that Internet Explorer needs to resend the information previously submitted. Is there any way to get around this message?

    Also, how come some dynamic pages get this message on reload and others reload without this message displaying?

    Thanks,

    Parallon

  • #3
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's doing that because the page has already been submitted and you are now tyring to reload (resubmit) it.

    The best way around this is to store the query in a session or querystring variables and redirect to it and have it repopulate.

  • #4
    Regular Coder
    Join Date
    May 2005
    Posts
    215
    Thanks
    14
    Thanked 0 Times in 0 Posts
    You're right. I ended up changing the form method to "Get" and all is well.

    Thank you for your time,

    Parallon


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •