I am developing a Silverlight application which is going to be hosted inside another's application IFrame:
<hgroup class="title">
<h1>@ViewBag.Title.</h1>
<h2>@ViewBag.Message</h2>
</hgroup>
<script type="text/javascript">
function testMethod() {
alert(1);
}
</script>
<iframe src="URL of the silverlight application" width="750" height="500"/>
This is just a dummy app for testing purposes (I am using the default MVC 4 template - this is actuly the Contacts.cshtml file)
An this is the part where I call the JavaScript function.
HtmlPage.Window.Invoke("testMethod");
Any suggestions what to do/what I am doing wrong?