You are not logged in.
Pages: 1
Hello Shahin,
I have a nanodlp setup with klipper for motion controller. I have tried using javascript code on the gcode boxes for get URL code (as shown on the docs pages) and that doesnot seem to work. Simple things seem to work though.
Sample Code that works
[JS]
output = "test_output"
[/JS]
Sample Code that fails. There is no output returned.
[JS]
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", "http://localhost/term-io", false);
xmlHttp.send(null);
output = xmlHttp.responseText;
[/JS]
Also, is there a way to send [[Pause]] like commands from external script call. Currently, the return from external script call is assumed to be gcode command, I guess. your comments.
many thanks!
Rahul
Last edited by Rahul (2024-03-20 14:18:46)
Offline
XMLHttpRequest not supported. Activity dashboard report the exact issue.
You can use [[NetReturn]] keyword.
Offline
Pages: 1