Miguel wrote:
OK, I see.I have identified the problem that you are having loading cif files inline.
It is a problem of nested quotes.
The <applet> tag has a parameter
<param name='loadInline' value='{your-data-goes-here}'>
I am enclosing your data in a single quote character. Since your data contains a single quote character then the _value_ attribute is getting the wrong value ... the rest of the data is being ignored.
This is a generic problem that will affect scripts too.
I need to look up the HTML specification for how to deal with nested
quotes within attributes.
Replacing with ´ seems to work, but I'm not sure that it's the correct character.
i.e.
myCif = myCif.replace(/'/g, "´");
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

