>- see footer for list info -< You're not calling enableNext() in your onFinish function.
Adrian > -----Original Message----- > From: [email protected] [mailto:dev- > [email protected]] On Behalf Of Paul Swingewood > Sent: 13 July 2009 10:50 > To: [email protected] > Subject: [CF-Dev] OT JS and FlowPlayer > > >- see footer for list info -< > > Hi all, > > > > It seems impossible to get any help from flowplayer forums so I ask > here again. > > > > Im sure this is some stupid JS mistake but can anyone help me please. > > > > I have disabled the next button on a form. I want to enable it when the > movie completes so I am using the OnFinish. This all works ok and I can > get it to show an alert message at the end. I now want to enable the > button. I am no JS coder so I am a bit lost with this can anyone help > me please. > > > > http://services.bgfl.org/cfpages/brighterfutures/vidtest.cfm > > > <!-- flowplayer scripts should be loaded from your servers NOT from > static.flowplayer.org --> > > <script type="text/javascript" src="vidplayer2/flowplayer- > 3.1.1.min.js"></script> > > > > <script language="JavaScript"><!--- Please wait when submit button > clicked ---> > <!-- > function disableNext() > { > document.VidForm.clickme.disabled = "true"; > return true; > } > > function enableNext() > { > document.VidForm.clickme.disabled = "false"; > return true; > } > //--> > </script> > > </head> > > <body onload="disableNext()"> > <!-- player container. display:block not needed--> > > > <div style="width:425px;height:300px;" id="player"></div> > > <script> > flowplayer( > "player", > "vidplayer2/flowplayer-3.1.1.swf", > // supply the configuration > { > > playlist: > [ > {url: 'vidplayer2/vid1.jpg', overlayId: 'play'}, > {url: 'http://helix.bgfl.org/cypf/brighterfutures/vid1.flv', > overlayId: 'play'}, > { > url: 'vidplayer2/vid1.jpg', overlayId: 'play', > onFinish: function() { > // set an event handler in the configuration > // alert("Video Has Finished - Enable the NEXT button"); > document.getElementById("VidForm").clickme.disabled = "false"; > } } > ], > > plugins: { > // load one or more plugins > controls: { > // load the controls plugin > url: 'vidplayer2/flowplayer.controls-3.1.1.swf', > // always: where to find the Flash object > playlist: true, > // now the custom options of the Flash object > backgroundColor: '#aedaff', > tooltips: { > // this plugin object exposes a 'tooltips' object > buttons: true, > fullscreen: 'Click for full screen' > } > } > } > } > ); > </script> > > <form name="VidForm" action="somewhere.cfm" method="post"> > <input name="clickme" type='submit' value="Next"> > </form> > > > > > > Many Thanks - Paul _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
