Posted: 19 Dec 2018 4:34 EST Last activity: 19 Dec 2018 6:31 EST
The problem I face is that, everytime I try to execute it, the response is that some other function is not defined, for example, there is a "sendError" function inside the code of the function that I need to call, and it says when I test it: "sendError is not defined". If I copy/paste the definition of sendError to my code, the same will happen for many more functions, basically every function referenced anywhere on the code.
I tried to copy the definition of all the referenced functions, but in the end there was some for which I could not find the definition anywhere. I tried to include the other text files as <script src="webwb/filename.js">, but it didn't make any difference.
Anyone can tell me what would be the correct way to call the function from my HTML Fragment? I might be missing some way to include the other JS files on my code, so that I can freely use its functions.
I had seen other examples before, but on my case, the functions are not found it seems. I even got an error "$ is not defined" which was solved when I included the line <script src="webwb/jquery.js"></script>, but I cannot solve all the errors that I get like that. Now I get another one, for example, which says cannot read 'registerEventListener' of undefined. Every src that I include triggers more and more undefined functions. But I have no clue why the functions are not visible from my HTML.