-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: JS callouts extentability #125
Comments
Can you expand on what you mean by JS callouts? Maybe an example of integration with outside system? |
That yt video is an example, and the desc is pretty large. Just events for current selected item etc. and passing some attributes or at least a primary key, and maybe some info like placed or not. I just hacked in an xhr for example to pass data to a host I control in this example... function createRowHighlightHandler(rowid, refs) {
...
// Do something custom with what we know is selected...
URL = "http://192.168.1.246/?ledindex="+rowid.replace("bomrow","");
let xhr = new XMLHttpRequest();
xhr.open("GET", URL,true);
xhr.send(); |
I see. Well these are hardly JS callouts, more like http callbacks but it's semantics. |
sorry , I meant callouts in JS, not actual 'JS callouts' is that a thing? functionally to callout to a users control function or trigger an event for customization or action. |
I'm not an expert but probably in pure JS apps it's a thing, not in web since browsers sandbox everything. |
ok well to be clear the xhr call has nothing to do with this. Might be able to just get away with event listeners, but it depends on the scope of how to allow including user code assets. And what data we need to pass to the function etc |
I agree, it's better to make it generic and not limited to http requests. |
Have you thought about this anymore? |
Yes, I have a plan to implement the injectable user js code with listeners as described above and also injectable css and html headers/footers. Just have to find time to implement it. |
This is now supported. In I will add more info to the wiki soon. |
Some kind of JS event callout hooks to extend functionality, eg.
I am playing around with something like this, could also be tied into things like inventory control and picking etc.
https://youtu.be/oZNod_Mhfro
The text was updated successfully, but these errors were encountered: