Dear Letscape,
Thanks for your support. Your comments are, at the same time, true and, for some, false.
a)
What you want (and I want too) is to use javascript instead of CSPro's specific purpose language
I don't think it's a good idea to use Javascript instead of CSPro logic. If Javascript is far more powerful compare to CSPro logic, the latest was designed and implemented specifically for data collection and processing. Manies things that are very easy to be implemented in CSPro logic require sophisticated time consuming programming in Javascript.
Based on an old version of the language (2011) and from CSProX,
http://siteresources.worldbank.org/INTS ... Report.pdf , P.62, advanced CAPI experts comparing languages stated:
A rare achievement in software, CSProX boasts a concise programming language that marries simple syntax with strong programming power. Interactive error correction is a prime example. This function relies on a compact command that checks a user-defined logical condition (if-then), issues a user-scripted error message if the condition is violated, and provides user-specified options of how to resolve the issue by providing associated buttons that point back to potentially errant answers. In CSProX, this functionality is accomplished with a few lines of code, easily half of what is required by other programs.
However, even if it is far more powerful than any existing CAPI SDK (maybe, except for BLAISE), CSPro logic have manies limitations compare to a normal programming language:
i) Procedural, not object oriented;
ii) Lack of core functions such as complete math functions;
iii) One pass compilation;
iv) etc...
So,it's better for CSProusers to have both. Right now, Javascript fulfill almost, all CSPro logic weakness.
b)
If you also want that javascript to have the functionalities of nodejs, since it would no longer be just any javascript, you would have to specifically embed nodejs in the project.
No, it's not my request. I only need a convenient way to run some NodeJS modules in Webview. There's so much workaround to do this: Webpack, Browserify. Others asked for the same. Please see this post:
https://stackoverflow.com/questions/613 ... evelopment
c)
Adding support for webview is not embedding a new programing language within CSPro, it is simply embedding a visual component that manages a mini-instance of a browser in a completely isolated and unknown context
No, it's more than that. It's because CSPro Developer Team is implementing the Javascript-CSPro API. Also, if you search on the forum, you'll see (Thanks to Alex) there's way to run any Javascript codes from the Webview part of any CSPro apps and link to CSPro logic during runtime.
d)
You can then add to the context of the webview all you can add in a static webpage, because here there are not a "server" side, so, you can not have a server language like can be nodejs.
No, the CSPro Webview part can support dynamic scripting and whatever Javascript can do in a browser.
Dynamic: since you can use CSPro function inside Javascript and also output Javascript code from CSPro logic during runtime. It's not exactly as it's with NodeJS, but, don't forget also, for displaying Webview, CSPro have an embedded webserver. So, it can serve dynamic pages in the webview part.
@ The CSPro development Team, does my comments are correct?
Best,