473,386 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 1643

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: gilgamesh | last post by:
Hi there, What's a good tool to use for debugging ASP pages which contain bunch of javascripts? Thanks, Gilgamesh
2
by: Steve Anderson | last post by:
Please excuse my ignorance as I'm fairly new to ASP. We have IIS running on Win2000 and serving out an ASP application. I installed the script debugger tonight. IE6 on the machine has Disable...
4
by: Matt | last post by:
For debugging javascript purposes, should we ensure the following check boxes (1-3) are checked. In IE browser, tools->Internet Options->Advanced Under Browsing, 1) disable script debugging...
385
by: Xah Lee | last post by:
Jargons of Info Tech industry (A Love of Jargons) Xah Lee, 2002 Feb People in the computing field like to spur the use of spurious jargons. The less educated they are, the more they like...
1
by: Johann Blake | last post by:
My ASP.NET application is written using C# script as well as C# code-behind. After setting a breakpoint in the script and running the application, I click from one page to the next but when I...
4
by: gemel | last post by:
I am trying to debug the client script of a CustomValidator, but VS seems to ignore it completely. This is waht I do: Enable script debugging in Internet Explorer Launch the page from Internet...
14
by: John M | last post by:
Hello, In Microsoft Visual Studio .NET 2003, How can I debug javascript/vbscript codes (client side) ? Thanks :)
13
by: Arne Garvander | last post by:
Sometimes I get an exception in the browser and I get prompted to start Visual Studio 2005 for debugging. Sometimes I would like to start client side debugging on demand. How can I do that? --...
2
by: jbowers | last post by:
I have a very long text string of numbers and some javascript code that is supposed to be used to manipulate it. I am trying to "decode" this string (represented as the variable "v" in the code...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.