1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

JavaScript front-end and Progress4GL back-end

Discussão em 'StackOverflow' iniciado por fdantas, Agosto 12, 2015.

  1. fdantas

    fdantas Administrator Moderador

    I want to create an application with front-end HTML + JavaScript and back-end Progress4GL.

    I found this documentation: http://communities.progress.com/pcom/docs/DOC-106147 (see Introducing AJAX and Introducing JSON). In the example described it is used GET method when requesting data:

    xmlhttp.open("GET", "http://localhost/cgi-bin/cgiip.exe/WService=wsbroker1/getcustomersJSON_param.p?piCustNum="+ custval, true);
    xmlhttp.send();


    and on Progress4GL procedure for getting the param it is used get-value("piCustNum").

    In my application I want to use POST method. So the request will be, for example:

    xmlhttp.open("POST","http://localhost/cgi-bin/cgiip.exe/WService=wsbroker1/getcustomersJSON_param.p",true);
    xmlhttp.send("piCustNum=" + custval);


    But I don't know how to get the sent param on Progress side. Actually I want to send a stringify JSON.

    Can anyone help me with this? Thanks!

    Continue reading...

Compartilhe esta Página