Silverlight的。无法调用javascript函数

时间:2011-05-11 21:42:13

标签: c# javascript silverlight sharepoint-api

我使用sharepoint客户端api将项目保存到列表中。然后我需要调用javascript函数来更新我的HTML。但是我不能!刷新页面而不是函数调用!

         clientContext.ExecuteQueryAsync(
                    (sender, args) =>
                    {
                        System.Windows.Deployment.Current.Dispatcher.BeginInvoke(
                        delegate()
                        {
                            StopLoading();
                            HtmlPage.Window.Invoke("UpdateHtmlDetails", id, title, description);
                        });
                    }, SaveRequestFailed);

id = int,title = string,description = string 为什么页面刷新了对javascript的调用?

一些methods.js中的函数  并注册:

   <SharePoint:ScriptLink name="/_layouts/tv2/js/methods.js" runat="server" Localizable="false"/>

页面上显示的文件是100%。

1 个答案:

答案 0 :(得分:0)

发现问题。启用浏览器已启用!