// formapi snippetfunction handleName() { var params = new Object(); params.absPath = parent.datacapture.getDCRVPath().substring(9); params.fileName = IWDCRInfo.getDCRName(); IWDatacapture.callServer("http://"+server+"/iw-bin/iw_cgi_wrapper.cgi/someCode.cgi", params);} function callBack(arg1, arg2, arg3) {// formapi has waited... continue calling functions callSomeFunction(arg1); callSomeFunction(arg2); callSomeFunction(arg3);}// formapi snippet
## callserver snippet... import ...my $absPath = $in->param('absPath');my $fileName = $in->param('fileName');... logic ...print qq(<html> <body onload="parent.getScriptFrame().callBack('$arg1', '$arg2', '$arg3')"/></html>);## callserver snippet