Thanks Bob. I have users load this via my interface, so I decided to simply put
up a help notice when a user uses this feature while off line. I will have to
modify my notice based on your note (below) re jsmol.php.
This (JavaScript load local/url command) is really a neat feature. I almost
missed it.
As an aside, I set up my wife’s new Windows 10 computer this week. Although my
stuff is all small molecule, I was pleasantly surprised at my page’s Jmol
response on Windows Edge. Running locally is another issue entirely, but the
served page was really good.
Otis
--
Otis Rothenberger
o...@chemagic.org
http://chemagic.org
> On Jun 13, 2016, at 8:42 PM, Robert Hanson <hans...@stolaf.edu> wrote:
>
>
>
> On Mon, Jun 6, 2016 at 10:25 PM, Otis Rothenberger <osrot...@icloud.com
> <mailto:osrot...@icloud.com>> wrote:
> Bob,
>
> I really like the convenience of the Jmol.loadFileFromDialog(jmolApplet0)
> feature, but I’d like to be able to trap a URL entry. When I run JSmol
> locally with no Internet connection, the jsmol.php file is not available for
> a URL that might need it. I’d like to trap a URL entry gracefully as needed
> below:
>
> 1) Model kit running via server - No trap needed.
> 2) Model kit running locally on computer WITH Internet connection: No trap
> needed.
> 3) Model kit running locally on computer WITH NO Internet connection: Trap
> needed.
>
> I detect all three states in my code. Is there a way to trap/check URL entry
> when code detects condition 3? Running locally with no Internet connection
> causes the page to hang on a URL entry looking for my jsmol.php file. I could
> trap condition 3 and turn off the dialog, but I’d like to keep it for local
> files.
>
>
> Otis,
>
>
> I think your best bet is to override
>
> Jmol._loadFileAsynchronously
>
>
> adding your own event handlers there. That code is in JSmolCore.js
>
> Local file loading never goes through JSmol.php. For local file reading, the
> data is always a byte array, so binary or otherwise, it's all the same.
>
>
> Bob
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports.
> https://ad.doubleclick.net/ddm/clk/305295220;132659582;e_______________________________________________
>
> <https://ad.doubleclick.net/ddm/clk/305295220;132659582;e_______________________________________________>
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net <mailto:Jmol-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/jmol-users
> <https://lists.sourceforge.net/lists/listinfo/jmol-users>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users