On 6/25/2010 2:42 PM, Angel Herráez wrote:
It is probably true on a desktop, but I do not think this is correct on a server. If a MIME type is not set, a file like.smol (or even jvxl) will not be read by the web app.

I'm quite sure of this: Jmol does not care about MIME type. It may be that your server serves the files in a different way depending on their type, but I've never seen such a problem with Jmol. Remember that the web page does not link to or request the file, it is Jmol who does. I've used free (restricted) servers that don't allow me to upload a certain file type based on their extension, but MIME or Jmol have nothing to do there. By the way, try renaming the file e.g. to molecule.smol.txt. I've used that trick successfully with pdb files. Also, consider that Jmol reads both plian text files (like mol or pdb) and binary files (e.g. gzipped files) Are smol files binary?.

For Jmol it may not matter what the file is, but somehow the server does not know (without file extension association) that a file (smol or even jvxl) should be served to Jmol. Since the association asks for MIME type, I thought I have it set "correctly". I was hoping somebody would know the true MIME for smol.

[...]

Sorry I cannot help with the details of file parsing (when vibration and surfaces are there). Bob Hanson is your man for that; wait for his reply (or investigate the file reader yourself
http://jmol.svn.sourceforge.net/viewvc/jmol/trunk/Jmol/src/org/jmol/adapter/readers/quantum/



I have just started using Jmol and my plan was to be only the "end-user". I will keep my fingers crossed and hope that somebody will be able to provide more guidance on smol files with multiple surfaces and vibrations.

Thank you for all your help!

PM
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to