473,396 Members | 1,826 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,396 software developers and data experts.

visibility do not work in firefox for mac

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

Similar topics

12
by: lawrence | last post by:
The following function correctly makes everything invisible but then fails to turn the one chosen DIV back to visible. I imagine I'm getting the syntax of the variable wrong? I've tried this with...
4
by: lawrence | last post by:
Can anyone tell me why this code works in Netscape 7.1 but not in IE??? <SCRIPT type='text/javascript'> function makeVisible(nameOfDiv) {...
4
by: jmensch | last post by:
I'm reasonably new to JavaScript and DHTML, so I'm sorry if this is an obvious mistake. The following snippet of code is intended to make the menu -- the absolute-positioned <div> section --...
3
by: dwilson | last post by:
Hi Folks, I am having a strange Javascript issue. I have a div that I show and hide by clicking on an image link, and all images within the div do not show up in IE. FireFox does not give me...
1
by: BIOSMonkey | last post by:
I am trying to develop a drop down menu control. I know there are many other scripts out there but I need to develop our own in house for licensing purposes. Anyway, I am in the beginning stages...
1
by: giangiammy | last post by:
hi all, switching from firefox 1.07 to 1.5.0.3 (linux version) I got errors on a javascript page: error in parsing value for property 'visibility'. Declaration dropped. the proble should be...
2
by: Steve JORDI | last post by:
Hi, I have a strange problem using Internet Explorer. My page has a table included in a <DIV> I have a checkbox that shows the div when checked and hides it when unchecked. var division =...
1
by: cleancode | last post by:
Suppose I have a Parent DIV element and I dynamically add DIV's inside it (Children) using appendChild. It works . But if I were to now set the visibility of the Parent DIV to Invisible, although...
4
by: Randell_D | last post by:
Folks, I've put my page online here at www.fiprojects.com / wip / (Note: I purposely separated the entire address to avoid spiders having a sniff and... *And* before you ask why I am doing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.