Forum OpenACS Development: Re: Open New Window

Collapse
2: Re: Open New Window (response to 1)
Posted by Robert Locke on
ns_returnredirect returns a 302 with the "Location" field of the HTTP header set to the new URL. As far as I know, there's no way via the HTTP header to tell a browser to open that URL in a new window.

However, you could redirect to a page which would open the final URL in a new window using JavaScript. Something like:

    .../popup_url?final_url=http://blah.com/foo/
Collapse
3: Re: Open New Window (response to 2)
Posted by Robert Locke on
Or more efficient still, return a page which already contains the Javascript for opening the final url in a new window.  You may also want to redirect the main browser window back to the original URL.