This project is read-only.

Problems with Silverlight Player inside <form>

Topics: HTML5 web
Apr 23, 2012 at 2:52 PM

Re-posting here from the issues section.

When we place the Basic JavaScript Usage example's "<div id="myVideoContainer" class="pf-container">" element inside a <form> element, pressing the play button seems to cause the form to submit which in turn re-loads the video player again.

This is a problem when attempting to use this player with any ASP.NET page. Any ideas what we're doing wrong? 

Apr 23, 2012 at 5:38 PM

The problem seemed to be caused by the default behavior of the <button> elements that got generated for the controls.

We fixed the issue by adding the line:

"type": "button",

to every instance where a "button" element is created by the javascript. Not sure if this will destroy anything important, but we can play and pause without submiting a form and posting back.

Apr 24, 2012 at 2:01 AM

We have just fixed this in the 1.1 release which we plan to deploy ASAP. Thanks for letting us know.