Re: [Jmol-users] State Question

2014-07-12 Thread Robert Hanson
send it to hans...@stolaf.edu not the list. So you basically have a mistake in your script writing. That's all. On Sun, Jul 13, 2014 at 12:32 AM, Otis Rothenberger wrote: > Bob, > > I tried to send the state script, but it was too large. Here's the only > error that I see: > > script compiler E

Re: [Jmol-users] State Question

2014-07-12 Thread Otis Rothenberger
Bob, I tried to send the state script, but it was too large. Here's the only error that I see: script compiler ERROR: command expected It looks like it's choking on the append portion of the state script. Otis On Sat, Jul 12, 2014 at 12:31 PM, Robert Hanson wrote: > I d

Re: [Jmol-users] JMol PHP Recentl error with Firefox 30

2014-07-12 Thread Otis Rothenberger
Bob, I'm afraid I don't have error reports, but I though I should point this out. RCSB search is broken for me also, and I'm running an older version of Jmol: 14.1.12_2014.03.21 with the php file on the same server at ISU - i.e. no cross domain issue. Has something possibly changed at RCSB? I c

Re: [Jmol-users] Drag/Drop

2014-07-12 Thread Robert Hanson
Tip: ​If you ever have to go into JSmol.min.js, just copy js/JSmol.full.js to JSmol.min.js and look at that instead. -- ___ Jmol-users mailing list Jmol-users@lists.sourceforge.ne

Re: [Jmol-users] Problem with .find?

2014-07-12 Thread Robert Hanson
Now there's a good find! Wow. ___JmolVersion="14.2.3_2014.07.12" bug fix: x.func(y) as second operand in a boolean "and" operation where the first operand evaluates to FALSE (so that x.func(y) is never evaluated), triggers a script error. also fixed in 14.3.3 ​Will release th

Re: [Jmol-users] bond-plane angle

2014-07-12 Thread Robert Hanson
(using Jmol scripting here) Three atoms @1, @2, and @3, define a plane.Then *var n = cross(@1.xyz - @2.xyz, @3.xyz - @2.xyz)* is a vector normal to that plane. Two atoms, @4, @5, define the bond. Then *var b = @5.xyz - @4.xyz* is the vector from atom 4 to atom 5. Then *var a = angle(n, 0

Re: [Jmol-users] State Question

2014-07-12 Thread Robert Hanson
I don't think that is the issue. But this is very inefficient: for (var i = 1; i < {*}.length +1; i++){ {*}[i].atomno = i } What you want there is: var n = {*}.length; for (var i = 1; i <= n; i++){ {*}[i].atomno = i } Still that should not be it. Aren't you getting some sort of error messages?

Re: [Jmol-users] create screen shot from within JSMol?

2014-07-12 Thread Angel Herráez
Hi Hans Absolutely! Several ways to do it. 1. pop-up menu > File > Export > 2. if you want to be part of your page, e.g. from a link or button, use JmolScript like: write png ? -- ___

Re: [Jmol-users] create screen shot from within JSMol?

2014-07-12 Thread Robert Hanson
Certainly. Both in Java and HTML5 versions, you simply issue: write image t.png It will appear as a download. Bob On Sat, Jul 12, 2014 at 10:59 AM, Hans Horn wrote: > Folks, > > is it possible to create a screen shot (and save it as a picture) from > within JSMol? > > thx., > H > > > -

Re: [Jmol-users] JMol PHP Recentl error with Firefox 30

2014-07-12 Thread Robert Hanson
Keeping going with this -- -- the problem is not related to that message. That message is just a message, I believe. I am seeing that message as well, and I am using Firefox 30.0. -- the problem is probably with my recent changes to jmol.php to make it serve up JavaScript (See the Wikipedia entry

[Jmol-users] create screen shot from within JSMol?

2014-07-12 Thread Hans Horn
Folks, is it possible to create a screen shot (and save it as a picture) from within JSMol? thx., H -- ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lis

Re: [Jmol-users] JMol PHP Recentl error with Firefox 30

2014-07-12 Thread Robert Hanson
This message "Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/“ is troublesome. I'm looking into this. Bob -- Robert M. Hanson Larson-Anderson Professor of Chemistry Chair, De

Re: [Jmol-users] The url for JMol PHP Recentl error with Firefox 30

2014-07-12 Thread Robert Hanson
You have implemented a need for binary files from your site without providing the PHP file necessary. That needs to come from your site, not mine. Thus the "your.server.here" link. http://wiki.jmol.org/index.php/Jmol_JavaScript_Object#Reading_binary_files On Sat, Jul 12, 2014 at 6:15 AM, Angel H

Re: [Jmol-users] The url for JMol PHP Recentl error with Firefox 30

2014-07-12 Thread Angel Herráez
Sorry I was confused at the beginning between your using jmol.php and the error mentioning jsmol.php. They are different things. Nick's previous reply is more enlightening and precise, and inded it seems that there has been a change is Firefox's policy about protocols. I am not seeing that exact