On Feb 18, 2013, at 9:43 AM, [email protected] wrote:
> very very nice example.
Thanks. As you can guess, I'm trying to get all the kinks worked out before I
embed this in the SAGEmath server package. Because the computational load on
these severs can be high (meaning they can respond slowly), I intend to avoid
server-side help if at all possible.
> OK, so those are PNGJ format files, which are
> binary. What are you using for your server piece for that? MSIE also
> cannot read binary files that way. Oh, here it is:
I generate them using headless Jmol on the server. The PNGJ files are for the
static display of the 3D graphs. Thus they can be directly downloaded and
opened in Jmol.
>
> [09:31:55.530] ({color:"black", width:300, height:300,
> addSelectionOptions:false, serverURL:"
> http://chemapps.stolar.edu/jmol/jsmol/jsmol.php", defaultModel:"",
Good catch on the spelling. Thanks. I had meant to take that out completely as
I don't want to generate cross-domain calls, or server calls once the page is
downloaded.
> Note that you spelled "stolaf" incorrectly there. But that needs to point
> to a file on YOUR server, so that it is not a cross-domain call. (I think
> there's a hitch with cross-domain synchronous binary AJAX with some
> browsers.) That really should fix your problem.
>
> Just for reference, the issue that we have is a combination of:
>
> -- Jmol needs to read files synchronously, because file reading may be
> deeply embedded in scripts
> -- Jmol needs to read binary files
I think for SAGE and WebExport, I can avoid this (although files will get
bigger). Which reminds me. Do we have a final result on the best way to
compress the J2s-JSmol files?
> -- Some applications of Jmol need cross-domain access
> -- Some applications of Jmol need local file access
This may be an issue for WebExport. Not a problem for the server based math
package.
>
> As far as I can tell, we are the first to address all these issues. jQuery
> by itself, out of the box, for example, cannot handle synchronous binary
> file transfer.
>
> In addition, there will always be a problem with that last one -- local
> file access -- because some browsers simply will not let AJAX do that.
> People requiring local file access need to use specific browsers and
> possibly specific platforms. There is no problem at all with
> Firefox/Windows. MSIE and Chrome cannot do local file access by AJAX.
> That's about all I know.
My local access experience on MacOS is similar. I haven't fired up one of my
Linux systems with a GUI to check Linux yet.
Dr. Jonathan H. Gutow
Chemistry Department [email protected]
UW-Oshkosh Office:920-424-1326
800 Algoma Boulevard FAX:920-424-2042
Oshkosh, WI 54901
http://www.uwosh.edu/facstaff/gutow/
------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet,
is your hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials, tech docs,
whitepapers, evaluation guides, and opinion stories. Check out the most
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users