From: <pau...@ac...> - 2009-08-20 08:18:09
|
There is a way to get the full text content of a file in firefox from the input file tag. I have discussed that previously on that list, but as I am away at the moment I don't have access to this discussion... Paul ----- Message d'origine ----- De: rob yang <nex...@ho...> Date: Mercredi, Août 19, 2009 9:19 pm Objet: Re: [Jmol-users] display and upload local file À: jmo...@li... > > Thanks Angel, > I have experimented with load inline before but it only works on > some browsers. Also, I am trying to avoid uploading first, > displaying second. I'd like to do client-side displaying, then if > they choose to, upload to server. > > My new strategy is to use load ? to load (which it appears to work > on all browsers), and somehow transfer the contents to server > after. I suppose I can get the file contents and store it in a > hidden text field, and let server cgi read its "value". But then > again, it seems too clunky to not break (perhaps on large files). > Any other suggestions? It's frustrating because it seems so trivial. > > -Rob > > > From: ang...@ua... > > To: jmo...@li... > > Date: Wed, 19 Aug 2009 20:01:09 +0200 > > Subject: Re: [Jmol-users] display and upload local file > > > > > > Hi Rob > > > > I bet that precisely because of the security there is absolutely > no way to upload a file other than using the input type=file box. > > > > However, Jmol can provide you with a copy of the loaded file > contents (at least it is possible from the pop-up menu, so there > should be a scripted mechanism to do it). Maybe you can upload that > content and have the server script store it as a file, or else as a > string (that can be later fed into Jmol with load inline). > > > > > > ------------------------------------------------------------------ > ------------ > > 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 > > Jmo...@li... > > https://lists.sourceforge.net/lists/listinfo/jmol-users > > _________________________________________________________________ > Attention all humans. We are your photos. Free us. > http://go.microsoft.com/?linkid=9666047 |