From: Robert H. <ha...@st...> - 2009-12-18 15:21:44
|
Interesting. "inline data" is not a recognized data header. I'm surprised Jmol is saving that in the state. What version of Jmol is this? (Could be a difference with 11.8 vs. 11.6, I suppose.) generally to get the data you would use var data = jmolScriptWait("show data") Bob On Thu, Dec 17, 2009 at 10:39 PM, Jonathan Gutow <gu...@uw...> wrote: > Anybody see what I'm doing wrong? > > var stateStr = jmolGetPropertyAsString("stateInfo", "all", n); > ...stuff to build a popup > jmolApplet("100%", scriptStr, jmol_count); > > This seems OK until it gets to the inline data in the script, then it > fails with the warning that it can't find the file. > > The problem lines of the state script seem to be > > data "inline data" > empty > 10 > Xx ## ## ## > Xx ##... > ... > ... > end "inline data" > > The warning returns "empty10Xx ## ## ..." as the offending line. > > This looks like a problem with the script parser looking for linefeeds > or returns, but I haven't been able to fix it by adding or replacing > linefeeds and returns. Interestingly, if I replace all linefeeds in > the script with <br>, write it to another <div> on the page and then > copy the script to a plain vanilla text editor and then copy it into > the console of a new applet it works fine. Trying to use the script > in the <div> instead of directly passing the string doesn't work either. > > Any ideas? > > Thanks, > Jonathan > > Dr. Jonathan H. Gutow > Chemistry Department gu...@uw... > UW-Oshkosh Office:920-424-1326 > 800 Algoma Boulevard FAX:920-424-2042 > Oshkosh, WI 54901 > http://www.uwosh.edu/facstaff/gutow > > > > > > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Jmol-users mailing list > Jmo...@li... > https://lists.sourceforge.net/lists/listinfo/jmol-users > -- Robert M. Hanson Professor of Chemistry St. Olaf College 1520 St. Olaf Ave. Northfield, MN 55057 http://www.stolaf.edu/people/hansonr phone: 507-786-3107 If nature does not answer first what we want, it is better to take what answer we get. -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 |