• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 381
  • Last Modified:

URGENT - Parent Page redirect w/querystring

I have an archived orders page that is popped up from an un-archived orders page.

So if I am on UnArchived Orders page, I click the link to popup the Archived Orders Page, on this page is a list of orders that have been archived, I'd like to be able to click on an order and have the parent page redirect to that orders page, while ensuring the Archived Orders page stays on top....
0
kevp75
Asked:
kevp75
  • 2
  • 2
1 Solution
 
ZylochCommented:
Alright, have this on your archived orders page links:

<a href="#" onclick="goToPage('archived/order13414.php'); return false;">

and then:

function goToPage(url)
{
    if (window.opener)
    {
        window.opener.location.href = url;
    }
}
0
 
kevp75Author Commented:
will that pass a querystring as well

ie:<a href="#" onclick="goToPage('archived/order13414.asp?id=12345'); return false;">
0
 
ZylochCommented:
That will pass the query string. In short, all the function does is navigate to the new page just like clicking on a link does.
0
 
kevp75Author Commented:
sweet.  thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now