473,657 Members | 2,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE error when trying to use plugin methods

I am trying to use the methods in quicktimes plugin, but IE generetes
an error. I have tried to use the "document.a ll" instead of
getElementById but the results remain the same. It won't recognise
"movie1" and "movie2" as objects, and it won't allow me to use their
methods.

And of course IE generates an error message that says nothing about
what might be wrong.

Another problem with this code is that I cannot get the lenght of the
movie because it is streamed with rtsp. Any suggestions?

Here is my code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=is o-8859-1"
/>
<script language=JavaSc ript" type="text/javascript">

var movieEnd;
var movieNow;

</script>

<style type="text/css">
<!--

#movie1 {
position:absolu te;
top:20px;
left:20px;
visibility:hidd en;
}
#movie2 {
position:absolu te;
top:20px;
left:20px;
visibility:visi ble;
}

-->

</style>
</head>
<body>
<form1><OBJEC T
classid="clsid: 02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab"
width="320" height="256" id="movie2"
<PARAM name="src" value="L1M1.mov ">
<PARAM name="autostart " value="false">

<EMBED HEIGHT=256 WIDTH=320
SRC="L1M1.mov"

TYPE="video/quicktime"
PLUGINSPAGE="ww w.apple.com/quicktime/download"

NAME="movie2" autostart="fals e">
<EMBED />
</OBJECT>

<OBJECT
classid="clsid: 02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab"
width="320" height="256" id="movie1" >
<PARAM name="src" value="L1M1.mov ">
<PARAM name="autostart " value="false">
<EMBED HEIGHT=256 WIDTH=320
SRC="L1M1.mov"
TYPE="video/quicktime"
PLUGINSPAGE="ww w.apple.com/quicktime/download"

NAME="movie1" autostart="fals e">
<EMBED />
</OBJECT>
</form1>

<script language=JavaSc ript" type="text/javascript">
<!--

function changeVisibilit y(id,action) {
var objId = id;
switch (action) {
case "show":
document.form1. getElementById( ''+id+'').style .visibility.toL owerCase()
= "visible";}
case "hide":
document.form1. getElementById( ''+id+'').style .visibility.toL owerCase()
= "hidden";

default:return;
}
return;

}
function changePosition( id,x,y) {
document.form1. getElementById( ObjId).style.le ft = x+"px";
document.form1. getElementById( ObjId).style.to p = y+"px";
}

/* define function that calls QuickTime's "Play" method */
function PlayIt(id)
{
if (id=="movie1") {
document.form1. movie1.Play();
} else if (id=="movie2") {
document.form1. movie2.Play();
}

}

