?
Solved

URGENT - Parent Page redirect w/querystring

Posted on 2006-06-23
4
Medium Priority
?
374 Views
Last Modified: 2008-01-09
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
Comment
Question by:kevp75
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 36

Accepted Solution

by:
Zyloch earned 2000 total points
ID: 16969460
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
 
LVL 25

Author Comment

by:kevp75
ID: 16969544
will that pass a querystring as well

ie:<a href="#" onclick="goToPage('archived/order13414.asp?id=12345'); return false;">
0
 
LVL 36

Expert Comment

by:Zyloch
ID: 16969561
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
 
LVL 25

Author Comment

by:kevp75
ID: 16973353
sweet.  thank you
0

Featured Post

Industry Leaders: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question