Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Open window php

LEGEND ,
Nov 07, 2006 Nov 07, 2006
I would like to open a window if a user clicks on an image to enlarge
it. Here's the code:

<img src="<?php echo $row_rssport['result_pic']; ?>" alt="<?php echo
$row_rssport['result_picalt']; ?>" border="0" class="imgright"
onclick="window.open('sport_picbig.php?result_id=<?php echo
$row_rssport['result_id']; ?>','',450,450,'0:0','sc','r');return false"
<?php echo $dims; ?> /></a> <?php } ?>

It works in IE7, that's fine, but only a very small window opens in FF2.
So there is probably something wrong in my code. Can someone point me
into the right direction?

Martin
TOPICS
Server side applications
303
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 11, 2006 Nov 11, 2006
Martin Lang wrote:

> I would like to open a window if a user clicks on an image to enlarge
> it. Here's the code:
>
> <img src="<?php echo $row_rssport['result_pic']; ?>" alt="<?php echo
> $row_rssport['result_picalt']; ?>" border="0" class="imgright"
> onclick="window.open('sport_picbig.php?result_id=<?php echo
> $row_rssport['result_id']; ?>','',450,450,'0:0','sc','r');return false"
> <?php echo $dims; ?> /></a> <?php } ?>
>
> It works in IE7, that's fine, but only a very small window opens in FF2.
> So there is probably something wrong in my code. Can someone point me
> into the right direction?
>
> Martin

It seems that you are using MS only window features, try the following:
onclick="window.open(
'sport_picbig.php?result_id=
<?php echo $row_rssport['result_id']; ?>,
\"height=450,width=450,left=0,right=0\"); return false';">

Mick
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 12, 2006 Nov 12, 2006
LATEST
Mick White wrote:
> It seems that you are using MS only window features, try the following:
> onclick="window.open(
> 'sport_picbig.php?result_id=
> <?php echo $row_rssport['result_id']; ?>,
> \"height=450,width=450,left=0,right=0\"); return false';">

Hi Mick,

yeah - that works. One good message on Sunday, while I'm still messing
around with D8.

Thank you!

Martin
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines