?
.
Greetings,
Here is my problem, hopefully you can help me. I have a javascript
function on a web site that I need to call from Java. The script is
located in http://www.some.bogus.site.com/product/script.js and the
function is called encrypt(). It takes as an input a string and returns a
different string. I have a Java application with the input string and need
to get the output script. I've been told I can use javascript: protocol to
access it via java.net.URL.
Does anyone have a code snippet that would call the function
encrypt("password") from a given javascript file and return the results as
a string in Java?
Here is my problem, hopefully you can help me. I have a javascript
function on a web site that I need to call from Java. The script is
located in http://www.some.bogus.site.com/product/script.js and the
function is called encrypt(). It takes as an input a string and returns a
different string. I have a Java application with the input string and need
to get the output script. I've been told I can use javascript: protocol to
access it via java.net.URL.
Does anyone have a code snippet that would call the function
encrypt("password") from a given javascript file and return the results as
a string in Java?