Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Javascript Window Control

Name: Anonymous 2007-05-20 18:25 ID:xf7ynFIa

Javascript newb here.

Basically what I'm trying to do is have one window playing a video with the vlc plugin (http://wiki.videolan.org/Windows#VLC_Plugin_for_Firefox_.28Mozilla.29)  and another with buttons for play and pause. I have this working with the controls and video in one window but can't get it to work with them is separate windows. Any advice?

Name: Anonymous 2007-05-20 19:56 ID:Heaven

Sure: Give links to the videos so we can download them instead of trying to fuck us with Javascript. Anyone know uses the VLC plugin already knows how to rip the videos from your site in the first place.

Name: Anonymous 2007-05-20 20:06 ID:xf7ynFIa

Er this isn't about downloading videos. Ill restate what I said earlier.

I want to use javascript to control an embedded object in one window with buttons in another window.

Name: Anonymous 2007-05-20 20:16 ID:BuGzy1Sj

What are you trying to use right now? window.parent?

Name: Anonymous 2007-05-20 20:20 ID:BuGzy1Sj

I had a script that calculated an MD5 hash of a file in a seperate window (in the pre-AJAX days) using a popup, this is how I did it:

Popup-window javascript:
try
{
    window.opener.md5_set( 123, "2d875749ed98601021a46169e9470958" );
}
catch( e )
{
    alert( "Unhandled exception:\n"+ e );
}


Other page defines md5_set:
// Called to open the popup window
function md5c( idl, rfl )
{
    window.open( "md5.php?idl=" + idl + "&rlf=" + escape( rfl ), "md5c_" + idl, "width=400,height=50" );
}

function md5_set( idl, hash )
{
    // do some shit
}


This (as you can see) only works if one script opens the other window.

Name: Anonymous 2009-03-06 6:58


The fuck out tripfag?

Name: Anonymous 2009-03-06 11:12

with words since language   is and has   done nothing since   except write essays   and a five   minute hack that   I produced for   my own enjoyment.

Name: Anonymous 2010-12-06 10:03

Back to /b/, ``GNAA Faggot''

Name: Anonymous 2010-12-27 4:35

Name: Anonymous 2011-01-31 20:35

<-- check em dubz

Name: Sgt.Kabuᄔ联kiman珮䈗 2012-05-29 2:00

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List