CxpHttpServer
Posted: Wed Apr 15, 2015 12:16 pm
Hi Roger,
in last few days I worry with correct showing and writing our national characters
and translating some CXP code to CxpHttpServer(CHS).
1.
due to some problems with refreshing content of html page, I added clause NO-CACHE to index.html and in all created html file
- this workaround works in most cases, but sometimes when I click on „lelf-arrow“ pushbutton for showing previous page,
old/cached content is displayed
- try run example test04 and click on pb 6 or 666 and then on left arrow for navigatig back
- you will see that time was not changed
- when you click on pb a-7b, page/time is refreshed
- in this example I also try move/redirect/call to other method/function/page and also show some pb’s style and hover clause
- hmmm, I think there is also any parameter for SessionManager for enable/disable this behavior, is to possible add it into CHS if it will solve this?
2.
I added support for DbfCdx, because that format I use in windows desktop app and automatical start of CHS when it was started
- please, can you add this in your code too, I did not have to always do this – many thanks
- just note: FoxCdx must be set to default – recommendation from Alaska’s guys
3.
please, can you add exact procname, line number and passed parameters into error.log when any error occurs?
- try e.g. enable line 524 and re-run program – as you can see if there is more MemoWrit() I have no idea, where and what problem occurs
= Donnay Software Web Server Error ==========
Date: 20150415, Time: 20:12:04
App: c:\exp20\Samples\Web20\CxpHttpServer.EXE, Thread: 4
ERROR BASE/3
Parameter has a wrong data type: memoWrit
Called from WEBHANDLER:ONERROR(79)
Called from WEBHANDLER:EXECUTE(170)
Called from CUSTOMWEBHANDLER:EXECUTE(157)
Called from WEBHANDLERPROCESSOR:RUN(260)
Called from ABSTRACTHOSTADAPTOR:RUN(204)
Called from WEBJOB:EXECUTEWEBREQUEST(562)
Called from WEBJOB:EXECUTEHTTP(505)
Called from WEBJOB:EXECUTE(461)
4.
biggest problem I have with our national characters...
if data in database are filled with desktop app, indexing with your CHS and with desktop app works OK (not ok with CXP) – I use OEM CodePage 852 / Central-Europe / Latin-2
- note: some national chars are bad displayed
- just see test07 and image test-cdx-07.png
- but when I open in web-browser file test-8859-2.html – example 8b, it is showed OK! So with CHS it is possible do, with CXP not!
- also example test8a – if that same file are first readed into memory and then saved in html, result is wrong...
- also when I direct write any our characters into html file – e.g. examples test01, 02, 03 – it is not good...
- I think problem is how to write these chars in cxp/chs, because if it is written in any external html editor(like test-8859-2.html), it is ok
5. I added my replacement for your SendMail function
- MyMailerTestMsg works with MarshallSoft LIB
- if someone else are interested...
Zdeno
in last few days I worry with correct showing and writing our national characters
and translating some CXP code to CxpHttpServer(CHS).
1.
due to some problems with refreshing content of html page, I added clause NO-CACHE to index.html and in all created html file
- this workaround works in most cases, but sometimes when I click on „lelf-arrow“ pushbutton for showing previous page,
old/cached content is displayed
- try run example test04 and click on pb 6 or 666 and then on left arrow for navigatig back
- you will see that time was not changed
- when you click on pb a-7b, page/time is refreshed
- in this example I also try move/redirect/call to other method/function/page and also show some pb’s style and hover clause
- hmmm, I think there is also any parameter for SessionManager for enable/disable this behavior, is to possible add it into CHS if it will solve this?
2.
I added support for DbfCdx, because that format I use in windows desktop app and automatical start of CHS when it was started
- please, can you add this in your code too, I did not have to always do this – many thanks
- just note: FoxCdx must be set to default – recommendation from Alaska’s guys
3.
please, can you add exact procname, line number and passed parameters into error.log when any error occurs?
- try e.g. enable line 524 and re-run program – as you can see if there is more MemoWrit() I have no idea, where and what problem occurs
= Donnay Software Web Server Error ==========
Date: 20150415, Time: 20:12:04
App: c:\exp20\Samples\Web20\CxpHttpServer.EXE, Thread: 4
ERROR BASE/3
Parameter has a wrong data type: memoWrit
Called from WEBHANDLER:ONERROR(79)
Called from WEBHANDLER:EXECUTE(170)
Called from CUSTOMWEBHANDLER:EXECUTE(157)
Called from WEBHANDLERPROCESSOR:RUN(260)
Called from ABSTRACTHOSTADAPTOR:RUN(204)
Called from WEBJOB:EXECUTEWEBREQUEST(562)
Called from WEBJOB:EXECUTEHTTP(505)
Called from WEBJOB:EXECUTE(461)
4.
biggest problem I have with our national characters...
if data in database are filled with desktop app, indexing with your CHS and with desktop app works OK (not ok with CXP) – I use OEM CodePage 852 / Central-Europe / Latin-2
- note: some national chars are bad displayed
- just see test07 and image test-cdx-07.png
- but when I open in web-browser file test-8859-2.html – example 8b, it is showed OK! So with CHS it is possible do, with CXP not!
- also example test8a – if that same file are first readed into memory and then saved in html, result is wrong...
- also when I direct write any our characters into html file – e.g. examples test01, 02, 03 – it is not good...
- I think problem is how to write these chars in cxp/chs, because if it is written in any external html editor(like test-8859-2.html), it is ok
5. I added my replacement for your SendMail function
- MyMailerTestMsg works with MarshallSoft LIB
- if someone else are interested...
Zdeno