mattias a12193a390 demo: rtl: set all lpi to compatibility mode 6 năm trước cách đây
..
README.md e6289151a9 * Initial import 7 năm trước cách đây
ajax.pas e6289151a9 * Initial import 7 năm trước cách đây
countries.json e6289151a9 * Initial import 7 năm trước cách đây
demo_njsprocess.pas e6289151a9 * Initial import 7 năm trước cách đây
demoajax.html e6289151a9 * Initial import 7 năm trước cách đây
demoajax.lpi a12193a390 demo: rtl: set all lpi to compatibility mode 6 năm trước cách đây
demoajax.lpr e6289151a9 * Initial import 7 năm trước cách đây
demobrowserconsole.html e6289151a9 * Initial import 7 năm trước cách đây
demobrowserconsole.lpi a12193a390 demo: rtl: set all lpi to compatibility mode 6 năm trước cách đây
demobrowserconsole.lpr e6289151a9 * Initial import 7 năm trước cách đây
democanvas2d.html e6289151a9 * Initial import 7 năm trước cách đây
democanvas2d.lpi a12193a390 demo: rtl: set all lpi to compatibility mode 6 năm trước cách đây
democanvas2d.pas e6289151a9 * Initial import 7 năm trước cách đây
democlasstopas.html e6289151a9 * Initial import 7 năm trước cách đây
democlasstopas.lpi a12193a390 demo: rtl: set all lpi to compatibility mode 6 năm trước cách đây
democlasstopas.pas 677d1b7ad1 demos: updated for Laz 2.0 6 năm trước cách đây
democollection.html e6289151a9 * Initial import 7 năm trước cách đây
democollection.lpi a12193a390 demo: rtl: set all lpi to compatibility mode 6 năm trước cách đây
democollection.pas 4bd0bc76bb * Convert to webproject, demo enumerator for collection and stringlist 7 năm trước cách đây
democomponents.html 6d96abb422 * For in loop, converted to web project 7 năm trước cách đây
democomponents.lpi a12193a390 demo: rtl: set all lpi to compatibility mode 6 năm trước cách đây
democomponents.lpr 6d96abb422 * For in loop, converted to web project 7 năm trước cách đây
demodatetime.lpi a12193a390 demo: rtl: set all lpi to compatibility mode 6 năm trước cách đây
demodatetime.pas 8bda483894 rtl: added JSDelete 7 năm trước cách đây
demodocument1.html e6289151a9 * Initial import 7 năm trước cách đây
demodocument1.pas e6289151a9 * Initial import 7 năm trước cách đây
demodombuttonevent.html e6289151a9 * Initial import 7 năm trước cách đây
demodombuttonevent.lpi a12193a390 demo: rtl: set all lpi to compatibility mode 6 năm trước cách đây
demodombuttonevent.pas e6289151a9 * Initial import 7 năm trước cách đây
demojsarray.lpi a12193a390 demo: rtl: set all lpi to compatibility mode 6 năm trước cách đây
demojsarray.pas e6289151a9 * Initial import 7 năm trước cách đây
demojsdataarray.pas e6289151a9 * Initial import 7 năm trước cách đây
demojsregexp.pas e6289151a9 * Initial import 7 năm trước cách đây
demojsstring.pas e6289151a9 * Initial import 7 năm trước cách đây
demonew.html e6289151a9 * Initial import 7 năm trước cách đây
demonew.pas e6289151a9 * Initial import 7 năm trước cách đây
demorouter.lpi a12193a390 demo: rtl: set all lpi to compatibility mode 6 năm trước cách đây
demorouter.pas 677d1b7ad1 demos: updated for Laz 2.0 6 năm trước cách đây
demortti.lpi a12193a390 demo: rtl: set all lpi to compatibility mode 6 năm trước cách đây
demortti.pas d3e2e69826 typinfo: added GetStrProp, SetStrProp, GetOrdProp, SetStrProp 7 năm trước cách đây
demostringlist.html 4bd0bc76bb * Convert to webproject, demo enumerator for collection and stringlist 7 năm trước cách đây
demostringlist.lpi a12193a390 demo: rtl: set all lpi to compatibility mode 6 năm trước cách đây
demostringlist.pas 4bd0bc76bb * Convert to webproject, demo enumerator for collection and stringlist 7 năm trước cách đây
demouncaughtexception.html e6289151a9 * Initial import 7 năm trước cách đây
demouncaughtexception.lpi a12193a390 demo: rtl: set all lpi to compatibility mode 6 năm trước cách đây
demouncaughtexception.pas e6289151a9 * Initial import 7 năm trước cách đây
demoxhr.html e6289151a9 * Initial import 7 năm trước cách đây
demoxhr.lpi a12193a390 demo: rtl: set all lpi to compatibility mode 6 năm trước cách đây
demoxhr.lpr d2d2044319 demo: fixed demoxhr, issue 34980 6 năm trước cách đây

README.md

Simple demos for the RTL units

Compiling for running in node.js:

pas2js -Tnodejs -Jirtl.js demojsstring.pas
pas2js -Tnodejs -Jirtl.js demojsregexp.pas
pas2js -Tnodejs -Jirtl.js democollection.pas
pas2js -Tnodejs -Jirtl.js democomponents.lpr
pas2js -Tnodejs -Jirtl.js demostringlist.pas
pas2js -Tnodejs -Jirtl.js demo_njsprocess.pas

Compiling for running in a browser:

pas2js -Jc -Jirtl.js demodombuttonevent.pas
pas2js -Jc -Jirtl.js demodocument1.pas
pas2js -Jc -Jirtl.js democollection.pas
pas2js -Jc -Jirtl.js democomponents.lpr
pas2js -Jc -Jirtl.js demoajax.pas
pas2js -Jc -Jirtl.js democanvas2d.pas
pas2js -Jc -Jirtl.js demonew.pas
pas2js -Jc -Jirtl.js democlasstopas.pas
pas2js -Jc -Jirtl.js demodocument1.pas
pas2js -Jc -Jirtl.js demouncaughtexception.pas
pas2js -Jc -Jirtl.js demoxhr.lpr
pas2js -Jc -Jirtl.js dembrowserconsole.lpr

When using lazarus, you can also open the respective .lpi files, and compile your project. Make sure pas2js is in your path, or the IDE will not find it.

Run in node.js

To run the code, you need to run

nodejs demojsstring.js
nodejs demojsregexp.js

etc.

Run/Show in a browser.

Some of the projects can be run straight from file. Just open the file in the explorer using your favourite browser.

The ajax demo needs to be run from a webserver, just as the demoxhr demo.

One way to do so, is to compile the simpleserver example program from the fcl-web examples, and run it in this directory. Then point your browser to http://localhost:3000/ajaxdemo.html.