Solved

URGENT - Parent Page redirect w/querystring

Posted on 2006-06-23
4
372 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
  • 2
  • 2
4 Comments
 
LVL 36

Accepted Solution

by:
Zyloch earned 500 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
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?
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…

749 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