Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > pOP-uP'S in IE5

pOP-uP'S in IE5
Thread Tools
Fresh-Faced Recruit
Join Date: Jul 2001
Status: Offline
Reply With Quote
Jul 7, 2001, 09:38 AM
 
Hi all -- I'm a windows guy seeking Mac wisdom. For a photographer's website, I'm using standard javascript pop-up windows for enlargements. You click a thumbnail and the enlargement opens in a new window defined to the image dimensions. Everything is groovy until somebody views the site with IE on a Mac. On IE for Mac, the pop-up window opens larger than the image, even though both are defined to the same pixel dimensions. THIS HAS BEEN DRIVING ME NUTS!!! *sorry for shouting*

So my latest theory about it is that Microsoft's 'Tasman' rendering engine in IE 5, which tries to imitate the dominant Windows 96ppi by tweeking Mac's native 72ppi environment, is causing my pop-up windows to scale up slightly. Make any sense? IE adds space to the right side and bottom of the image so that my background wallpaper shows through, which is very distracting. IE uses the 96ppi thing as a default and you can turn it off in preferences.

First I need to confirm that this is the source of the problem and then I need to come up with a work-around. I can detect the browser but I'm not sure about detecting the user setting.

I would really appreciate any insight you guys have to offer. If I'm way off base and the issue is some other silly thing, please let me know. You can see the problem here: http://www.lancestaedler.com

Thanks
     
Mac Elite
Join Date: Oct 2000
Location: Ferndale, MI
Status: Offline
Reply With Quote
Jul 7, 2001, 10:42 AM
 
Ran into the same problem. If you're running Dreamweaver, there is an Extension called "JustSo Picture Window" that seemed to fix the problem. You can see it in work at my site http://www.screamingfit.com .

If you don't have Dreamweaver and want the actual js that does this, let me know and I can email you the actual js file that is created.

-s'fit
"I have a lot of nightmares and I poop too much." ~Beavis
     
Dedicated MacNNer
Join Date: Oct 2000
Location: Copenhagen, Denmark
Status: Offline
Reply With Quote
Jul 10, 2001, 04:50 AM
 
I have also tried to solve that problem, but could only do it using browser specific code. I am, though, pretty sure it has nothing to do with the dpi environment.

Peter
     
owendy  (op)
Fresh-Faced Recruit
Join Date: Jul 2001
Status: Offline
Reply With Quote
Jul 11, 2001, 08:31 AM
 
Okay, I finally solved the problem. The extra space along the right side and the bottom of the window is there for SCROLLBARS, even though no scrollbars are present! The solution is simply to specify scrollbars=no in the script.

I was a bit shocked when I finally figured this out. All the javascript tutorials I've read say that if you don't specify a window feature in a pop-up window script, the default is 'no'. If you don't ask for scrollbars or resize handles, you won't get any. If you don't specify any window features at all, you get a plain window. This is how it works with Netscape on both platforms, and with Internet Explorer on Windows. But it seems that IE on the Mac is a little different.

Conclusion: for full cross-browser compatibility, you should specify all the window features and explicitly turn off the ones you don't want.

Thanks for your replies, guys.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:43 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2