473,466 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem calling embedded object methods from an user-defined object - FF

I have an defined an object with a method called loadMovie that use a
method - SetUrl- in an embedded quicktime object. It is embedded using
the object tag, but I have also tried the embed tag.

The problem is this. Although Firefox recognise the quicktime object as
a HTMLObjectElement, it does not give me access to it methods from
within my object. I have created a seperate function and when I in that
function type document.movieSetUrl(url) it works OK, but in my
user-defined object it do not allow me access to the methods in the
quicktime plugin. I can however alter styles etc.

Anyone know how I can access the embedded objects methods from within
an user-defined object in Firefox. (It works in Internet Explorer)

Tor

Apr 21 '06 #1
1 2503
ASM
torbs a écrit :
I have an defined an object with a method called loadMovie that use a
method - SetUrl- in an embedded quicktime object. It is embedded using
the object tag, but I have also tried the embed tag.

The problem is this. Although Firefox recognise the quicktime object as
a HTMLObjectElement, it does not give me access to it methods from
within my object. I have created a seperate function and when I in that
function type document.movieSetUrl(url) it works OK, but in my
user-defined object it do not allow me access to the methods in the
quicktime plugin. I can however alter styles etc.

Anyone know how I can access the embedded objects methods from within
an user-defined object in Firefox. (It works in Internet Explorer)


usually this below works on my Fx :

<a href="#" onclick="document.mysound1.Play()">play sound 1</a>
<object id="mysound1" blah>
<param
<embed
name="mysound1"
src=" ...
</embed>
</objct>
If not, you can try to specify witch element you address to :

function callQT(obj) {
obj = document.all? document.all.obj :
document.embeds? document.embeds[obj] :
document.obj;
return obj;
}

<button onclick="callQT('sound1').movieSetUrl('../sounds/zick1.mid');">
music 1
</button>

<object id="sound1" blah cassiid and all that>
<param ...
<param ...
<embed
name="sound1"
src=" ....
</embed>
</object>

--
Stephane Moriaux et son [moins] vieux Mac
Apr 22 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Phil | last post by:
Hi, I have a client/server app. that uses a windows service for the server and asp.net web pages for the client side. My server class has 3 methods that Fill, Add a new record and Update a record....
2
by: Kent Lewandowski | last post by:
hi all, Recently I wrote some stored procedures using java jdbc code (admittedly my first stab) and then tried to implement the same within java packages (for code reuse). I encountered...
7
by: Zachary Hilbun | last post by:
The below is some test code to help me learn how to update a dataset. It is supposed to read the value of UserCounter and write it back. The UserCounter is being read correctly as 0, is 1 when...
3
by: fumihiko | last post by:
Hi, I created an activex control (C++), and it uses another COM dll (C++). This COM dll links with a static library that dose some calculation. (both are debug multithreaded dll) I created a...
8
by: Nadav | last post by:
Hi, Introduction: ********************* I am writing a mixed mode application I have a COM module and a .NET module that communicate with each other. The COM exposes a custom sink interface,...
59
by: Jeff Bowden | last post by:
For ease of configuration and other reasons, I would like for my single-user GUI app to be able to use postgresql in-process as a library accessing a database created in the users home directory. ...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
21
by: cmd | last post by:
I have code in the OnExit event of a control on a subform. The code works properly in this instance. If, however, I put the same code in the OnExit event of a control on a Tab Control of a main...
0
by: YellowFin Announcements | last post by:
Whitepaper: "Yellowfin Reporting" enables Embedded Business Intelligence -------------------------------------------------------------------------------- Embedded reports are a standard...
2
by: ccarter45 | last post by:
I guess I really don't have a good understanding of methods, it's really confusing for me. I'm not asking anyone to solve this for me, but any help would be GREATLY appreciated. This is the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.