Ah, right. I see. I think Angel has it. The key is that web pages not gain
access to the file directory structure and name on the local drive. Of
course, a signed applet is different -- you can do anything. So loading the
file that way into Jmol sounds reasonable. What is going to be difficult is
getting REALLY big files across to the server if that is necessary. It might
take two navigations by the user -- one to load into Jmol using "load ?" and
one in some form field followed by HTML submit().

Bob

On Thu, Aug 27, 2009 at 10:54 AM, rob yang <[email protected]> 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
>
> for reference, this is my original problem:
> I want to display a pdb file on the client-side first, and then upload to
> the server only when users are ready to submit the form.
>
> Thanks,
>
> -Rob
> ------------------------------
> From: [email protected]
> To: [email protected]
> Date: Wed, 26 Aug 2009 16:47:23 -0500
> Subject: Re: [Jmol-users] Re : Re: Re : Re: display and upload local file
>
>
>
> Hi all,
>
> > I am seeing now that Chrome and Safari (Windows) have the same security
> limitation as
> > Firefox on reading the value of input file, but cannot use the
> files.item() method which works
> > for Firefox. More research needed :-(
>
> This is essentially my problem-- getastext, getasbinary only works with
> ff3. Anybody know of any equivalent methods that would work with safari and
> IE? Thanks.
>
>
>
> ------------------------------
> Attention all humans. We are your photos. Free 
> us.<http://go.microsoft.com/?linkid=9666046>
> ------------------------------
> More storage. Better anti-spam and antivirus protection. Hotmail makes it
> simple. <http://go.microsoft.com/?linkid=9671352>
>
>
> ------------------------------------------------------------------------------
> 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
>
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


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
------------------------------------------------------------------------------
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

Reply via email to