Morse Code Translator Website on cPanel Not Processing JavaScript Input Correctly After Deployment
Hi, I recently deployed my Morse Code Translator website to my cPanel hosting, and I’m running into an issue where the JavaScript-based translation functionality isn’t behaving as expected in the live environment. The site works perfectly on my local setup, but once uploaded, the input from the textarea is either not being captured correctly or the translation functions (morseToText() and textToMorse()) are not triggering consistently when the button is clicked. I’ve confirmed that the files are uploaded correctly and paths seem fine, but the behavior differs from local testing.
I’m also noticing that certain UI interactions, like the swap button that toggles between Morse tree and text input, occasionally resets both fields without updating placeholders properly. There are no obvious console errors, which makes debugging more difficult. Could this be related to caching JavaScript execution settings, or any server-side configuration in cPanel that might affect client-side scripts? I’d appreciate any guidance on what to check or adjust to ensure the JavaScript runs reliably on the hosted version.
-
Hey there! The best thing to do would be to speak with someone with root access to the machine so they could check the Node.JS implementation on that server, as I'm assuming that is what is installed in order for the your javascript application to function.
I would expect the logs to be located in /home/user/nodejsapp/logs at the local level if you wanted to check there as well.
0
Please sign in to leave a comment.
Comments
1 comment