Click to See Complete Forum and Search --> : How can I Change Window Sizes?


Skywoolf
07-11-2006, 10:24 PM
I have a project where data is retrieved from muliple tables in MySQL.

It starts with a drop down menu on a section page.
Selecting from the menu takes you to another page with only a drop down menu on it so this page should be small.
Selecting from this menu opens a page with a few lines of text so the window now needs to be a bit bigger.
Selecting from this page takes you to a page with lots of data so it needs to be large, be resizable and have scroll bars.

A complication is that the second and third pages are opened as a result of the form action and post. I am not sure if its possible to get the data for opening a new window in there so the windo size data would probably have to be in the window itself. Possible?

I have been trying for days and getting nowhere but I am feel there should be a simple answer without resorting to complicated Javascripts etc. Most of what I have tried so far has entirely different results in different browsers.

Can anyone please advise me.

felgall
07-12-2006, 01:25 AM
The only windows that you can resize are ones that your page opens. The only way a page can open a new window is using the Javascript window.open() method. Any other method will be browser specific and will therefore only be suitable for intranet use where you know everyone is using the same version of IE.

Skywoolf
07-12-2006, 01:33 AM
Many thanks.

What I want obviously cannot be done but I won't be wasting hours tring to do it :)

I tried some Java scripts but they behaved completely differently in different browsers. If you know a "simple" way for a beginner to do it in Java Script that will work in all common browsers please let me know.

Thanks again

P.S. i don't use IE at all :)