Miguel,
This is a general problem with the <param name="loadInline"> functionality.
Clearly one needs to be able to transmit both double-quote and quote characters to Jmol. Since \" and \' are NOT recognized by HTML, your solution to use ´ is fine, PROVIDED Jmol does the reverse as part of the loadInline function.
Is that the plan?
Bob
Todd Beverly wrote:
Miguel wrote:
I have identified the problem that you are having loading cif files inline.OK, I see.
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
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users
-- Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107 Professor of Chemistry, St. Olaf College 1520 St. Olaf Ave., Northfield, MN 55057 mailto:[EMAIL PROTECTED] http://www.stolaf.edu/people/hansonr
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users