[英]Silverlight. Cannot call javascript function
I use sharepoint client api to save item to list. 我使用sharepoint客户端api将项目保存到列表。 Then i need to call javascript function to update my html. 然后,我需要调用javascript函数来更新我的HTML。 But i cannot! 但是我不能! Page is refreshed instead of function call! 页面被刷新,而不是函数调用!
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 Why page refreshed intead of call to javascript? id = int,title =字符串,description =字符串为什么页面刷新了对javascript的调用的界面?
Function inside some methods.js and registered: 在一些methods.js内部注册并运行:
<SharePoint:ScriptLink name="/_layouts/tv2/js/methods.js" runat="server" Localizable="false"/>
File is presented on page is 100%. 页面上显示的文件是100%。
Found problem. 发现问题。 enable out of browser was on! 启用退出浏览器功能!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.