XSP Partial Refresh

我的未来我决定 提交于 2019-12-11 05:57:56

问题


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] )'

    });

回答1:


You are sending the object to the server. Use the id of the element instead:

XSP.partialRefreshGet(refreshId.id, {


来源:https://stackoverflow.com/questions/13398980/xsp-partial-refresh

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!