Click to See Complete Forum and Search --> : alternatives to resizeTo() / By () and moveTo (By)...


Pierre Rouillet
02-10-2003, 09:30 PM
hello

Since it seems MSIE / Mac doesn't respond correctly to the usual resizeTo(), resizeBy(), moveTo() and moveBy(), and since the whole project I'm working on depends on moving and scaling popup windows somewhat precisely, I would just love you to give me any idea of some workaround, alternative methods, tricks, to move them goddamn windows. (Unfortunately, Netscape seems to be the only browser that does what it's supposed to in this regard, so I can't go and tell people to use any browser but IE.)
(Maybe I should say what I want. Here it is: I have two very small (100/100px) popup windows next to each other. Clicking into - say- the left one makes this one grow to 500/500 and moves the other as though the growing one would push it aside. Then clicking into the other makes that one grow and the other one shrink (gradually, in like 10 or 15 steps) likewise, still side by side of each other, so now the left border of the right one moves leftwise, as if beeing tracted by the shrinking window on the left. Accordingly, once one of them has been clicked into, the size of the two windows together would always remain at 500/600px (if they aren't displaced manualy).
A bit hard to explain, but a very simple and elegant movement to observe. Once I get it working, I shall love to present it to you.)

thanks so much for any idea.

Pierre

[ps. this goes back to the last thread I started; but since it's a different question now, I thought I'd better start a new thread. I hope that is right.]

Pierre Rouillet
02-10-2003, 09:48 PM
I have to admit that I haven't tested that yet. I thought it bad enough that it won't work on a mac to make me look for alternatives; but of course you are right, it would help to see if the script isn't just ill-put (and Netscape somehow accidentally deals with it right). It's almost 5am over here, so I might not have a chance to check it now. It'll be the first thing tomorrow.

Charles
02-11-2003, 04:52 AM
I would suggest that you do not bother with Mac users here. You have already eliminated everybody who doesn't use JavaScript and everybody who has pop-up blocking. A few more users shaking their heads at your web site will not make much of a difference.

Pierre Rouillet
02-12-2003, 06:57 PM
all right, here we are. took some time, sorry.

Here's what it looks like: both the resizeTo() and the resizeBy() - commands aren't executed correctly by MSIE/MAC, no matter which generation (we went back as far as 4.5). If told to open a new browser window size 100/100, it does so. However, if told to resize it from a larger scale, it only downscales it to about 260/200, regardless of how small the window is supposed to be.
The problem doesn't occur on a PC platform, nor does it occur in any other browser.

If you care, you can see our little experiment on www.form-und-sinn.de/window. The command contains 'resizable=yes'. If it doesn't include that, it won't work in N4.7/mac; it doesn't seem to affect the others.)

Anyway, I wouldn't ignore the malfunction. I thinks there's still too many mac users on IE out there (I may not see why, but that isn't the point.)