Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Why Won't This Work on Mac OSX?

Reply
Thread Tools

Why Won't This Work on Mac OSX?

 
 
KZ8RT3
Guest
Posts: n/a
 
      02-28-2007
Hey all,

There is some java code on a website that will not work on Mac OSX using
Safari, Firefox, Camino, and Explorer and was wondering if anyone here
knew if there was a fix. It is a floating button. It shows up but it is
supposed to move with the window when you scroll down and I clicking on
the menu item does not work. See the code below. Let me know if there is
another function or script you need to see.

//code for floating buttons
var offSet = 15,tab=1;

window.onScroll = timeButtons();


function showButtons(){
if(top.name == "new"){
document.all('floatB').style.visibility = 'visible';
} else{
document.all('floatB').style.visibility = 'hidden';
}

timeButtons();
}


function timeButtons(){
window.setInterval("moveButtons()",20);
}


function moveButtons(){
try {
var dif = parseInt((document.body.scrollTop+offSet -
document.all.floatB.offsetTop)*.1);
document.all.floatB.style.pixelTop += dif;

document.all("search").style.visibility = "visible";
document.all("download").style.visibility = "visible";
} catch (e) {
// do nothing, just prevent error message
}
}



function Map() {
document.SmallSub.action = "/Search/MapSql.asp";
document.SmallSub.target ="asp";
GenSql();
document.SmallSub.target ="_self";
top.main.SearchFrame.document.FormOne.Search1.valu e="Search"; //
enable searching
}



function GenSqlDownload(){
document.SmallSub.action = GetDownloadAction();
GenSql();
}


function GenSqlCount(){
document.SmallSub.action = "Scripts/Count/Count.asp";
GenSql();
}


function Srh(){
document.SmallSub.action = "/"+GetSearchPath() + "Scripts/Srh.asp";
GenSql();
}

function clearMapBB() {
top.main.SearchFrame.document.all("LongitudeMin"). value = "";
top.main.SearchFrame.document.all("LongitudeMax"). value = "";
top.main.SearchFrame.document.all("LatitudeMin").v alue = "";
top.main.SearchFrame.document.all("LatitudeMax").v alue = "";
parent.SearchFrame.document.all("MapShapeSearch"). value = "";
//Polygon/Circle Search VI# 89013 RAP
ButtonInit();
}

function ClearAll() { //clear form AND clear advanced search

////////////////////////////////////////////////////////
////This code clears the advanced search
for(var b=0; b<document.FormOne.Area.length;b++){
document.FormOne.Area.options[b].selected=false;
}
for(var i=0; i<document.FormOne.SubArea.length;i++){
document.FormOne.SubArea.options[i].selected=false;
}

document.FormOne.AdvancedSearch.value = '';
document.FormOne.Area.value='all';
document.FormOne.SubArea.value='all';


////////////////////////////////////////////////////////
/////This code clears the rest of the form
document.FormOne.reset();
document.FormOne.ListStatus.options[1].selected = true;
}

function ButtonInit(newTab) {
var clearMap = ''

if (typeof(newTab)!='undefined') {tab = newTab;}

if (top.main.SearchFrame.document.all("LongitudeMin") .value != "") {
clearMap = '<tr>'
+'<td bgcolor="#d6c6bd"><font face="arial">'
+'<a ONCLICK="clearMapBB()" style="cursor: hand;"
align="absbottom">Map Clear</a></font></td></tr>'
}

top.main.SearchFrame.document.all("floatB").innerH TML = '<table
border="0" cellpadding="2" cellspacing="0" bgcolor="#996666">'
+'<tr height="10">'
+' <td height="10"></td></tr>'
+'<tr>'
+' <td bgcolor="#d6c6bd"><font face="arial">'
+' <a ONCLICK="Srh();" NAME="Search1" style="cursor: hand;"
align="absbottom" border="0">Search</a></font></td></tr>'
+'<tr>'
+' <td bgcolor="#d6c6bd"><font face="arial">'
+' <a ONCLICK="GenSqlCount();" style="cursor: hand;"
align="absbottom">Statistics</a></font></td></tr>'
+'<tr>'
+' <td bgcolor="#d6c6bd"><font face="arial">'
+' <a ONCLICK="GenSqlDownload()" style="cursor: hand;"
align="absbottom">Download</a></font></td></tr>'
+'<tr>'
+' <td bgcolor="#d6c6bd"><font face="arial">'
+' <a ONCLICK="DoMap()" style="cursor: hand;"
align="absbottom">Map</a></font></td></tr>'
+clearMap
+'<tr>'
+' <td bgcolor="#d6c6bd"><font face="arial">'
+' <a ONCLICK="SaveAsCustom()" style="cursor: hand;"
align="absbottom">Save as <br>Custom</a></font></td></tr>'
+'<tr>'
+' <td bgcolor="#d6c6bd"><font face="arial">'
+' <a ONCLICK="ClearAll();" style="cursor: hand;"
align="absbottom">Clear</a></font></td></tr>'
+'<tr height="10">'
+' <td></td></tr>'
+'</table>'

top.menu.tabsready=true;
top.menu.changeVariable('QSearch');
top.menu.activateCell(tab);
window.setInterval("moveButtons()", 20);
}
 
