wow. this file API sounds a great way to overcome javascript's limitation
with handling local files.
u can do it, Bob! take your time. but, this would really revolutionize
JSmol if one could also upload and save files.
cheers
amjad
On Thu, Sep 12, 2013 at 6:41 PM, Robert Hanson <[email protected]> wrote:
> let me see what I can do with this:
> http://www.html5rocks.com/en/tutorials/file/dndfiles/
>
> But there will be one problem -- this will be asynchronous, meaning you
> will not be able to embed it in a script for now. Not necessarily out of
> the question, but we'll see.....
>
>
> On Thu, Sep 12, 2013 at 10:40 AM, Angel Herráez <[email protected]>wrote:
>
>> Paul Pillot wrote:
>> > I think it is possible through the javascript file api to get access
>> > to the content of a local file,
>> > and then send this content to Jsmol with the "load data" function.
>>
>> I doubt that a webpage coming from an external server will be allowed
>> to fetch a file from local disk programmatically. That's basic
>> security; you do not want pages stealing your files.
>> I was hoping that you could load a file chosen by the user from a
>> dialog, but it seems not to be the case either. Jmol-Java can do it
>> but only with the signed applet, to which the user has to give
>> permission before.
>>
>> In addition, browser policies are becoming more and more restrictive
>> (right now I am unable to run my own webpages using unsigned Jmol
>> applets from my own hard disk).
>>
>> > Amjad Farooq wrote:
>> > But, I think I would continue using Jmol for now but switch to JSmol
>> > when the file upload/save feature becomes available. That is very
>> > important to me and I cannot do away with it.
>>
>> OK. An intermediate option is to change your pages now to the new JSO
>> method but setting the Java option. It will be trivial to switch that
>> to using HTML5 JSmol in the future.
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> How ServiceNow helps IT people transform IT departments:
>> 1. Consolidate legacy IT systems to a single system of record for IT
>> 2. Standardize and globalize service processes across IT
>> 3. Implement zero-touch automation to replace manual, redundant tasks
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>
>
>
> --
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> St. Olaf College
> Northfield, MN
> http://www.stolaf.edu/people/hansonr
>
>
> 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
>
>
>
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. Consolidate legacy IT systems to a single system of record for IT
> 2. Standardize and globalize service processes across IT
> 3. Implement zero-touch automation to replace manual, redundant tasks
> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users