S
smat-consulting
Guest
Never, ever, ever, write 4gl inside of the HTML! You are creating a whole boatload of troubles for yourself. The better way to combine web-pages with progress 4GL/ABL application is by using the regular html requests (AJAX calls, using POST method works usually best; in some cases GET might suffice, too). the HTML side shouldn't care about what on the server is responding to its request. On the server you can have the WebSpeed agent take the parameters received through the request, do it's magic to determine the appropriate response, and send the results back - usually these days, these results are formatted as JSON. I recommend to have a small wrapper .p that includes src/web/method/cgidefs.i (which holds the standard progress cgi functions), and have this program call the actual logic program, after transferring all parameters into a name/value temptable. That way, all your logic is just simple 4GL, and no HTML/JS or WebSpecific knowledge is needed. And, if you need to change the interface (for example switching from traditional WebSpeed to the new PASOE WebSpeed), you need to only modify this simple wrapper program, and the rest all stays exactly the same. If you need help getting started, drop me an email...
Continue reading...
Continue reading...