You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/SETTINGS.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,31 +58,31 @@ The ``pebSettings`` JavaScript object may have the following properties:
58
58
59
59
## Perl Scripts API
60
60
61
-
Every Perl script run by PEB has a JavaScript settings object with an arbitrary name and fixed object properties. The name of the JavaScript settings object with a ``.script`` extension forms settings pseudo filename used to start the Perl script.
61
+
Every Perl script run by PEB has a JavaScript settings object with an arbitrary name and fixed object properties. The name of the JavaScript settings object with a ``.script`` extension forms settings pseudo link used to start the Perl script.
62
62
63
63
There are three methods to start a local Perl script:
64
64
65
-
***Clicking a link to a script settings pseudo filename:**
65
+
***Clicking a link to a script settings pseudo link:**
66
66
67
67
```html
68
68
<ahref="test.script">Start Perl script</a>
69
69
```
70
70
71
-
***Submitting a form to a script settings pseudo filename:**
71
+
***Submitting a form to a script settings pseudo link:**
72
72
73
73
```html
74
74
<formaction="test.script">
75
75
<inputtype="submit"value="Start Perl script">
76
76
</form>
77
77
```
78
78
79
-
***Calling a JavaScript function with a script settings pseudo filename:**
79
+
***Calling a JavaScript function with a script settings pseudo link:**
80
80
81
81
```javascript
82
82
peb.startScript('test.script');
83
83
```
84
84
85
-
This method creates an invisible form and submits it to the script settings pseudo filename.
85
+
This method creates an invisible form and submits it to the script settings pseudo link.
86
86
87
87
A minimal example of a JavaScript settings object for a Perl script run by PEB:
88
88
@@ -262,7 +262,9 @@ The ``#PORT#`` keyword within the command-line arguments is substituted with the
262
262
263
263
## Selecting Files and Folders
264
264
265
-
Selecting files or folders with their full paths is performed by clicking a link to a pseudo filename composed of the name of a JavaScript settings object for the wanted dialog and a ``.dialog`` extension.
265
+
Selecting files or folders with their full paths is performed by clicking a pseudo link composed of the name of a JavaScript settings object and a ``.dialog`` extension.
266
+
267
+
Selecting files or folders with their full paths is possible only from local HTML files or localhost pages.
266
268
267
269
A JavaScript settings object for a filesystem dialog has only two object properties:
0 commit comments