Page 1 of 1

Problem in opening popup window

Posted: Mon Apr 10, 2006 2:21 am
by eshban
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hello,

I am facing a little problem. I have an image. I get its dimensions by using php method "getimagesize()".

It returns me the image height and image width.

Now i open a popup window, according to this height and width.

But the popup window will not open exactly at this size

Here is my code:

Code: Select all

$img_size = getimagesize("images/kitoptions/large/".$lar_img."");
$h = $img_size[0];
$w = $img_size[1];

<a href="#" onClick="window.open('viewkit_large_image.php?val=<?=$lar_img?>
','Popup','left=120,top=75,width=<?=$w?>,height=<?=$h?>,scrollbars=yes')">
suppose $h = 550
and $w = 400

so according to my code, the popup window opened, must be off this size. but this not happens.

kindly tell me that how to solve this problem

plz reply

thanks


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Mon Apr 10, 2006 2:31 am
by willgnosis
unfortunately there is a minimum size for pop ups windows... a new implementation of Microsofts IE
it may look correct in Safari on mac...but thats about it. pretty sure firefox does it too.
no way round it i know of.

;-)

it works

Posted: Mon Apr 10, 2006 3:12 am
by eshban
it is possible sir,

i got the script. it works well

check it

http://www.braemoor.co.uk/software/openpopup.shtml