/* define function that calls QuickTime's "Stop" method */
function StopIt(anObj)
{
if (id=="movie1") {
document.form1. movie1.Stop();
} else if (id=="movie2") {
document.form1. movie2.Stop();
}

}
function changeIfEnd(id) {
if (id=="movie1") {
while (document.form1 .movie1.GetPlug inStatus() == "Loading") {}

var movieEnd =document.form1 .movie2.GetEndT ime();
var movieNow =document.form1 .movie2.GetTime ();
} else if (id=="movie2") {

while (document.fomr1 .movie2.GetPlug inStatus() == "Loading") {}
var movieEnd =document.form1 .movie2.GetEndT ime();
var movieNow =document.form1 .movie2.GetTime ();
}

timeUntilSwitch = setTimeout("swi tchMovie()",(mo vieEnd-movieNow);

}

function switchMovie() {
PlayIt('movie1' );
for (var i = 1; i <= 10000; i++) {}
changeVisibilit y('movie1','sho w');
changeVisibilit y('movie2','hid e');

}

//-->
</script>

<P style="position :absolute;
top:400px;
left:200px;">
<br> <a href="javascrip t:PlayIt('movie 2');" onclick="change IfEnd('movie2') ;"PlayIt</a><br>

<a href="javascrip t:StopIt('movie 2');">StopIt</a><br>
</P>

</body>
</html>

Oct 13 '05 #1
1 1401
> "torbs" <to********@gma il.com> wrote:
news:11******** **************@ f14g2000cwb.goo glegroups.com.. ..

I am trying to use the methods in quicktimes plugin, but IE generetes
an error. I have tried to use the "document.a ll" instead of
getElementById but the results remain the same. It won't recognise
"movie1" and "movie2" as objects, and it won't allow me to use their
methods.

And of course IE generates an error message that says nothing about
what might be wrong.
Another problem with this code is that I cannot get the lenght of the
movie because it is streamed with rtsp. Any suggestions?

Here is my code:
<snip>


line 7 column 1 - Warning: <script> unexpected or duplicate quote mark
line 37 column 1 - Warning: inserting missing 'title' element
line 41 column 1 - Error: <form1> is not recognized!
line 41 column 1 - Warning: discarding unexpected <form1>
line 41 column 8 - Error: <object> missing '>' for end of tag
line 72 column 1 - Warning: discarding unexpected </form1>
line 76 column 2 - Warning: <script> unexpected or duplicate quote mark

Error: syntax error Line: 85
Source Code: case "hide":
Expected '}'

See if any of this info helps

--
BootNic Thursday, October 13, 2005 12:47 PM

Our earth is degenerate in these latter days; bribery and corruption are common; children no longer
obey their parents; and the end of the world is evidently approaching.
*Assyrian clay tablet 2800 B.C.*
Oct 13 '05 #2

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

Similar topics

9
2507
by: torbs | last post by:
Hi I am creating a page for stretchfilm. In this page you can chose between a short medium and long version of the film at any point in the film. It is in norwegian, but just press play. URL: http://www.media.uio.no/sherlockholmes/main.php?plugin=quicktime&hastighet=lav
0
1744
by: philipp | last post by:
I have the following problem: My client application (c#, WindowsForms) uses the IE Browser ActiveX Control to display either HTML or PDF files. This is fine so far. If the Acrobat Reader is configuered appropriately, the pdf-Files are displayed right in that Browser Control. Only problem is, when closing the Application there is a memory access violation. It occurs outside of my application, only when its Thread is just about to...
0
884
by: Vasco Lohrenscheit | last post by:
Hello, in the following situation the wrong virtual method gets called: ----------------------------------------------------- //assembly1 #include "../Plugin/iPlugin.h" //ISO c++ type iPlugin public __gc class PluginGUI : public System::Windows::Forms::Form { virtual iPlugin* plugin();
8
9449
by: Razak | last post by:
Hi, I have a class which basically do Impersonation in my web application. From MS KB sample:- ++++++++++++++++++++code starts Dim impersonationContext As System.Security.Principal.WindowsImpersonationContext Dim currentWindowsIdentity As System.Security.Principal.WindowsIdentity
2
2785
by: Edvard Majakari | last post by:
Hi, My idea is to create a system working as follows: each module knows path to plugin directory, and that directory contains modules which may add hooks to some points in the code. Inspired by http://www.python.org/pycon/2005/papers/7/pyconHooking.html I would create a class like this:
4
8003
by: Gary | last post by:
Hi, I get this error " " when my web page run, what does it mean? Hope someone can help!!! Gary
6
1908
by: S. Lorétan | last post by:
Hi guys. I am preparing the rewriting of an huge existing application in VB6. This software is a mess of 10 years of patchs and new functionalities added randomly, and didn't have any logical or oriented-object background. This software is used by many differents persons, and there is a LOT of functionalities that exists only for one or two of them. So, I want to use a plugin-based system. That's it for the background.
0
1135
by: Vids | last post by:
Hi, We are doing migration of web service from VS2003 to VS2005 After upgrading the project I m trying to add a web reference to the web service. While adding web reference it shows all the web methods inside that web service but it show the message in the right "There was an error downloading 'http://localhost/MyWebSite/WebServices/Journal.asmx'. The request failed with the error message: -- <html><head><title>Object...
2
4536
by: cloudy | last post by:
First at all, i'm sorry, i not good in writing english. i want to retrieve a string from my applet via Javascript. I use a method named ReadAll. public String ReadAll(String StrOut, String Keywords, String condition) { ::: ::: return description; }
0
8325
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8844
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8742
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8621
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7354
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1971
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.