Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-09-2002, 04:58 PM   PM User | #1
Zimma
New to the CF scene

 
Join Date: Jul 2002
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Zimma is an unknown quantity at this point
targeting win. media player across layers

I am trying to target a page containing windows media from a different layer with custom controls (instead of the horrible windows ones). i have a function that is called by the button that accesses the payer like so

function ShutMeDown ()
{
top.video.NSPlay.controls.stop();
}

the frame is called video and i have tried loading blank pages into this to check the referance works which it does ...

The embedded WM players ID'd as "NSPlay"

i got the control function direct from the MicroSoft site so it should work (see below).

function ShutMeDown ()
{
Player.controls.stop();
}


I'm fairly new to this DOM lark and my Jscript is pretty poor to (but hey i'm a flash developer and actionscript is a little easier on the heed)

Could anyone enlighten me as to what i'm doing wrong i get a 'this is not an object' error message.

Thanks

James
Zimma is offline   Reply With Quote
Old 07-09-2002, 10:58 PM   PM User | #2
adios
Senior Coder

 
Join Date: Jun 2002
Posts: 1,404
Thanks: 2
Thanked 32 Times in 32 Posts
adios is on a distinguished road
You'll need to be more specific about the structure of the document - and what browser(s) it's not working in. Except for Netscape 4, there really is no such structure as a 'layer', so your referencing needn't include it. This sometimes helps:

top.video.document.NSPlay.controls.stop();
adios is offline   Reply With Quote
Old 07-10-2002, 09:16 AM   PM User | #3
Zimma
New to the CF scene

 
Join Date: Jul 2002
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Zimma is an unknown quantity at this point
ahh...

i am actually using 'iframes' if that helps. I'll post the url up so you can see what i;m trying to achieve.

http://www.lewislive.co.uk/eventsite/ir/archived_broad/

basically if you click 'life as a man' link (none of the others work) it starts playing the video in the iframe ID'd "video". I am trying to get the buttons below to control the player (i will replace them for my custom ones when it is working). currently i;m only interested in IE browsers tho will include netscape 6 at a later date. Hope that helps.

PS

If you click the monkey see link it writes monkey do into the iframe ID'd "video". therefore i assume that it is the actual reference to the object of the player that doesn't work

Thanks

James
Zimma is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:55 AM.


Advertisement
Log in to turn off these ads.