Hi, I'm making a page and I'd like to start an applet (Jmol) and display it near the button of the current page when a button is clicked. However, I get a syntax error: "missing ; before statement"
The code I have is as follow:
document.getElementById("viewMol").innerHTML = 'jmolInitialize("../jmol-12.0.48", true); jmolAppletInline(300, \'\', "load \$' + SMILES + '");' ;
print "<script id=\"viewMol\"></script>";
The syntax error occurs at the single quote in
...").innerHTML = 'jmolInitialize("...
I have been able to get this applet to run when not in a function.
Has anyone run into this before and can give me a hand?