I'm just starting to play around with pas2js, but I'm running into some issues getting things configured properly, here are my steps:
- installed pas2js wtih fpcupdelux
- installed pas2jsdsgn package
- configured pas2js.cfg to point properly to source files
- file -> New -> web browser application (choose default options)
* create initial html page
* maintain html page
- save project to empty directory, and following structure is created
when I attempt to compile, the following error occurs "custom js file not found: "rtl.js"
I have attempted to add the "small javascript file needed" specified in this wiki:
http://wiki.freepascal.org/pas2jsto the same directory as my project which does allow for compiling however, when opening in the browser and inspecting
the console window the following errors are present:
"SyntaxError: expected expression, got '<'[Learn More] project1.js:1"
"ReferenceError: rtl is not defined[Learn More]"inspecting project1.js which is generated by compiling, I see that it has appened the rtl.js file's contents to
top of the compiled code as such
<script type="application/javascript">
rtl.run()
</script>rtl.module("System",[],function () {
"use strict";
var $mod = this;
rtl.createClass($mod,"TObject",null,function () {
this.$init = function () {
when I clear the contents of rtl.js to be an empty script file, then compile and refresh the project1.html file the following errors occur:
"ReferenceError: rtl is not defined[Learn More] project1.js:1:1"
"ReferenceError: rtl is not defined[Learn More]"I know I must've missed a step along the process, or am doing something wrong since it seems others have gotten pas2js to work for some time now
but any help would be appreciated.