On 27 Aug 2009 at 10:54, rob yang wrote: > > What do people think about this strategy: > > To display client-side local file: > Use jmol "load ?". > > To upload the file to the server side when the user hits a button: > get the absolute path of the local file from jmol, > Use xmlhttprequest send() to upload the file to server
Sounds OK to me (but I know nothing about smlhttprequest). What I gather from my searches related to this problem: - First Firefox 3, but then all major browsers are disallowing the reading of file path from the file input control. (My IE8 is the only one that still allows it, but I read reports to the contrary, so it may be coming in an update) - Firefox 3 implemented the files.item(0) object, as well as a way to read the file contents, using getAsBinary() or getAsText() - Other browsers (Safari, Chrome) have also implemented files.item(0), but NOT getAsBinary() So this is a useless method outside Ff. - No solution in Opera, which also blocks the path. So it seems that the only way out is having Jmol get the file first, then find a way to upload it, as you are doing. The IMHO more elegant way of using the file input control to choose and upload the file is blocked. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

