1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- var sPopUpWebRoot = "..";
- if (window.g_PS_getWebRoot)
- {
- if (g_PS_getWebRoot() != "")
- sPopUpWebRoot = g_PS_getWebRoot();
- }
- var gDispatcher = new CDispatcher();
- function sendDispatcherRequest(params, callback)
- {
- var request = gDispatcher.createRequest(cfgGet("SCRIPT_ENGINE"), params, callback);
- gDispatcher.dispatchRequest(request);
- return request;
- }
- function getDispatcherRequestStatus(request)
- {
- return gDispatcher.getRequestStatus(request);
- }
- function setDispatcherErrorHandler(errorFunction)
- {
- gDispatcher.setErrorHandlerFunction(errorFunction);
- }
- function cancelDispatcherRequest(request)
- {
- return gDispatcher.cancelRequest(request);
- }
- function testResponse(response)
- {
- alert("testResponse got this response: [" + response + "]");
- }
- function testResponseWin(response)
- {
- typeof qs_dir != "undefined" ? qs_dir : (qs_dir = "qs");
- var sPath = sPopUpWebRoot + qs_dir + "/blankNewWin.html";
- if (typeof sNewWinSkin != "undefined" && sNewWinSkin != "")
- {
- sPath += "?skin=" + sNewWinSkin;
- }
- var newWin = window.open(sPath);
- newWin.document.write(response);
- newWin.document.close();
- }
|