多次部分刷新的运行时错误 [英] Runtime error with multiple partial refresh

查看:16
本文介绍了多次部分刷新的运行时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每个帮助我获得一个 XSP.partialRefreshGet 工作.这对我来说很好用.谢谢你.现在我需要多次刷新才能工作:

Per help me getting a single XSP.partialRefreshGet to work. That is working fine for me noe. Thank you. Now I need to get multiple refreshes to work:

XSP.partialRefreshGet("#{txtRateType}", {
   onComplete: function() {
    XSP.partialRefreshGet("#{CurrentBalancesSection}", {
        onComplete: function() {
            XSP.partialRefreshGet("#{PricingSection}}", {});
        }
    });
 }
});

我收到运行时错误.知道我做错了什么吗?

I get a run time error. Any idea what I am doing wrong?

推荐答案

你又漏掉了 id 部分(而且你有一个额外的花括号),Bruce :-)

You are missing the id part again (and you had an extra curly brace), Bruce :-)

XSP.partialRefreshGet("#{id:txtRateType}", {
   onComplete: function() {
    XSP.partialRefreshGet("#{id:CurrentBalancesSection}", {
        onComplete: function() {
            XSP.partialRefreshGet("#{id:PricingSection}", {});
        }
    });
 }
});

这是客户端JS,功能需要客户端ID.您使用 {id: 告诉 XPage 返回服务器端组件的客户端 ID.

This is client side JS and the functions need client side ids. You use {id: to tell XPages to return the client side id of a server side component.

这篇关于多次部分刷新的运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