On 2005-01-08 (08:23) Rich wrote:
>On 1/6/05 20:18, Miguel wrote:
>
>>>if I read the pdb contents into a string (properly constructed, it
>>>works in FireFox) and use:
>>>
>>>jmolApplet(480); jmolLoadInline("$pdb");
>>>
>>>the I get a crash in Safari:
>>>
>>I agree that this should work.
>>
>>There is a known problem with jmolLoadInline that occurs if your file
>>has embedded single quote characters.
>>
>>Please confirm that your pdb file does not contain single quote
>>characters.
>>
>No quote characters of any kind. This file just has a list of HETATM
>entries and I replace the \n with | when generating the $pdb string.
>
I've seen similar errors thrown by Safari using loadinline (outside of
Jmol.js). never an app crash, but NullPointerExceptions. I fixed it by
removing leading and trailing linebreaks in the param tag.
for example, Safari complains at this:
param = "loadinline" value="
|ATOM
|ATOM
"
but not this:
param = "loadinline" value="|
|ATOM
|ATOM
|"
not sure if that applies in your case, but thought I'd offer it up. :-)
regards,
tim
--
Timothy Driscoll
molvisions - see, grasp, learn.
<http://www.molvisions.com/>
usa:north carolina:wake forest
"Unix gives you just enough rope to hang yourself -- and then a couple of more
feet, just to be sure." - Eric Allman
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users