Reply With Quote
 
 
 
 
Daniel Dyer
Guest
Posts: n/a
 
      02-28-2007
On Wed, 28 Feb 2007 21:59:23 -0000, KZ8RT3 <(E-Mail Removed)> wrote:

> Hey all,
>
> There is some java code on a website that will not work on Mac OSX using
> Safari, Firefox, Camino, and Explorer and was wondering if anyone here
> knew if there was a fix. It is a floating button. It shows up but it is
> supposed to move with the window when you scroll down and I clicking on
> the menu item does not work. See the code below. Let me know if there is
> another function or script you need to see.
>
> //code for floating buttons
> var offSet = 15,tab=1;
>
> window.onScroll = timeButtons();


Despite the confusing similarity in names, Java and Javascript are two
very different things. You'll have more success posting this on
comp.lang.javascript.

Dan.

--
Daniel Dyer
https://watchmaker.dev.java.net - Evolutionary Algorithm Framework for Java
 
Reply With Quote
 
 
 
 
Paul Tomblin
Guest
Posts: n/a
 
      02-28-2007
In a previous article, KZ8RT3 <(E-Mail Removed)> said:
>Hey all,
>
>There is some java code on a website that will not work on Mac OSX using
>Safari, Firefox, Camino, and Explorer and was wondering if anyone here


What you posted was Javascript, not Java. Wrong newsgroup.


--
Paul Tomblin <(E-Mail Removed)> http://blog.xcski.com/
Did you know that "Gullible" is not in the dictionary?
 
Reply With Quote
 
KZ8RT3
Guest
Posts: n/a
 
      02-28-2007
In article <(E-Mail Removed)>,
"Daniel Dyer" <"You don't need it"> wrote:

> On Wed, 28 Feb 2007 21:59:23 -0000, KZ8RT3 <(E-Mail Removed)> wrote:
>
> > Hey all,
> >
> > There is some java code on a website that will not work on Mac OSX using
> > Safari, Firefox, Camino, and Explorer and was wondering if anyone here
> > knew if there was a fix. It is a floating button. It shows up but it is
> > supposed to move with the window when you scroll down and I clicking on
> > the menu item does not work. See the code below. Let me know if there is
> > another function or script you need to see.
> >
> > //code for floating buttons
> > var offSet = 15,tab=1;
> >
> > window.onScroll = timeButtons();

>
> Despite the confusing similarity in names, Java and Javascript are two
> very different things. You'll have more success posting this on
> comp.lang.javascript.
>
> Dan.


Whoops! See, I have no idea. Thanks!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting 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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why won't this javascript work on Mac OSX? KZ8RT3 Java 1 02-28-2007 11:15 PM
why why why why why Mr. SweatyFinger ASP .Net 4 12-21-2006 01:15 PM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
why why why does function not work Horace Nunley ASP .Net 1 09-27-2006 09:52 PM
Senseless rendering: Mac.Mozilla != Mac.Netscape6.01 ?!?! Roman =?ISO-8859-15?Q?Bl=F6th?= HTML 1 07-02-2003 10:23 AM



Advertisments