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

161
Visualizações
Onclick method not calling the jmol applet.?

I am trying to load the jmol applet when click the button, I have tried the following function

<script>
    var xax = new jmolInitialize("jsmol");
    function myfunction(cc) {
    console.log("CC is", cc);
    window.a = 'TYR'; 
    window.b = '613'; 
    window.c = 'A'; 
    window.d = 'ADE'; window.e = '902'; window.f = 'A'; window.average_a = '33.409 26.811 6.327'; window.average_b = '32.137 23.485 4.709';
    jmolApplet(450, `load static/1z8d.pdb; background [0,0,0]; display [${a}]${b}:${c},[${d}]${e}:${f}; delay 1;zoom 400; color echo white; set echo top left; echo 1Z8D;measure {${average_a}}{${average_b}};set measurement angstroms;`, "0");
    }
// myfunction("ddd"); it is working
</script>

If I call the method directly after initializing it is working fine. But if I call the method onbutton click this method is not jmolapplet is not loading.

I am not sure, what is the problem here.

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