开发者

HtmlPage.Window.Invoke not working for javascript function in separate js file

开发者 https://www.devze.com 2022-12-21 03:08 出处:网络
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.

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>
0

精彩评论

暂无评论...
验证码 换一张
取 消