在view.Host_handler调用后无法访问html元素

时间:2019-04-18 11:15:23

标签: c# html sciter

我想使用sciter脚本在HTML中以尖锐形式访问view.Host_handler帧,但是在c#事件处理程序中调用后无法加载。

请在下面找到代码段:

self.on("click","button",function(){
    view.Host_handler("","", function(res){
          if(res) {
             $(frame#content).load("hello.html"); // not able to access $(frame#content) -> getting undefined element 
          } else {
             view.msgbox(#alert, "somthing went wrong");
          }
     });
}

0 个答案:

没有答案