On Fri, 22 Dec 2017 08:53:03 +0100 (CET) Michael Van Canneyt <mich...@freepascal.org> wrote:
> That is one of the points of pas2js. To allow you to program the browser [in > pascal]. Fixed that for you. And yes, that's what most transpilers to javascript are meant for. > There is no need for a server. You can make e.g. a chess application that runs > 100% in the browser, using a single HTML file. You can embed the JS and > images in the HTML itself, and thus your HTML file is the 'executable'. Really, that's amazing? > See the browser as a desktop. Your program runs in that desktop. > If need be, this program can contact a server - the classical > client/server model, using HTTP as the protocol - but this is by no means a > necessity. If you say so. > In that sense, the demo demonstrates this. The server is just there for you > to be able to download the "program"... <!DOCTYPE html> <html> <head> <title>Mighty web app</title> </head> <body> </body> <script> alert("I am such a mighty web application"); </script> </html> Ok, if this is nowadays a 'web application' I seriously get old. But whatever, every HTML page with a script is a web app now. Lesson learned. R. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal