Page 1 of 1
Open photo in new window with other HTML elements
Posted: Tue Apr 26, 2005 9:36 am
by voltrader
When photo thumbnails are clicked on, I open a new window with a larger window using a standard anchor href
<a href="filename" target="_blank">thumbnail</a>
I would also like to display relevant information for the photo. Is there anyway I can also include other HTML elements in the newly opened page?
Posted: Tue Apr 26, 2005 9:50 am
by malcolmboston
pass the picture to a new page using get
then on the page do
Code: Select all
<html>
<head>
</head>
<body>
<!-- your HTML stuff here -->
<?php
print $_GETї'pic_url'];
?>
</body>
</html>
hope this gives you some ideas
Posted: Tue Apr 26, 2005 10:26 am
by voltrader
Thanks -- was hoping to be able to do it without calling another page, but it looks like I'll have to.
Posted: Tue Apr 26, 2005 2:16 pm
by Chris Corbyn
The only other reasonable way to do it would be to use JavaScript.
You could alway just have a page which echo's a single variable (use heredoc) containing the entire page, passed by session.
Posted: Tue Apr 26, 2005 4:39 pm
by thegreatone2176
you can make a javascript function that opens a window and displays a picture based on the filename parameter passed and in your anchor tags call the function with the filename as the parameter
basicly how yahoo lets you view your address book