Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

152
Visualizações
Reading out data from .js file functions

I have a following problem: I have .js file with a function which basically does calculations based on the position of scrollers. Inside the .js file there's a function do_calc(); which updates results of calculations and there are a lot of parameters such as:

        var start_remaining_mileage = Math.round(start_remaining_battery_power / average_vehicle_efficiency * 100);
    
    jQuery('#res_start_remaining_mileage').text(start_remaining_mileage);

I have a hard time figuring out how to read out these variables in my .jsp page. Probably there's some function for that, but I tried like 10 different methods and nothing works. Everything's set right in header file and so on. Maybe you know some function that would help me? Thank you!

In addition, I'm trying to recreate something like on this website when you choose car and you see how much time it takes to charge it. I want values on my page to be updated in the similar way.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda