471,108 Members | 1,687 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,108 software developers and data experts.

need help debugging opensource script on Mac IE

I have a GNU licensed Javascript slideshow script:
http://slideshow.barelyfitz.com/

Recently some users have complained about problems in Mac IE; unfortunately
I don't have a Mac system that I can test. It runs cleanly on Windows IE
and Mozilla.

Is anyone willing to take a look at this?
Your fellow Mac users will thank you. :)
--
Patrick Fitzgerald - pa*@barelyfitz.com
BarelyFitz Designs - http://www.barelyfitz.com/
Jul 20 '05 #1
6 1580

"Patrick Fitzgerald" <pa*@barelyfitz.com> wrote in message
news:Xn**********************@216.77.188.51...
| I have a GNU licensed Javascript slideshow script:
| http://slideshow.barelyfitz.com/
|
| Recently some users have complained about problems in Mac IE;
unfortunately
| I don't have a Mac system that I can test. It runs cleanly on Windows IE
| and Mozilla.

Have you tried Opera and Netscape as well?

I see one problem at a glance. The innerHTML reference is used without
checking if it is supported. This is bad news for a lot of agents. My own
slideshow works on Mac IE, but as I recall, it required some careful object
detection to make it work (Mac IE is one of the strangest animals out
there.)

Usual suspects are things dealing with filters (BTW, your slideshow will
lose transitions for non-IE browsers if it uses filters), plugins, audio,
etc. Only the first one applies here based on a quick glance at the script.

You can make your slideshow work with transitions in Gecko based browsers
with the moz-opacity style (search Google for examples.) Your dynamic
document must hide this style from everything BUT Gecko. How to do that is
left as an exercise.

|
| Is anyone willing to take a look at this?
| Your fellow Mac users will thank you. :)
| --
| Patrick Fitzgerald - pa*@barelyfitz.com
| BarelyFitz Designs - http://www.barelyfitz.com/
Jul 20 '05 #2
"Nobody" <no**@nope.net> wrote in message
news:bK******************@fe3.columbus.rr.com...
<snip>
with the moz-opacity style (search Google for examples.)
Your dynamic document must hide this style from
everything BUT Gecko. How to do that is left as an
exercise.


Why? The CSS specification clearly states that unrecognised properties
are to be ignored by conforming implementations. It might be necessary
to hide the CSS from dubious implementations like Netscape 4 but there
are plenty of CSS based methods for achieving that.

Richard.
Jul 20 '05 #3
IE is highly dubious as well. You absolutely cannot hide everything you
need to hide with CSS tricks involving comments and the like. Server-side
script is needed.

"Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote in message
news:bj*******************@news.demon.co.uk...
| "Nobody" <no**@nope.net> wrote in message
| news:bK******************@fe3.columbus.rr.com...
| <snip>
| >with the moz-opacity style (search Google for examples.)
| >Your dynamic document must hide this style from
| >everything BUT Gecko. How to do that is left as an
| >exercise.
|
| Why? The CSS specification clearly states that unrecognised properties
| are to be ignored by conforming implementations. It might be necessary
| to hide the CSS from dubious implementations like Netscape 4 but there
| are plenty of CSS based methods for achieving that.
|
| Richard.
|
|
Jul 20 '05 #4
"Nobody" <no**@nope.net> wrote in message
news:sc*******************@fe1.columbus.rr.com...
IE is highly dubious as well. You absolutely cannot hide
everything you need to hide with CSS tricks involving comments
and the like. Server-side script is needed.


A server-side script stands less chance of determining the quality of
client side CSS support than it has of working out what software is
operating at the client end.

Richard.
Jul 20 '05 #5
"Nobody" <no**@nope.net> wrote in
news:bK******************@fe3.columbus.rr.com:

| http://slideshow.barelyfitz.com/

Have you tried Opera and Netscape as well?
Yes, no problems in Opera or Netscape 4.8
I see one problem at a glance. The innerHTML reference is used
without checking if it is supported. This is bad news for a lot of
agents.
Thanks for catching that. I think at one point I checked like this:

if (r.innerHTML)

but that caused a problem when innerHTML was set to "". I guess I'll have to
check like this:

if (typeof r.innerHTML != 'undefined')

I don't know if this will solve my Mac problem though.
My own slideshow works on Mac IE, but as I recall, it
required some careful object detection to make it work (Mac IE is one
of the strangest animals out there.)
So it would seem.

Usual suspects are things dealing with filters (BTW, your slideshow
will lose transitions for non-IE browsers if it uses filters),
plugins, audio, etc. Only the first one applies here based on a quick
glance at the script.


Yeah, I just added the IE filters on request; I'll eventually add a cross-
browser solution.

Thanks again.
--
Patrick Fitzgerald - pa*@barelyfitz.com
BarelyFitz Designs - http://www.barelyfitz.com/
Jul 20 '05 #6
I pass it the DOM-indicated UA string. After that it is all based on
empirical evidence (testing on numerous browser/platforms.) Clearly CSS
support is different across different platforms and browser versions and the
only way to keep track of such things is with a database. It is an
imperfect world with lots of imperfect browsers and this is an imperfect
method, but effective enough to be quite practical. If half of the web
sites out there competently supported NS, IE, Moz and Opera (and okay throw
in Konquerer) across Windows, Mac and Unix, things would be 1000% better
than they are today (where most sites don't seem to support anything well.)
If half of them could learn to suppress tables when confronted with cell
phones (well, mine anyway) then we would really be getting somewhere. I
have a tool that can make all of them at least this good (ASP based, watch
for it soon!) So call me crazy!

"Richard Cornford" <Ri*****@litotes.demon.co.uk> wrote in message
news:bj*******************@news.demon.co.uk...
| "Nobody" <no**@nope.net> wrote in message
| news:sc*******************@fe1.columbus.rr.com...
| >IE is highly dubious as well. You absolutely cannot hide
| >everything you need to hide with CSS tricks involving comments
| >and the like. Server-side script is needed.
|
| A server-side script stands less chance of determining the quality of
| client side CSS support than it has of working out what software is
| operating at the client end.
|
| Richard.
|
|
Jul 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by gilgamesh | last post: by
2 posts views Thread by Steve Anderson | last post: by
385 posts views Thread by Xah Lee | last post: by
4 posts views Thread by gemel | last post: by
14 posts views Thread by John M | last post: by
13 posts views Thread by Arne Garvander | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.