tonelm54
asked on
Silverlight not calling Javascript
Ive writting a simple Silverlight App which should call a Javascript function from the calling page:-
In Silverlight, Im using the code:-
And then in my HTML page I have the following code:-
Yet, I cannot get the alert to appear :-(
Any ideas what Im doing wrong?
In Silverlight, Im using the code:-
HtmlPage.RegisterScriptableObject("Page", Me)
HtmlPage.Window.Invoke("slComplete")
And then in my HTML page I have the following code:-
<script type="text/javascript">
function slComplete()
{
alert("Upload completed");
}
</script>
Yet, I cannot get the alert to appear :-(
Any ideas what Im doing wrong?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.