Re: [Jmol-users] Load URL

2016-06-13 Thread Otis Rothenberger
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  wrote:
> 
> 
> 
> On Mon, Jun 6, 2016 at 10:25 PM, Otis Rothenberger  > 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___
>  
> 
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net 
> 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


Re: [Jmol-users] Load URL

2016-06-13 Thread Robert Hanson
On Mon, Jun 6, 2016 at 10:25 PM, Otis Rothenberger 
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___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] Load URL

2016-06-06 Thread Otis Rothenberger
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.

One more question: Under what conditions will a local file entry into 
Jmol.loadFileFromDialog(jmolApplet0) dialog look for jsmol.php. I assume a 
binary file needs to go to jsmol.php. Is that correct?

Otis


--
Otis Rothenberger
o...@chemagic.org
http://chemagic.org


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