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 > Mac OS X > Website problem with mac OS

Website problem with mac OS
Thread Tools
Fresh-Faced Recruit
Join Date: Jun 2004
Status: Offline
Reply With Quote
Jun 20, 2004, 11:05 AM
 
I have developed a java website on a PC (windows XP) and after sending it to someone who has mac OSX and they say that the particular java I have used to enlarge images doesn't work. Could people w/ macs please check this out and if anyone knows the reason I would be extremely greatful as this is part of promoting my work.

Thanks

Becka
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jun 20, 2004, 11:20 AM
 
This belongs in Web Developer, actually. Either way, there are many people here who'd like to help, but we need a link to your Website first. There's not much we can do if we can't see the problem.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Jun 20, 2004, 11:21 AM
 
Originally posted by blacktears:
I have developed a java website on a PC (windows XP) and after sending it to someone who has mac OSX and they say that the particular java I have used to enlarge images doesn't work. Could people w/ macs please check this out and if anyone knows the reason I would be extremely greatful as this is part of promoting my work.
In order for us to "check this out" you would have to include a link.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Fresh-Faced Recruit
Join Date: Jun 2004
Status: Offline
Reply With Quote
Jun 21, 2004, 05:44 AM
 
sorry I had posted in another forum with the link and so forgot that I hadn't in this one, it's

www.rainstormphotography.co.uk

Becka
     
Professional Poster
Join Date: Oct 1999
Location: Always within bluetooth range
Status: Offline
Reply With Quote
Jun 21, 2004, 08:01 AM
 
Hmmmm .... works fine in gecko browsers (Mozilla, Firefox, & Camino). In Safari and Omniweb, it opens the window but does not resize to the size of the picture. So ... it doesn't appear to be a prob w/OS X as a whole (just its most popular web browser).
     
Fresh-Faced Recruit
Join Date: Jun 2004
Location: Australia
Status: Offline
Reply With Quote
Jun 21, 2004, 10:05 AM
 
As Krusty said, the window's opening fine in Safari but not resizing. In Mac IE, the window's not opening at all for me.

I think the problem is that for some browsers, the image.width and image.height properties aren't known until after the image has actually been displayed on the page. With this in mind, you may be better off replacing the "CaricaFoto" function with something similar to the following (it displays the image, then resizes the window):

Code:
function CaricaFoto(img) { var html = "<html><body topmargin='0' leftmargin='0' marginheight='0' marginwidth='0'>" + "<center><img src='" + img + "' border='0' onLoad='window.resizeTo(this.width+20," + "this.height+20);'></center></body></html>"; var popup = window.open("", "", "width=10,height=10,toolbar=0,location=0," + "directories=0,menuBar=0,scrollbars=0,resizable=1"); popup.document.open(); popup.document.write(html); popup.document.close(); popup.document.focus(); }
This code works all the browsers I've tested so far (Safari, IE, Mozilla, Opera).
(Last edited by ManicMonkey; Jun 21, 2004 at 10:31 AM. )
     
Fresh-Faced Recruit
Join Date: Jun 2004
Location: Australia
Status: Offline
Reply With Quote
Jun 21, 2004, 10:28 AM
 
BTW, your navigation menu (the one with the gold arrow) won't appear in all browsers since you're using "document.all" to display the menu layer. Try using "document.getElementById" instead - "document.all" is only supported by IE.
     
Fresh-Faced Recruit
Join Date: Jun 2004
Status: Offline
Reply With Quote
Jun 21, 2004, 02:34 PM
 
Thanks for help, hopefully it has worked, I have changed everything you guys have said...

Becka
     
Fresh-Faced Recruit
Join Date: Jun 2004
Location: Australia
Status: Offline
Reply With Quote
Jun 21, 2004, 09:53 PM
 
Just a slight change to your code...

It should be - document.getElementById("contents").style.visibili ty="visible";
instead of - document.getElementById.contents.style.visibility= "visible";
     
Fresh-Faced Recruit
Join Date: Jun 2004
Status: Offline
Reply With Quote
Jun 22, 2004, 07:34 AM
 
Thanks have done that now so hopefully it's ok. Can you tell me if this page works also...

www.rainstormphotography.co.uk/newestbc.html

It's supposed to be flash.
Also, is there a way I can make the pop up window full size as it opens, without having to click to resize? I know this is now, probably in the wrong forum...

B
     
Fresh-Faced Recruit
Join Date: Jun 2004
Location: Australia
Status: Offline
Reply With Quote
Jun 23, 2004, 07:23 AM
 
Yup, the flash seems to work fine.

Originally posted by blacktears:
Also, is there a way I can make the pop up window full size as it opens, without having to click to resize?
Are you talking about the pop up code I posted above? Why do you have to click to resize? The window should resize automatically.
     
Fresh-Faced Recruit
Join Date: Jun 2004
Status: Offline
Reply With Quote
Jun 23, 2004, 02:24 PM
 
I meant for the flash cuz when I click on the link to the flash in my emails, it only opens up half the size and the flash starts before the screen is big enough to see it all...

B
     
   
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:56 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