0

I know that sounds a little weird.

But I need to call a node.js method from a Java code.

Is it possible? If so, how can I do that?

I already tried to solve my problem with nashorn but it doesn't run jquery, and I can't do what I need with simple javascript.

10
  • Could you share some of what you need to do with node.js? Perhaps the problem can be solved in a way you haven't thought of.
    – clesiemo3
    Aug 3, 2015 at 16:13
  • 2
    I need to check the size of an element inside a html file. I can't do that font end side because it's an API. Check this info in the "hard" way is hard :P because I can have the height/width defined by inline css, external css, js... So, I could do this with pure JS, but I only have the complete HTML, so, I can only create an element "iframe" and set the "innerHTML", and doing that, I couldn't get the element I need because JS not return the elements inside the iframe, I don't know why
    – Gabrielle
    Aug 3, 2015 at 16:16
  • JAVA and javascript are not the same. While there are ways to make interoperability of languages work, you're probably going about this the wrong way. What is your actual problem? Aug 3, 2015 at 16:17
  • @NoseKnowsAll Hi, I know they aren't the same, that's why I need to use both... I need front end info inside my backend code...
    – Gabrielle
    Aug 3, 2015 at 16:20
  • @clesiemo3 Any idea?
    – Gabrielle
    Aug 3, 2015 at 18:26

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.