jQuery Dialog Reload Page ( useful for paging in dialog )¶
Note
[IMPORTANT For jQuery Dialog implementation see: JQUERY Dialog paragraph.]
In case a list with paging is loaded into a jQuery Dialog is possible to reload the list with the following function:
popdialog.cmdReload({ ... });
popdialog object is implemented in CommonPopDiaolog.jsp
Example:¶
var params = {
"pageNo": [pageNo],
"srchDiv": [srchDiv],
"srchText": [srchText]
};
if( typeof popdialog !== "undefined" && popdialog.cmdReload && $.isFunction(popdialog.cmdReload)) {
// used in case this jsp is loaded into a jQuery Dialog ( CommonPopDialog.jsp will reload this jsp )
popdialog.cmdReload(params);
} else {
// used in case this jsp is loaded as normal page ( the main jsp will reload this page )
pmis.trigger("conscomplist/reload", params);
}
Note
[NOTE CommonPopDialog already know how to call this jsp so is enough to send only new parameters ( pageNo, srch... )]
REFERENCE:
PopConsCompList.jsp
CommonPopDiaolog.jsp