Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 21st, 2004, 06:01 AM
Authorized User
 
Join Date: Jun 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Open an image in the same window

Hello there,

i've been searching for a solution to display an image in a window without creating a new window. I used a hyperlink to open a window where i displayed an image, when i click on the link "next" then i want to display the next image in the same window. For the moment i am able to display the next image in the new window.

<a href='$PHP_SELF' onclick=\"window.open('popup.php?&w=$w&h=$h&t=$t&n r=$nr&x=$x&index=1','$x','width=$w,height=530,dire ctories=no,location=no,menubar=no,scrollbars=no,st atus=no,toolbar=no,resizable=no');return false\">Next</a>";

Popup.php is the window which is already open.

 
Old July 21st, 2004, 08:21 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Well, for a simple solution:

<a href='popup.php?w=$w&h=$h&t=$t&nr=$nr&x=$x&index=1 '>next</a>

HTH,

Snib

<><
 
Old July 21st, 2004, 11:27 AM
Authorized User
 
Join Date: Jun 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thx Snib,

i was looking for the most difficult solution and actually it is very simple.
Many thanks







Similar Threads
Thread Thread Starter Forum Replies Last Post
window.open() ckrajeshvarma ASP.NET 2.0 Professional 5 August 16th, 2006 09:13 AM
Open in new window sridevi Excel VBA 1 November 4th, 2004 06:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.