[SOLVED] JavaScript GUI For shelp.sh - Reading a File in JavaScript, Displayed on Linux Client
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to create a GUI for my shelp.sh standard script command. Needing to use javascript in an HTML page, is part of my rules of my challenge right now, if I'm going to do it now. I don't want to have to install a server in order to do this. This does nothing on click of the help button. Please help me write the file out as an alert. If it's very, very simple, I'm ok with using other languages as well, as long as JavaScript and HTML integrates it together, and I understand what I'm doing. I will tie it in with the shell scripts, AFTER this works. Please help me. When I finish this, it will be used on my network, and shared via github a few different ways.
If this is impossible, just say so please. Also, I would prefer it's cross browser on Linux, but most of the time, it will probably use firefox. If it's also cross platform, and the thing would work on windows, even better. But I don't want it to get too complicated. The owner of the text files, is root, and they are 777 permissions, but could be changed, as long as it's at least readable by ugo.
I think node.js and electron are outside of the scope of what I'm doing. I'm only trying to create simple things that work on the web right now. I'm just marking it as impossible, and moving on. For this, since what I wanted to do is impossible, I might just use another tool to create a GUI. Later! Done for now. This would be useful to have, but it's not going to make or break me. Maybe as I need specifically the GUI more, I'll revisit this. I'll just keep working on other stuff for now. Thanks anyway though!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.