Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2020-08

i need simple WEB apps creation unit

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mgr. Janusz Chmiel

Dear specialists,
I have spent many many weeks while searching for some Pas2js compatible Pascal unit, which would allow Me to create WEB apps simple including comboboxes, editable fields, ETC.
I do not want to use Pas2js console for such task. Unfortunately, it seems to Me, that such unit which would not require to use Javascript classes, so developer would really only use Pascal language and its data types or key words is very probably not available for free or it is not somebody of us know about such units or unit? I do not see at all and I would like to create simple WEB apps for memory training exercises based on working with human memory by using various word based memory tests. So what I would had to use mostly is to use editable field, some text area, button. FOr beginning, if somebody of us would be able to create or find such unit compatible with Pas2js, it would be enough for my needs. I Am aware, that making complex unit for free is long term task so if I will have only little requirement for beginning, editable field, button, text area, itwould be much more realistic to anticipate some good feetback from you. I Am very sad, because I have found ideal solution for visually impaired developers.
webCRT
Unfortunately, this solution require to have some compatible Apache or other WEB server preconfigured so I could debug my little WEB apps. How complex would be to implement something like webCRT units for Pas2js? So resulting app would contain prepared .html page with Javascript code? And developers could use The same simple GUi creation procedures like webCRT contain? Developer would not had to run his own WEB server or use some professionally prepared one from some WEB hosting company?

The forum about Webcrt unit is here.

https://forum.lazarus.freepascal.org/index.php?topic=33946.0

Thank you very very much for any suggestions or advices. With kindness regards.
Janusz Chmiel

Reply by email

Michael Van Canneyt
to Mgr. Janusz Chmiel
Mgr. Janusz Chmiel wrote 14 lines
Dear specialists, I have spent many many weeks while searching for some Pas2js compatible Pascal unit, which would allow Me to create WEB apps simple including comboboxes, editable fields, ETC. I do not want to use Pas2js console for such task. Unfortunately, it seems to Me, that such unit which would not require to use Javascript classes, so developer would really only use Pascal language and its data types or key words is very probably not available for free or it is not available at all. Does somebody of us know about such units or unit? I do not see at all and I would like to create simple WEB apps for memory training exercises based on working with human memory by using various word based memory tests. So what I would had to use mostly is to use editable field, some text area, button.

Why not use webwidgets distributed with pas2js ?

I use it in several commercial applications, it works like a breeze. It is not RAD (yet, we're working on that) but it in my experience it develops just as fast as a traditional GUI RAD approach.

Show quoted text 15 lines
FOr beginning, if somebody of us would be able to create or find such unit compatible with Pas2js, it would be enough for my needs. I Am aware, that making complex unit for free is long term task so if I will have only little requirement for beginning, editable field, button, text area, itwould be much more realistic to anticipate some good feetback from you. I Am very sad, because I have found ideal solution for visually impaired developers. webCRT Unfortunately, this solution require to have some compatible Apache or other WEB server preconfigured so I could debug my little WEB apps. How complex would be to implement something like webCRT units for Pas2js? So resulting app would contain prepared .html page with Javascript code? And developers could use The same simple GUi creation procedures like webCRT contain? Developer would not had to run his own WEB server or use some professionally prepared one from some WEB hosting company?

WebCRT should be easy to do. I already communicated to the original author, it seems to me he is open to porting it.

Michael.

Reply by email

Mgr. Janusz Chmiel
to Michael Van Canneyt

Dear MR Canneyt,
Thank you that you have contacted The author of Webcrt unit. I hope, that it will be really possible to use this unit in combination with Pas2js without The need to use server CGi hosting somewhere or run it virtually by using compiled Pascal source code on a console.
Yes, I have really found web.pas unit in The packages sub folder with Pas2js compiler. I must determine, if is it possible to use it without deep Javascript knowledge.
I have made big error. Because I have spent several years while fightighting with traditional Free Pascal compiler. But todays world is opened to WEB pages development thanks to its universality. WEB page can be interpreted by many various browsers on many platforms. And thanks to modern CPU and boards, it is possible to run intensive Javascript tasks without severe stability or memory allocation issues.
So thank you again for yours time and for yours help.

Reply by email

Michael Van Canneyt
to Mgr. Janusz Chmiel: Thank you that you have contacted The author of Webcrt unit. I hope, that it will be…
Mgr. Janusz Chmiel wrote 5 lines
Dear MR Canneyt, Thank you that you have contacted The author of Webcrt unit. I hope, that it will be really possible to use this unit in combination with Pas2js without The need to use server CGi hosting somewhere or run it virtually by using compiled Pascal source code on a console.

For what it is worth: if you include the "browserconsole" unit in your program, then write and writeln will just work.

I'm still looking for a good idea to implement a read(ln). There is a Javascript class that emulates a vt100 in the browser (shellinabox uses it) , but it is a little obtuse...

Michael.

Reply by email

Mr Bee
to Mgr. Janusz Chmiel: I have spent many many weeks while searching for some Pas2js compatible Pascal unit,…

Hi, Mr. Chmiel…
Thank you for your interest in WebCRT unit. I’m the author of it. WebCRT unit is possible using CGI because HTTP communication is sequential (simple request-response flow). But to make something like that on HTML body using javascript is very unlikely because the javascript response is event-based. It’s like making sequential algorithm to create GUI application which natively is event-based (messaging). Of course making pas2js to support procedural is possible but it’s not as simple as making WebCRT unit. So, the simplest solution would be to embrace the HTML and javascript native workflow using pas2js. Best regards,

–Mr Bee

Pada Sabtu, 22 Agustus 2020 16.25.04 WIB, Mgr. Janusz Chmiel menulis:

Dear specialists,
    I have spent many many weeks while searching for some Pas2js compatible Pascal unit, which would allow Me to create WEB apps simple including comboboxes, editable fields, ETC.
I do not want to use Pas2js console for such task. Unfortunately, it seems to Me, that such unit which would not require to use Javascript classes, so developer would really only use Pascal language and its data types or key words is very probably not available for free or it is not somebody of us know about such units or unit? I do not see at all and I would like to create simple WEB apps for memory training exercises based on working with human memory by using various word based memory tests. So what I would had to use mostly is to use editable field, some text area, button. FOr beginning, if somebody of us would be able to create or find such unit compatible with Pas2js, it would be enough for my needs. I Am aware, that making complex unit for free is long term task so if I will have only little requirement for beginning, editable field, button, text area, itwould be much more realistic to anticipate some good feetback from you. I Am very sad, because I have found ideal solution for visually impaired developers.
webCRT
Unfortunately, this solution require to have some compatible Apache or other WEB server preconfigured so I could debug my little WEB apps. How complex would be to implement something like webCRT units for Pas2js? So resulting app would contain prepared .html page with Javascript code? And developers could use The same simple GUi creation procedures like webCRT contain? Developer would not had to run his own WEB server or use some professionally prepared one from some WEB hosting company?

The forum about Webcrt unit is here.

https://forum.lazarus.freepascal.org/index.php?topic=33946.0

Thank you very very much for any suggestions or advices. With kindness regards.
Janusz Chmiel

Reply by email