XSP 部分刷新 [英] XSP Partial Refresh
本文介绍了XSP 部分刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图从锚链接向服务器发送一个值,我从一个从锚链接调用的函数中调用以下代码.虽然我能够触发部分刷新,但我收到一个错误...请提供任何指示.....
I am trying to send a value to server from anchor link and I call following code from a function which is called from the anchor link. Although I am able to trigger partial refresh,I get an error...any pointers please.....
var refreshId=dojo.query('[id$="testPanel"]')[0];
alert(refreshId.innerHTML)
alert(refreshId.id)
var mySubmitValue='whatYouWantToSendHere';
XSP.partialRefreshGet(refreshId, {
params: {
'$$xspsubmitvalue': mySubmitValue
},
onStart: function () {
alert('starting');
},
onComplete: function () {
alert('Complete');
},
onError:'myErrHandler( arguments[0], arguments[1] )'
});
推荐答案
您正在将对象发送到服务器.使用元素的 id 代替:
You are sending the object to the server. Use the id of the element instead:
XSP.partialRefreshGet(refreshId.id, {
这篇关于XSP 部分刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文