Click to See Complete Forum and Search --> : MAC OS problems
DrBravado
03-24-2003, 03:15 PM
I have just built a very lovely database using the mac platform for MGI. A dynamic script that can be incorparated into the page. And i found one, from Javascript.internet.com but i cannot get it to run on the MAc's i have, does anyone know about possible issue with the JS scripts on MAC platform?:confused:
havik
03-24-2003, 03:58 PM
Which script is it? Maybe I can find the error. But there's all kinds of issues with Mac, IE and javascript.
In case, take a look at this page for your problem:
http://www.experts-exchange.com/Web/Browser_Issues/
It might be there.
Havik
DrBravado
03-24-2003, 04:06 PM
The Code for the page is
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>William Ahearns Site</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function CaricaFoto(img){
foto1= new Image();
foto1.src=(img);
Controlla(img);
}
function Controlla(img){
if((foto1.width!=0)&&(foto1.height!=0)){
viewFoto(img);
}
else{
funzione="Controlla('"+img+"')";
intervallo=setTimeout(funzione,20);
}
}
function viewFoto(img){
largh=foto1.width+0;
altez=foto1.height+0;
stringa="width="+largh+",height="+altez;
finestra=window.open(img,"",stringa);
}
// End -->
</script>
<link href="ahearn2.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#636363" ><TABLE WIDTH="400" BORDER="0" ALIGN="center" CELLPADDING="10" CELLSPACING="0" valign="top">
<mgiSet name="column">1</mgiSet>
<TR>
<mgiSearchDatabase databaseName="southseas" orderbyField="picturenumber" reverseOrder="yes">
<TD ALIGN="center" valign="top"><a href="javascript:CaricaFoto('img/&mgiDBFieldlargefilename;')"><IMG SRC="images/&mgiDBFieldfilename;" BORDER="0" WIDTH="100" height="100"><br>
&mgidbfieldimagename;<br>
&mgidbfielddesc;</a></TD>
<mgiIncrement variableName="column" value="1">
<mgiIf lhs={mgiGet name="column"} relationship="=" rhs="900">
<orderByField="picturenumber" reverseOrder="Yes">
<mgiSet name="column">1</mgiSet>
</TR><TR>
</mgiIf>
</mgiSearchDatabase>
</TR>
</TABLE>
</body>
</html>
This page can be found in the Iframe of This page (http://www.ahearnarts.com/database/southseas.html)
Thank you for looking at my problem.
havik
03-24-2003, 04:26 PM
What is happening when you run the code? Do errors pop up? If so what errors are they? The more info the better.
Havik
DrBravado
03-25-2003, 09:52 AM
Well in MAC OS 9 using Internet Explorer 5, you click on the images and.... nothing happens, it appears to be loading them and then nothing changes, no new window pop's up it doesn't even change the original window. No errors or anything with the page, it makes no comments on JS error or anything. Did you look at the page? What did you think? any suggestions?
Thanks so much
havik
03-25-2003, 10:56 AM
Unfortunately I do not have a mac so I cannot directly test the code:
There may be issues with the declaration of the img. Putting a ../ before img ('../img/imagename.gif') would make the img URL relative. It shouldn't be the issue but Mac might see it differently.
Doing a search has revealed that Mac IE has issues with the window.open() function. The following is a link to a script that works for Macs. This script opens windows much like window.open(). I'm aware that this is a drawback to simply using window.open() but this works.
http://javascript.about.com/library/scripts/blpopwindow.htm
One last thing, I read that simply calling the window.open() function twice helped correct a few issues.
function viewFoto(img){
largh=foto1.width+20;
altez=foto1.height+20;
stringa="width="+largh+",height="+altez;
finestra=window.open(img,"",stringa);
finestra=window.open(img,"",stringa);
}
I hope some of this works.
Havik
DrBravado
03-25-2003, 12:21 PM
Well i will try all those things, however in a quick look at the code for the Mac IE pop ups it doens't look like it will be possible for me to intergrate the database. Well if you have any thoughts on that i would appeacaite it. The putting the code in twice helped quite about with picture loading. Thanks alot, well just be glad you don't have a MAC more Web designer kill themselves when trying to work on both platforms, They just don't go together.