Page 2 of 3
Posted: Mon Mar 22, 2004 10:20 pm
by John Cartwright
No sorry I don't have any of those.... got any other ideas on how to do what I'm trying to accomplish...
All I want to do is have the picture be a link, and pass the variables to picture.php.. simple enough .. rigte?
Posted: Mon Mar 22, 2004 10:24 pm
by andre_c
Your using internet explorer right? Try double-clicking on error on page at the bottom left and tell me what the error is (you're getting an error on page right?)
Posted: Mon Mar 22, 2004 10:25 pm
by John Cartwright
it sais syntax error ! thats it...........
line 13 which is this line
Posted: Mon Mar 22, 2004 10:26 pm
by andre_c
can you post your new code?
Posted: Mon Mar 22, 2004 10:29 pm
by John Cartwright
Code: Select all
<a href="javascript:window.open("picture.php?<? echo "type=$type&picture=$picture&title=$title"; ?>", ","Picture Viewer","toolbar=0,status=0,menubar=0,scrollbars=no,resizable=no");> <img src=" <? echo "portfolio/$type/$picture"; ?>" width="450" height="410" border="1"></a>
Same as before.. no changes
Posted: Mon Mar 22, 2004 10:31 pm
by andre_c
I thought you changed it to href='#' onclick='window.open etc
... also you have
Code: Select all
, ",
// needs to be
, "",
// actually i think it just needs to be
,
Posted: Mon Mar 22, 2004 10:33 pm
by markl999
Try:
<a href="javascript:window.open('picture.php?<? echo "type=$type&picture=$picture&title=$title"; ?>', 'Picture Viewer','toolbar=0,status=0,menubar=0,scrollbars=no,resizable=no');"> <img src=" <? echo "portfolio/$type/$picture"; ?>" width="450" height="410" border="1"></a>
Posted: Mon Mar 22, 2004 10:33 pm
by John Cartwright
Oh yea..... I changed it back because I was getting the link
http://www.domain.com/page.php?variable=398293# and was only returning the page to the top.. without any errors.....
I just was checking the errors for u
Code: Select all
<a href="#" onclick="window.open("picture.php?<? echo "type=$type&picture=$picture&title=$title"; ?>", ","Picture Viewer","toolbar=0,status=0,menubar=0,scrollbars=no,resizable=no");> <img src=" <? echo "portfolio/$type/$picture"; ?>" width="450" height="410" border="1"></a>
Posted: Mon Mar 22, 2004 10:34 pm
by John Cartwright
Mark: on mouseover that actually shows the proper link witha ll the variables etc etc
but when clicked on gives the error: Invalid Argument :S
Posted: Mon Mar 22, 2004 10:39 pm
by andre_c
did you fix this
Code: Select all
...ure&title=$title"; ?>", ","Picture...
to this
...ure&title=$title"; ?>" ,"Picture...
and add a " right before closing the onclick (or href, wherever you're doing it)
Posted: Mon Mar 22, 2004 10:40 pm
by John Cartwright
Code: Select all
<a href="javascript:window.open('picture.php?<? echo "type=$type&picture=$picture&title=$title"; ?>', 'Picture Viewer','toolbar=0,status=0,menubar=0,scrollbars=no,resizable=no');"><img src=" <? echo "portfolio/$type/$picture"; ?>" width="450" height="410" border="1"></a>
yes.
Posted: Mon Mar 22, 2004 10:48 pm
by John Cartwright
K I changed it to this and it is working fine except when I click on the picture and the popup appears fine, the original page reloads and it blank except for it sais [object].. jsut a white page that sais [object]
this is the new code I used
Code: Select all
<a href="javascript:window.open('picture.php?<? echo "type=$type&picture=$picture&title=$title"; ?>',toolbar='0',status='0',menubar='0',scrollbars='no',resizable='no');"><img src=" <? echo "portfolio/$type/$picture"; ?>" width="450" height="410" border="1"></a>
I change to onclick thing and it seems to be working fine.. thanks guys
Posted: Mon Mar 22, 2004 10:59 pm
by andre_c
I think i figured out what was wrong, it seems to work for me if i get rid of the space in Picture Viewer:
Picture_Viewer
hope that helps
Posted: Mon Mar 22, 2004 11:00 pm
by John Cartwright
A bit late... and that was PART of the problem.. thanks again for ur help

Posted: Mon Mar 22, 2004 11:18 pm
by John Cartwright
Code: Select all
<? $size= getimagesize("portfolio/$type/$picture");
?>
<a href="#" onclick="window.open('picture.php?<? echo "type=$type&picture=$picture&title=$title"; ?>',width='<? echo "$size[0]"; ?>',toolbar='0',status='0',menubar='0',scrollbars='no',resizable='no',width='<? echo "$size[1]"; ?>');"><img src=" <? echo "portfolio/$type/$picture"; ?>" width="450" height="410" border="1"></a>
The problem is that no matter what I change any of the variables in the javascript... height... scrollbar....resizable... anything is does not take effect. The width is always the same.. height... no scroll.. non resizable even if I set them to TRUE.