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                                 [email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to