473,382 Members | 1,329 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Changing the size of a popup window?

I'm building a site that has images of flowers, and when someone
clicks on a thumbnail it brings up a larger version in a popup window.
I am using window.open to open the new window with all the toolbars
turned off and the window resized to the correct size for the current
picture. The problem is the pictures are of different sizes, and once
the popup window is open it won't resize. So if the first image I open
is 470x240 and the second is 670x365, the second image will be
cropped. You can see this here

http://www.floweringaround.com/new/boquets.html (only the first three
images are currently working)

Is there a way to resize the window every time onclick is pressed?

Thanks,
Kevin

Apr 24 '07 #1
2 5231
Kevin Audleman wrote:
I'm building a site that has images of flowers, and when someone
clicks on a thumbnail it brings up a larger version in a popup window.
I am using window.open to open the new window with all the toolbars
turned off and the window resized to the correct size for the current
picture. The problem is the pictures are of different sizes, and once
the popup window is open it won't resize. So if the first image I open
is 470x240 and the second is 670x365, the second image will be
cropped. You can see this here

http://www.floweringaround.com/new/boquets.html (only the first three
images are currently working)

Is there a way to resize the window every time onclick is pressed?

Thanks,
Kevin
http://www.howtocreate.co.uk/perfectPopups.html

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Apr 24 '07 #2
On Apr 23, 11:32 pm, -Lost <maventheextrawo...@techie.comwrote:
Kevin Audleman wrote:
I'm building a site that has images of flowers, and when someone
clicks on a thumbnail it brings up a larger version in a popup window.
I am using window.open to open the new window with all the toolbars
turned off and the window resized to the correct size for the current
picture. The problem is the pictures are of different sizes, and once
the popup window is open it won't resize. So if the first image I open
is 470x240 and the second is 670x365, the second image will be
cropped. You can see this here
http://www.floweringaround.com/new/boquets.html(only the first three
images are currently working)
Is there a way to resize the window every time onclick is pressed?
Thanks,
Kevin

http://www.howtocreate.co.uk/perfectPopups.html

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
ty!!

Apr 30 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Raymond Dunton | last post by:
I am new to Javascript programming. I have a page with four small pictures. I want to click on a picture and have it open up larger in a popup window. this is what I am currently using to do...
2
by: Jason . | last post by:
Is there a way to dynamically size a popup object? i.e. function getMetricDesc(sDescription) { var oPopup = window.createPopup(); var oPopupBody = oPopup.document.body; oPopupBody.innerHTML = ...
5
by: Sean Berry | last post by:
I have a news video that I am sending out for a client. There are embedded links to flash movies in the email. I want the popup to be a set size (400 x 400). I am currently using the...
7
by: Alex Hunsley | last post by:
I'm aware of how to access the document model in Javascript in order to do things like change the values in the fields forms. However, I'd like to pop up a helper window seperate from the page...
1
by: Kenny | last post by:
The following link will take you to menu of photo galleries. If you open any of the photo galleries you will see that each contains thumbnails. When a thumbnail is clicked, the full-sized version...
2
by: Jensen bredal | last post by:
Hello,I lunch a popup window from an aspx file . The javascript uses window.open . The problem is that the height parameter appears to have a limit and i cannot go below that limit. code below: ...
7
by: anthony.turcotte | last post by:
Hi, I've looked for a solution to this problem on google, read posts in this newsgroup and I still haven't found anything that could help me. Here's the scenario. 1. User accesses...
1
by: K B | last post by:
I don't know if this is an ASP.NET 2.0 issue or not, but I haven't had this happen to me before... When I open a popup window, the font size on the parent window immediately increases to a...
0
by: sarfaraz | last post by:
Hi all, I am writing an application in Struts framework that PostForm that contains a Education details to be filled. for this i have Add button when i click this it opens a pop up window there it...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.