我想用前端HTML + JavaScript和後端Progress4GL創建應用程序。JavaScript前端和Progress4GL後端
我發現此文檔:http://communities.progress.com/pcom/docs/DOC-106147(請參閱介紹AJAX和介紹JSON)。在該示例中描述的請求數據時,它被用來GET方法:
xmlhttp.open("GET", "http://localhost/cgi-bin/cgiip.exe/WService=wsbroker1/getcustomersJSON_param.p?piCustNum="+ custval, true);
xmlhttp.send();
和Progress4GL過程用於獲取它用於get-value("piCustNum")
的PARAM。
在我的應用程序中,我想使用POST方法。因此,請求將是,例如:
xmlhttp.open("POST","http://localhost/cgi-bin/cgiip.exe/WService=wsbroker1/getcustomersJSON_param.p",true);
xmlhttp.send("piCustNum=" + custval);
但我不知道如何獲得進度側發送的參數。其實我想發送一個stringify JSON。
任何人都可以幫助我嗎?謝謝!
我有Progress11.2。爲了閱讀JSON,我使用了read-json方法:temp-table ttTodo:read-json(「LONGCHAR」,lcJSON)。 – Tenzi