开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