Link to home
Start Free TrialLog in
Avatar of tonelm54
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:-
                    HtmlPage.RegisterScriptableObject("Page", Me)
                    HtmlPage.Window.Invoke("slComplete")

Open in new window


And then in my HTML page I have the following code:-
	<script type="text/javascript">
		function slComplete()
			{
			alert("Upload completed");
			}
	</script>	

Open in new window


Yet, I cannot get the alert to appear :-(

Any ideas what Im doing wrong?
ASKER CERTIFIED SOLUTION
Avatar of Mrunal
Mrunal
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial