How to execute a external Javascript file from html page. I need to send input to .js file And I also need to get output from external .js file.
I am thinking like building a input.xml file with my inputs as nodes in it. I will execute the external .js file by sending my input.xml file. My external .js file will parse my input.xml and perform the function using my inputs. External .js will build the Output.xml file with results as a nodes in it. My html page needs to parse the Output.xml and display the results in the html page.
I can do all the other stuff, but I couldn't figure how to execute the external .js file by sending my input.xml and read Output.xml from .js file.
Any ideas for this kind of design??
<script src="/path/to/external.js">
? – Pekka 웃 17 mins ago