By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,480 Members | 1,164 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,480 IT Pros & Developers. It's quick & easy.

visibility do not work in firefox for mac

P: n/a
Hi

I have two quicktime plugins embedded in a webpage. I want to hide one
and display the other. Then I want to load a movie into the hidden
player. When the first player is finished playing, I hide it, and show
the hidden player.

In IE I do this by setting the z-index of the quicktime objects. This
however do not work in other browsers. Is there a way to stack two
players on top of each other using the z-index with plugins?

I have tried to set the visibility element for other browsers than IE.
In firefox for Win, this works fine. On mac I cannot communicate with
the hidden player. Why?

I can neither communicate with the player if I change its posistion
with javascript.

http://www.media.uio.no/sherlockholm...ugin=quicktime

Oct 31 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
torbs wrote:
Hi

I have two quicktime plugins embedded in a webpage. I want to hide one
and display the other. Then I want to load a movie into the hidden
player. When the first player is finished playing, I hide it, and show
the hidden player.

In IE I do this by setting the z-index of the quicktime objects. This
however do not work in other browsers. Is there a way to stack two
players on top of each other using the z-index with plugins?

I have tried to set the visibility element for other browsers than IE.
In firefox for Win, this works fine. On mac I cannot communicate with
the hidden player. Why?
Which browser on Mac? IE Mac does not understand XML as far as I can
tell (nor does Safari before 1.2 I think) and you seem to be doing
stuff with that in the background.


I can neither communicate with the player if I change its posistion
with javascript.

http://www.media.uio.no/sherlockholm...ugin=quicktime


I tried your page with the following Mac browsers, the video
eventually ran in Firefox though loading seemed very slow and playback
was jerky over a fast ADSL line:

Safari 1.0.3 (OS X 10.2.8), IE 5.2, Opera 8.5, Firefox 1.0.7

Safari 1.0.3 lacks XML support so that causes a lot of errors there,
likely IE 5.2 fails for the same reason.

In Opera I don't get to see the Start button, clicking the stop button
just throws an error. Sometimes I see the broken Quicktime image.

On Windows, Firefox crashed and IE struggled.

Your page has lots of validation errors, in Firefox there was a set of
scrollbars lingering on the right... you have 7 linked script files
plus in-page scripts - sorry, there's too much to track down your issues.

You need to create a very simple test case and post a link to that
(with *short* videos).
--
Rob
Oct 31 '05 #2

P: n/a
I have not used IE for mac, only windows. On every computer with IE
that I have tried my page, it work fine.

If you have trouble with speed. click on the menu item "hastighet" and
push a button with a lesser number.

I also get the scrollbars, they belong to a hidden <div>, why only the
scrollbars show, I do not know. But again it is only in firefox for
mac.

There are only two relevant scriptfiles: generalfunctions.js and
quicktime.js

The function changing the visibility is the changeVisibility-function
in generalfunctions. It call the changePosition function which changes
the position of the player.

The XML is from the XML-forScript Library, and it is not generating
errors.

Firefox only hangs when I try changing the posisiton, or visibility,
not if I try setting the z-index (which do not work, anyway).

What I need is a method to hide the player that is not active.

On mac I used:

Firefox 1.0.6
Safari 2.0.1

I have not yet coded for Opera.

Oct 31 '05 #3

P: n/a
torbs wrote:
I have not used IE for mac, only windows. On every computer with IE
that I have tried my page, it work fine.
Your page has over 100 validation errors, that it works at all is
because of browser error-correction of your invalid code.

Your doctype claims to be XHTML, yet the source appears to be simply
re-badged HTML. If you change to HTML many of your problems will go
away. Fix the remaining markup errors before going an further.

It seems your issues are to do with the document source code rather than
JavaScript, you may get better answers in:

comp.infosystems.www.authoring.html

If you have trouble with speed. click on the menu item "hastighet" and
push a button with a lesser number.

I also get the scrollbars, they belong to a hidden <div>, why only the
scrollbars show, I do not know. But again it is only in firefox for
mac.
You have put a form as a child of a table element - that is invalid
markup in both HTML or XHTML, what the browser does with it is guesswork.

You also have many missing closing TR and TD tags, which is OK in HTML
but invalid in XHTML. Whatever the browser decides to do with them you
can't really complain. There are lots of other errors in regard to
attribute names that are likely trivial but would vanish if you drop the
'X'.

Until the markup is valid, attempting to fix display issues will be
unrewarding.

There are only two relevant scriptfiles: generalfunctions.js and
quicktime.js
Just a suggestion: there are methods for dom, all and layers which
detect in the wrong order - dom will suit the vast majority (98%?) of
browsers yet is always tested last. The least likely candidate, layers,
is tested first.

No biggie but illogical. Have you considered a single function that
handles dom/all/layers and call that rather than repeating the same code
multiple times (6 I think)?

You also assume that dom browsers support the style object on elements.
That may work most of the time, but better to test for style directly
and not assume it is supported because getElementById is.

[...]
Firefox only hangs when I try changing the posisiton, or visibility,
not if I try setting the z-index (which do not work, anyway).

What I need is a method to hide the player that is not active.

On mac I used:

Firefox 1.0.6
Safari 2.0.1


Safari 2.0.1 is only available on Mac OS X 1.4, which would be a
minority of Mac users. Safari is tied to the OS version, you can't
expect Mac-ophiles to update their browser to the latest version (other
than suggesting they use Firefox/Mozilla/Netscape) - but at least you
can allow graceful fall-back.

[...]

--
Rob
Nov 1 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.