Board Logo

Mac/Safari Solution
NathanHein - 11/19/2004 at 04:08 PM

For compatibility with Mac/Safari you need to add the folling line to the scroll.html:
main.style.visibility='hidden';

It needs to be added at the begining of the init() function. It should be around line 66 where it goes.

Example:
66. function init(n_2measure) {
67. main.style.visibility='hidden';
68. var b_fl = true, e_frm, k = 0, i;
69. if (n_2measure != null)
70. items[n_2measure].height = vertical ? o_cont.offsetHeight : o_cont.offsetWidth;
71. for (i = n_num - 1; i >= 0; i--) if (!items.height) {

The credit for this fix goes to David Simmer, fivecentdesign[AT]f2o.org . Thanks David!


fivecentdesign - 12/13/2004 at 03:24 PM

Glad it was useful to you as well. How'd you come across my fix?


bopp - 9/9/2005 at 10:28 PM

so then do you remove the

main.style.visibility='visible';

line further down in the function?


simmerdown - 11/17/2005 at 02:21 AM

Quote:
Originally posted by bopp
so then do you remove the

Code:
main.style.visibility='visible';


line further down in the function?


Stays as it is. You can see a working example on the site where I developed the fix: view the source of www.normandale.edu/js/tigraScroller/scroll.cfm?type=

The relevant code won't be at line 66 anymore, but you'll find it. Hope you were able to figure it out ...

David (formerly known as "fivecentdesign")


simmerdown - 11/17/2005 at 02:22 AM

www.normandale.edu/


reflib - 1/31/2007 at 01:59 PM

My library purchased a web template created by a third party company. The template includes the Tigra scroller, which works wonderfully well -- except when viewed via a Mac/Safari browser. I inserted the code to repair this problem precisely as described in the messages above -- but it is still not visible via Safari. (The website can be viewed at www.tplibrary.org.)

Have I done something wrong in the way I implemented the "fix"?

Note that the version of TS used in our website is 1.4. Is this version too old for the "fix" to work?


mccooch - 9/18/2009 at 05:30 PM

Is David still around for more Safari fixes?


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/