HtmlPage.Window.Invoke not working for javascript function in separate js file
I'm trying to call a j开发者_开发问答s function from Silverlight using the HtmlPage.Window.Invoke method but it won't call a function contained in a seperate js file.
Anyone know why?
Cheers
AWC
You need to edit the head section of your ASPX or HTML file to add the reference of your js file for the function to get called. For example:
<script type="text/javascript" src="MyFunctions.js"></script>
精彩评论