Re: [Jmol-users] problem in firefox

2008-08-27 Thread Robert Hanson
My experience is the "appendChild" is overkill for what you generally need.
Just make sure you have

jmolSetDocument(0)

and then the "applet" you get from

var x = jmolApplet(.)

can be inserted into any div. HOWEVER, as I recall there are problems with
some browsers not being able to communicate properly with applets created
after the page is loaded. I could be wrong about that, but I think Opera is
the offender.

Here's a snippet from
http://www.stolaf.edu/people/hansonr/sudoku/sudoku3d.js that loads an applet
into a div after page load for
http://www.stolaf.edu/people/hansonr/sudoku/to show a 3D version of
the logical pathways of a Sudoku puzzle.

function createAppletInline(smodel,script){
if(isjmolinitialized && !isjmolreset && !isliveconnecterror){
isliveconnecterror=1
document.getElementById("jmolApplet0").script(script)
isliveconnecterror=0 //won't get here if we have a LiveConnect 
error (Opera)
return
}
if(!isjmolinitialized)jmolInitialize(".")
isjmolinitialized=1
isjmolreset=0
jmolSetDocument(0)
var s=jmolApplet(450,"set perspectivedepth OFF;"+script,"0")
s=addParam(s,"loadInline",smodel.replace(/\n/g,"|"))
s=addParam(s,"messageCallback","clickModel")
document.getElementById("apphere").innerHTML=s

}

were the addParam function inserts a parameter code into the HTML before it
is sent out. I'm pretty sure Opera doesn't allow this.

function addParam(sappcode,sname,svalue){
return sappcode.replace(/\\n wrote:
>
> Believe me I've been doing plenty of that, but I also have been finding
> trial and error to be very instructive too.  I did take a look at your
> divs.js file.  I don't yet understand all of it.  I tried your divFind and
> divWrite functions and I'm pretty sure I'm understanding what they do.
>  Unfortunately the divWrite doesn't do what I want.  I want to put a Jmol
> applet into the div and this function appears to only write text into a div.
>  I tried divWrite(jmolID, newJmol) and divWrite(jmolID, eval(newJmol) where
> jmolID is a variable that holds the div's id and newJmol is a Jmol applet
> object.  Unfortunately both off these do the same thing which is to write
> the function used to create the Jmol applet object into the into the div as
> text.
> I've also tried the following code:
>
> document.getElementById(jmolID).appendChild(newJmol);
>
> which produces the following error message in FireBug:
>  uncaught exception: Node cannot be inserted at the specified point in the
> hierarchy (NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)
>
>
> document.getElementById(jmolID).update(newJmol);
>
> gives the error:  document.getElementById(jmolID).update is not a function
>
>
> I've tried several variations.  I got it to work once using:
> newDiv.update(jmolApplet(400, eval(_jmolApplet.loadString))); where newDiv
> was a reference to a div element, but this only worked in Safari and not
> Firefox.
>
> Unfortunately, everywhere I've read about adding something to a div element
> the something being added is text.  I can't find anywhere that gives an
> example off adding some other kind of object.
>
> Perhaps I should give it up.  I thought it would be possible to create a
> Jmol applet object and add it to the web page.  Then I would be able to
> include methods in the Jmol applet object constructor to change jmol
> parameters and such.  Obviously there are other ways to do that, but this
> just seems an attractive way to me for some reason.
>
>
> ***
> Jeff Hansen
> Department of Chemistry and Biochemistry
> DePauw University
> 602 S. College Ave.
> Greencastle, IN 46135
> [EMAIL PROTECTED]
> ***
>
>
> On Aug 27, 2008, at 2:14 PM, Robert Hanson wrote:
>
> >> I'm working towards my own at this point and I'm afraid looking at yours
> will just prevent my learning how to do it myself.
>
> Shame! NEVER say that! The way to learn this is by adapting anything you
> can find. That's the great thing about JavaScript. Learn how these code
> fragments work by testing it in your own application. You will learn lots.
>
> Bob
>
> --
> Robert M. Hanson
> Professor of Chemistry
> St. Olaf College
> Northfield, MN
> http://www.stolaf.edu/people/hansonr
>
>
> If nature does not answer first what we want,
> it is better to take what answer we get.
>
> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
>  -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
>
> http://moblin-contest.org/redirect.php?banner_id=100&url=/___
> Jmol-users mailing list
> Jmol-users@list

Re: [Jmol-users] Hack to deal with Firefox 3 new behaviour regarding Files Input

2008-08-27 Thread Robert Hanson
yes, thanks, Paul, that's right. It's an interesting compromise. I had to
abandon the type=file in Jmol Protein Explorer for FireFox3 because of that.
If you can't get the actual path to the file, which I think is actually a
good security feature, you can't later reproduce the state, unless you want
to load the entire file as a DATA string. (Which may not be such a bad idea,
I guess.)



On 8/27/08, Paul Pillot <[EMAIL PROTECTED]> wrote:
>
> This one might also be regarded as off topic, but as some you might
> be stuck with the same problem, I thought it might be worth to share.
> The issue is that starting from firefox 3.0, when using an input file
> element in a form, you can't access to the full path of the file
> chosen by the user, even if it's fully displayed in the form. e.g. : /
> user/paul/3ert.pdb. From javascript, the file.value string would give
> you only the file name  (eg : 3ert.pdb).
> I didn't find any way of getting the full path back. However one can
> now access to the whole file content directly from javascript, using
> the getAsText method. Coupled with the jmolLoadInline function, it
> allows to load any local file into the Jmol applet. For example I
> successfully used the following code :
>
> 
>
> It worked smoothly with any plain text file. It didn't work with a
> gzipped file, giving back a "unrecognized file format for file
> string" error message.
>
> Paul
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] Hack to deal with Firefox 3 new behaviour regarding Files Input

2008-08-27 Thread Paul Pillot
This one might also be regarded as off topic, but as some you might  
be stuck with the same problem, I thought it might be worth to share.
The issue is that starting from firefox 3.0, when using an input file  
element in a form, you can't access to the full path of the file  
chosen by the user, even if it's fully displayed in the form. e.g. : / 
user/paul/3ert.pdb. From javascript, the file.value string would give  
you only the file name  (eg : 3ert.pdb).
I didn't find any way of getting the full path back. However one can  
now access to the whole file content directly from javascript, using  
the getAsText method. Coupled with the jmolLoadInline function, it  
allows to load any local file into the Jmol applet. For example I  
successfully used the following code :



It worked smoothly with any plain text file. It didn't work with a  
gzipped file, giving back a "unrecognized file format for file  
string" error message.

Paul

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] problem in firefox

2008-08-27 Thread Jeff Hansen
Believe me I've been doing plenty of that, but I also have been  
finding trial and error to be very instructive too.  I did take a look  
at your divs.js file.  I don't yet understand all of it.  I tried your  
divFind and divWrite functions and I'm pretty sure I'm understanding  
what they do.  Unfortunately the divWrite doesn't do what I want.  I  
want to put a Jmol applet into the div and this function appears to  
only write text into a div.  I tried divWrite(jmolID, newJmol) and  
divWrite(jmolID, eval(newJmol) where jmolID is a variable that holds  
the div's id and newJmol is a Jmol applet object.  Unfortunately both  
off these do the same thing which is to write the function used to  
create the Jmol applet object into the into the div as text.


I've also tried the following code:

document.getElementById(jmolID).appendChild(newJmol);

which produces the following error message in FireBug:

uncaught exception: Node cannot be inserted at the specified point in  
the hierarchy (NS_ERROR_DOM_HIERARCHY_REQUEST_ERR)



document.getElementById(jmolID).update(newJmol);

gives the error:  document.getElementById(jmolID).update is not a  
function



I've tried several variations.  I got it to work once using:  
newDiv.update(jmolApplet(400, eval(_jmolApplet.loadString))); where  
newDiv was a reference to a div element, but this only worked in  
Safari and not Firefox.


Unfortunately, everywhere I've read about adding something to a div  
element the something being added is text.  I can't find anywhere that  
gives an example off adding some other kind of object.


Perhaps I should give it up.  I thought it would be possible to create  
a Jmol applet object and add it to the web page.  Then I would be able  
to include methods in the Jmol applet object constructor to change  
jmol parameters and such.  Obviously there are other ways to do that,  
but this just seems an attractive way to me for some reason.



***
Jeff Hansen
Department of Chemistry and Biochemistry
DePauw University
602 S. College Ave.
Greencastle, IN 46135
[EMAIL PROTECTED]
***


On Aug 27, 2008, at 2:14 PM, Robert Hanson wrote:

>> I'm working towards my own at this point and I'm afraid looking  
at yours will just prevent my learning how to do it myself.


Shame! NEVER say that! The way to learn this is by adapting anything  
you can find. That's the great thing about JavaScript. Learn how  
these code fragments work by testing it in your own application. You  
will learn lots.


Bob

--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-
This SF.Net email is sponsored by the Moblin Your Move Developer's  
challenge
Build the coolest Linux based applications with Moblin SDK & win  
great prizes
Grand prize is a trip for two to an Open Source event anywhere in  
the world

http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] problem in firefox

2008-08-27 Thread Robert Hanson
>> I'm working towards my own at this point and I'm afraid looking at yours
will just prevent my learning how to do it myself.

Shame! NEVER say that! The way to learn this is by adapting anything you can
find. That's the great thing about JavaScript. Learn how these code
fragments work by testing it in your own application. You will learn lots.

Bob

-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] problem in firefox

2008-08-27 Thread Jeff Hansen
Thanks. Bob.  Using document.getElementById('jmolText'); worked.   
Thanks for sharing your .js file as well.  I'll probably take a look  
at it at some point.  I'm working towards my own at this point and I'm  
afraid looking at yours will just prevent my learning how to do it  
myself.



***
Jeff Hansen
Department of Chemistry and Biochemistry
DePauw University
602 S. College Ave.
Greencastle, IN 46135
[EMAIL PROTECTED]
***


On Aug 27, 2008, at 11:57 AM, Robert Hanson wrote:

Right -- "name" attribute is quite problematical. In some browsers  
"id" is accessible as "name", but that's not acceptable. And in some  
browser versions the name of an element in a form is under the form  
name rather than the document.


Always use "id" and, as Dean points out, then access it only using  
document.getElementById()


Most of us create a scrap of JavaScript that we put in all our pages  
that provides us these services.

One I use is http://www.stolaf.edu/depts/chemistry/gca/divs.js

Bob



On Wed, Aug 27, 2008 at 10:19 AM, Dean Johnston  
<[EMAIL PROTECTED]> wrote:

Jeff,

  No apologies needed.  Giving an id to a  does not create a  
Javascript object automatically (at least in Firefox).  You will  
have to use something like:


var myText = document.getElementById('jmolText');

and then say

myText.value = dump(_dataInfo);

It's interesting that it does work in Safari.

Dean



On Wed, Aug 27, 2008 at 11:05 AM, Jeff Hansen <[EMAIL PROTECTED]>  
wrote:

My apologies.  This is really more of a javascript/html question but
it is on a Jmol project I am working on.  Could someone explain to me
what is the problem with the following code?  The appletReady()
function works just fine in Safari and the page validates as HTML 4.01
strict, but the appletReady() function doesn't work in Firefox.
Firebug reports an error and says jmolText is not defined.

function appletReady() {
var _dataInfo = jmolGetPropertyAsArray("auxiliaryInfo");
jmolText.value = dump(_dataInfo);
}

...








The page is at http://web.mac.com/jhansen4/Jmol/NewJmolDiv.html if
that will help.


***
Jeff Hansen
Department of Chemistry and Biochemistry
DePauw University
602 S. College Ave.
Greencastle, IN 46135
[EMAIL PROTECTED]
***



-
This SF.Net email is sponsored by the Moblin Your Move Developer's  
challenge
Build the coolest Linux based applications with Moblin SDK & win  
great prizes
Grand prize is a trip for two to an Open Source event anywhere in  
the world

http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's  
challenge
Build the coolest Linux based applications with Moblin SDK & win  
great prizes
Grand prize is a trip for two to an Open Source event anywhere in  
the world

http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users




--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-
This SF.Net email is sponsored by the Moblin Your Move Developer's  
challenge
Build the coolest Linux based applications with Moblin SDK & win  
great prizes
Grand prize is a trip for two to an Open Source event anywhere in  
the world

http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] problem in firefox

2008-08-27 Thread Rolf Huehne
Jeff,

it looks as if there would be some kind of timing problem. With the
version I got from your URL it sometimes works with Firefox 2.0.0.16 on
Linux and sometimes not.

===
function appletReady() {
var _dataInfo = jmolGetPropertyAsArray("auxiliaryInfo");
var _jmolText = document.getElementById('jmolText');
_jmolText.value = dump(_dataInfo);
}
===

I am wondering if you shouldn't define your textarea 'jmolText' before
calling 'jmolApplet'?

Regards,
Rolf


Jeff Hansen wrote:
> Dean,
> 
> Yeah, I thought of that and tried it, but that didn't work either.  In
> that case Firebug reports that getElementById is not defined.  So it
> seems for some reason Firefox isn't recognizing the textarea's id. 
> Incidentally, I get a similar error when I try the same with the textDiv
> div instead.
> 
> 
> Jeff
> 
> 
> ***
> Jeff Hansen
> Department of Chemistry and Biochemistry
> DePauw University
> 602 S. College Ave.
> Greencastle, IN 46135
> [EMAIL PROTECTED]
> ***
> 
> 
> On Aug 27, 2008, at 11:19 AM, Dean Johnston wrote:
> 
>> Jeff,
>>
>>   No apologies needed.  Giving an id to a  does not create a
>> Javascript object automatically (at least in Firefox).  You will have
>> to use something like:
>>
>> var myText = document.getElementById('jmolText');
>>
>> and then say
>>
>> myText.value = dump(_dataInfo);
>>
>> It's interesting that it does work in Safari.
>>
>> Dean
>>
>>
>> On Wed, Aug 27, 2008 at 11:05 AM, Jeff Hansen <[EMAIL PROTECTED]> wrote:
>> My apologies.  This is really more of a javascript/html question but
>> it is on a Jmol project I am working on.  Could someone explain to me
>> what is the problem with the following code?  The appletReady()
>> function works just fine in Safari and the page validates as HTML 4.01
>> strict, but the appletReady() function doesn't work in Firefox.
>> Firebug reports an error and says jmolText is not defined.
>>
>> function appletReady() {
>> var _dataInfo = jmolGetPropertyAsArray("auxiliaryInfo");
>> jmolText.value = dump(_dataInfo);
>> }
>>
>> ...
>>
>> 
>> 
>> 
>> 
>> 
>>
>>
>> The page is at http://web.mac.com/jhansen4/Jmol/NewJmolDiv.html if
>> that will help.

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] unexpected image scaling

2008-08-27 Thread Robert Hanson
Thanks. [States as attachments would be better] That's fixed for 11.6.RC11.

On Tue, Aug 26, 2008 at 3:03 PM, Thomas Stout <[EMAIL PROTECTED]>wrote:

>
> I have a stripped down Jmol implementation that I am using for debugging.
> It contains nothing but the applet:
>
> 
> 
> 
> 
> 
> Testing Jmol
> 
>  
> 
> 
> 
> jmolInitialize("./");
> jmolSetAppletColor("black");
> jmolApplet(512, "script testecho.spt;", 0);
> 
> 
> 
> 
>
>
> And the script "testecho.spt" contains the following:
> set antialiasdisplay ON;
> set echo none;
> set frank off;
> set fontscaling false;
> set echo depth 0;
> set echo mybackground 43% 83%;
> set echo mybackground image "star2.gif";
>
> I am still using the applet of version 11.6RC7 -- perhaps I should download
> and test whatever the most current RC version is today.
>
> -Tom
>
>
>
>
> On Tue, Aug 26, 2008 at 8:56 AM, Robert Hanson <[EMAIL PROTECTED]> wrote:
>
>> I cannot reproduce this problem. Are you sure you have not already defined
>> mybackground PRIOR to the set fontscaling false command?
>> set fontscaling only affects echos created after its invocation.
>>
>>
>>
>> On Mon, Aug 25, 2008 at 5:34 PM, Thomas Stout <[EMAIL PROTECTED]>wrote:
>>
>>>
>>> Interesting.
>>>
>>> I have found today that "set antialiasDisplay ON" forces scaling of
>>> images even when "set fontscaling false" is set.
>>>
>>> Expected or no?  I was surprised & it took me a while to narrow it down
>>> to this one setting
>>>
>>> -Tom
>>>
>>> Here are some commands for testing:
>>>
>>> set antialiasDisplay ON;  #ON results in scaling the star, OFF gives
>>> no scaling
>>> set echo none;
>>> set fontscaling false;
>>> set echo depth 0;
>>> set echo mybackground 50% 50%;
>>> set echo mybackground image "star2.gif";
>>>
>>>
>>> PS -- This is all prior to loading a molecule.  I am having the Applet
>>> come up with a "logo" and then urging the user to pick a structure for
>>> display
>>>
>>>
>>> -
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the
>>> world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> ___
>>> Jmol-users mailing list
>>> Jmol-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>>
>>>
>>
>>
>> --
>> Robert M. Hanson
>> Professor of Chemistry
>> St. Olaf College
>> Northfield, MN
>> http://www.stolaf.edu/people/hansonr
>>
>>
>> If nature does not answer first what we want,
>> it is better to take what answer we get.
>>
>> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
>>
>> -
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> ___
>> Jmol-users mailing list
>> Jmol-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Echo with and tags

2008-08-27 Thread Robert Hanson
that's what I needed. Fixed. Vertical was off as well.

On Wed, Aug 27, 2008 at 10:56 AM, Angel Herráez <[EMAIL PROTECTED]>wrote:

> On 27 Aug 2008 at 10:57, Dean Johnston wrote:
> > OK, here is the state for ammonia, with a label of "Point Group =
> C3v" at the
> > bottom left. Without the tags the spacing is normal.
>
> Just typing it in the console of 11.6.RC10 app it looks Ok to me
> Maybe some combination with other scripts are doing it?
>
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Echo with and tags

2008-08-27 Thread Dean Johnston
Found it!  It's an artifact of the set antialiasDisplay (true).  (It only
appears unusual when a  or  tag it present *and* antialiasDisplay
is on.)  I'll leave it to Bob to track *that* one down...

Dean

On Wed, Aug 27, 2008 at 11:56 AM, Angel Herráez <[EMAIL PROTECTED]>wrote:

> On 27 Aug 2008 at 10:57, Dean Johnston wrote:
> > OK, here is the state for ammonia, with a label of "Point Group =
> C3v" at the
> > bottom left. Without the tags the spacing is normal.
>
> Just typing it in the console of 11.6.RC10 app it looks Ok to me
> Maybe some combination with other scripts are doing it?
>
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] unexpected image scaling

2008-08-27 Thread Thomas Stout
So, just to be thorough: it still does it for me in version 11.6RC10.  I've
tested Firefox 3.0 on linux, Firefox 3.0.1 on WinXP, IE on WinXP and Safari
on WinXP -- all behave similarly.  Turning on and off "set antialiasdisplay"
does appear to be the trigger

-Tom

Here's a state dump:

# Jmol state version 11.6.RC10  2008-08-14 22:55;
  # fullName = "jmolApplet0__3138035056739992__";
  # documentBase = "http://comte/structures4/sandbox_11.6RC10/test-jmol.html
";
  # codeBase = "http://comte/structures4/sandbox_11.6RC10/";;


function _setWindowState();
# height 512;
# width 512;
  stateVersion = 1106000;
  backgroundColor = "[x00]";
  axis1Color = "[xff]";
  axis2Color = "[x008000]";
  axis3Color = "[xff]";
  ambientPercent = 45;
  diffusePercent = 84;
  specular = true;
  specularPercent = 22;
  specularPower = 40;
  specularExponent = 6;
  statusReporting  = true;
end function;

function _setFileState();

  set allowEmbeddedScripts false;
  set autoBond true;
  set appendNew true;
  set appletProxy "";
  set applySymmetryToBonds false;
  set bondRadiusMilliAngstroms 150;
  set bondTolerance 0.45;
  set defaultDirectory "";
  set defaultLattice {0.0 0.0 0.0};
  set defaultLoadScript "";
  set defaultVDW Jmol;
  set forceAutoBond false;
  set loadFormat "http://www.rcsb.org/pdb/files/%FILE.pdb";;
  set minBondDistance 0.4;
  set pdbSequential false;
  set pdbGetHeader false;
  set percentVdwAtom 20;
  set smartAromatic true;
  ;
  zap;

end function;

function _setVariableState();

   set defaultanglelabel "%VALUE %UNITS";
   set defaultcolorscheme "Jmol";
   set defaultdirectory "";
   set defaultdistancelabel "%VALUE %UNITS";
   set defaultdrawarrowscale 0.5;
   set defaultlattice "{0 0 0}";
   set defaultloadscript "";
   set defaulttorsionlabel "%VALUE %UNITS";
   set defaulttranslucent 0.5;
   set defaultvdw "Jmol";
  set allowembeddedscripts true;
  set allowrotateselected false;
  set appletproxy "";
  set applysymmetrytobonds false;
  set autobond true;
  set autofps false;
  set axes window;
  set axesmode 0;
  set axesscale 2.0;
  set bondmodeor false;
  set bondradiusmilliangstroms 150;
  set bondtolerance 0.45;
  set cartoonrockets false;
  set chaincasesensitive false;
  set dataseparator "~~~";
  set delaymaximumms 0;
  set dipolescale 1.0;
  set disablepopupmenu false;
  set displaycellparameters true;
  set dotdensity 3;
  set dotsselectedonly false;
  set dotsurface true;
  set drawhover false;
  set drawpicking false;
  set dynamicmeasurements false;
  set ellipsoidarcs false;
  set ellipsoidaxes false;
  set ellipsoidaxisdiameter 0.02;
  set ellipsoidball true;
  set ellipsoiddotcount 200;
  set ellipsoiddots false;
  set ellipsoidfill false;
  set forceautobond false;
  set greyscalerendering false;
  set hbondsbackbone false;
  set hbondssolid false;
  set helppath "http://www.stolaf.edu/academics/chemapps/jmol/docs/index.htm
";
  set hermitelevel 0;
  set hidenameinpopup false;
  set hidenavigationpoint false;
  set highresolution false;
  set historylevel 0;
  set hoverdelay 0.5;
  set isosurfacepropertysmoothing true;
  set justifymeasurements false;
  set loadformat "http://www.rcsb.org/pdb/files/%FILE.pdb";;
  set measureallmodels false;
  set measurementlabels true;
  set messagestylechime false;
  set minbonddistance 0.4;
  set navigationperiodic false;
  set navigationspeed 5.0;
  set pdbgetheader false;
  set pdbsequential false;
  set percentvdwatom 20;
  set pickingspinrate 10;
  set picklabel "";
  set pointgroupdistancetolerance 0.2;
  set pointgrouplineartolerance 8.0;
  set propertyatomnumberfield 0;
  set propertycolorscheme "roygb";
  set propertydatafield 0;
  set quaternionframe "c";
  set rangeselected false;
  set ribbonaspectratio 16;
  set ribbonborder false;
  set rocketbarrels false;
  set selectallmodels true;
  set selecthetero true;
  set selecthydrogen true;
  set sheetsmoothing 1.0;
  set showhiddenselectionhalos false;
  set showhydrogens true;
  set showmeasurements true;
  set showmultiplebonds true;
  set shownavigationpointalways false;
  set smartaromatic true;
  set solventprobe false;
  set solventproberadius 1.2;
  set ssbondsbackbone false;
  set stereodegrees 5;
  set strandcountformeshribbon 7;
  set strandcountforstrands 5;
  set testflag1 false;
  set testflag2 false;
  set testflag3 false;
  set testflag4 false;
  set tracealpha true;
  set usenumberlocalization true;
  set vectorscale 1.0;
  set vibrationperiod 1.0;
  set vibrationscale 1.0;
  set wireframerotation false;
  set zoomlarge true;
  set zshade false;

#user-defined variables;
# --none--;

# label defaults;
  select none;
  color label none;
  background label none;
  set labelOffset 4 4;
  set labelAlignment left;
  set labelPointer off;
  font label 13.0 SansSerif Plain;

end function;

function _setModelState();

  measures delete;
  select *; set measures nanometers;
  font measures 15.0 SansSerif Plain;
  select measures ({null});

  set echo off;
  set ech

Re: [Jmol-users] problem in firefox

2008-08-27 Thread Jeff Hansen

Dean,

Yeah, I thought of that and tried it, but that didn't work either.  In  
that case Firebug reports that getElementById is not defined.  So it  
seems for some reason Firefox isn't recognizing the textarea's id.   
Incidentally, I get a similar error when I try the same with the  
textDiv div instead.



Jeff


***
Jeff Hansen
Department of Chemistry and Biochemistry
DePauw University
602 S. College Ave.
Greencastle, IN 46135
[EMAIL PROTECTED]
***


On Aug 27, 2008, at 11:19 AM, Dean Johnston wrote:


Jeff,

  No apologies needed.  Giving an id to a  does not create a  
Javascript object automatically (at least in Firefox).  You will  
have to use something like:


var myText = document.getElementById('jmolText');

and then say

myText.value = dump(_dataInfo);

It's interesting that it does work in Safari.

Dean


On Wed, Aug 27, 2008 at 11:05 AM, Jeff Hansen <[EMAIL PROTECTED]>  
wrote:

My apologies.  This is really more of a javascript/html question but
it is on a Jmol project I am working on.  Could someone explain to me
what is the problem with the following code?  The appletReady()
function works just fine in Safari and the page validates as HTML 4.01
strict, but the appletReady() function doesn't work in Firefox.
Firebug reports an error and says jmolText is not defined.

function appletReady() {
var _dataInfo = jmolGetPropertyAsArray("auxiliaryInfo");
jmolText.value = dump(_dataInfo);
}

...








The page is at http://web.mac.com/jhansen4/Jmol/NewJmolDiv.html if
that will help.


***
Jeff Hansen
Department of Chemistry and Biochemistry
DePauw University
602 S. College Ave.
Greencastle, IN 46135
[EMAIL PROTECTED]
***



-
This SF.Net email is sponsored by the Moblin Your Move Developer's  
challenge
Build the coolest Linux based applications with Moblin SDK & win  
great prizes
Grand prize is a trip for two to an Open Source event anywhere in  
the world

http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

-
This SF.Net email is sponsored by the Moblin Your Move Developer's  
challenge
Build the coolest Linux based applications with Moblin SDK & win  
great prizes
Grand prize is a trip for two to an Open Source event anywhere in  
the world

http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] problem in firefox

2008-08-27 Thread Robert Hanson
Right -- "name" attribute is quite problematical. In some browsers "id" is
accessible as "name", but that's not acceptable. And in some browser
versions the name of an element in a form is under the form name rather than
the document.

Always use "id" and, as Dean points out, then access it only using
document.getElementById()

Most of us create a scrap of JavaScript that we put in all our pages that
provides us these services.
One I use is http://www.stolaf.edu/depts/chemistry/gca/divs.js

Bob



On Wed, Aug 27, 2008 at 10:19 AM, Dean Johnston <[EMAIL PROTECTED]>wrote:

> Jeff,
>
>   No apologies needed.  Giving an id to a  does not create a
> Javascript object automatically (at least in Firefox).  You will have to use
> something like:
>
> var myText = document.getElementById('jmolText');
>
> and then say
>
> myText.value = dump(_dataInfo);
>
> It's interesting that it *does* work in Safari.
>
> Dean
>
>
>
> On Wed, Aug 27, 2008 at 11:05 AM, Jeff Hansen <[EMAIL PROTECTED]> wrote:
>
>> My apologies.  This is really more of a javascript/html question but
>> it is on a Jmol project I am working on.  Could someone explain to me
>> what is the problem with the following code?  The appletReady()
>> function works just fine in Safari and the page validates as HTML 4.01
>> strict, but the appletReady() function doesn't work in Firefox.
>> Firebug reports an error and says jmolText is not defined.
>>
>> function appletReady() {
>> var _dataInfo = jmolGetPropertyAsArray("auxiliaryInfo");
>> jmolText.value = dump(_dataInfo);
>> }
>>
>> ...
>>
>> 
>> 
>> 
>> 
>> 
>>
>>
>> The page is at http://web.mac.com/jhansen4/Jmol/NewJmolDiv.html if
>> that will help.
>>
>>
>> ***
>> Jeff Hansen
>> Department of Chemistry and Biochemistry
>> DePauw University
>> 602 S. College Ave.
>> Greencastle, IN 46135
>> [EMAIL PROTECTED]
>> ***
>>
>>
>>
>> -
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> ___
>> Jmol-users mailing list
>> Jmol-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] problem in firefox

2008-08-27 Thread Angel Herráez
Hi Jeff

The key must be in the dump() function, I'd say
You are trying to write an array into a text area. I guess different browsers 
may take that differently, unless you force the array to become a string.

Or, how about calling jmolText fully?

document.getElementById("jmolText").value = dump(_dataInfo);

HTH


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Echo with and tags

2008-08-27 Thread Angel Herráez
On 27 Aug 2008 at 10:57, Dean Johnston wrote:
> OK, here is the state for ammonia, with a label of "Point Group = 
> C3v" at the 
> bottom left. Without the tags the spacing is normal.

Just typing it in the console of 11.6.RC10 app it looks Ok to me
Maybe some combination with other scripts are doing it?



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] problem in firefox

2008-08-27 Thread Dean Johnston
Jeff,

  No apologies needed.  Giving an id to a  does not create a Javascript
object automatically (at least in Firefox).  You will have to use something
like:

var myText = document.getElementById('jmolText');

and then say

myText.value = dump(_dataInfo);

It's interesting that it *does* work in Safari.

Dean


On Wed, Aug 27, 2008 at 11:05 AM, Jeff Hansen <[EMAIL PROTECTED]> wrote:

> My apologies.  This is really more of a javascript/html question but
> it is on a Jmol project I am working on.  Could someone explain to me
> what is the problem with the following code?  The appletReady()
> function works just fine in Safari and the page validates as HTML 4.01
> strict, but the appletReady() function doesn't work in Firefox.
> Firebug reports an error and says jmolText is not defined.
>
> function appletReady() {
> var _dataInfo = jmolGetPropertyAsArray("auxiliaryInfo");
> jmolText.value = dump(_dataInfo);
> }
>
> ...
>
> 
> 
> 
> 
> 
>
>
> The page is at http://web.mac.com/jhansen4/Jmol/NewJmolDiv.html if
> that will help.
>
>
> ***
> Jeff Hansen
> Department of Chemistry and Biochemistry
> DePauw University
> 602 S. College Ave.
> Greencastle, IN 46135
> [EMAIL PROTECTED]
> ***
>
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] problem in firefox

2008-08-27 Thread Jeff Hansen
My apologies.  This is really more of a javascript/html question but  
it is on a Jmol project I am working on.  Could someone explain to me  
what is the problem with the following code?  The appletReady()  
function works just fine in Safari and the page validates as HTML 4.01  
strict, but the appletReady() function doesn't work in Firefox.   
Firebug reports an error and says jmolText is not defined.

function appletReady() {
var _dataInfo = jmolGetPropertyAsArray("auxiliaryInfo");
jmolText.value = dump(_dataInfo);
}

...








The page is at http://web.mac.com/jhansen4/Jmol/NewJmolDiv.html if  
that will help.


***
Jeff Hansen
Department of Chemistry and Biochemistry
DePauw University
602 S. College Ave.
Greencastle, IN 46135
[EMAIL PROTECTED]
***



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Echo with and tags

2008-08-27 Thread Dean Johnston
OK, here is the state for ammonia, with a label of "Point Group =
C3v" at the bottom left.  Without the tags the spacing is normal.

Dean


# Jmol state version 11.6.RC11_dev  2008-08-14 16:55;
  # fullName = "jmolApplet0__163573001520736__";
  # documentBase = "
http://dhj-macbook.local/~djohnston/symmetry/gallery.html";;
  # codeBase = "http://dhj-macbook.local/~djohnston/symmetry/gallery/Jmol/";;


function _setWindowState();
# height 429;
# width 429;
  stateVersion = 1106000;
  backgroundColor = "[xff]";
  axis1Color = "[xff]";
  axis2Color = "[x008000]";
  axis3Color = "[xff]";
  ambientPercent = 45;
  diffusePercent = 84;
  specular = true;
  specularPercent = 22;
  specularPower = 40;
  specularExponent = 6;
  statusReporting  = true;
end function;

function _setFileState();

  set allowEmbeddedScripts false;
  set autoBond false;
  set appendNew true;
  set appletProxy "";
  set applySymmetryToBonds false;
  set bondRadiusMilliAngstroms 150;
  set bondTolerance 0.45;
  set defaultDirectory "";
  set defaultLattice {0.0 0.0 0.0};
  set defaultLoadScript "";
  set defaultVDW Jmol;
  set forceAutoBond false;
  set loadFormat "http://www.rcsb.org/pdb/files/%FILE.pdb";;
  set minBondDistance 0.4;
  set pdbSequential false;
  set pdbGetHeader false;
  set percentVdwAtom 20;
  set smartAromatic true;
  data "model inline"
4
ammonia
N0.0.0.2525
H   -0.4761   -0.8247   -0.0842
H   -0.47610.8247   -0.0842
H0.95220.   -0.0842
end "model inline";;

end function;

function _setVariableState();

   set defaultanglelabel "%VALUE %UNITS";
   set defaultcolorscheme "Jmol";
   set defaultdirectory "";
   set defaultdistancelabel "%VALUE %UNITS";
   set defaultdrawarrowscale 0.5;
   set defaultlattice "{0 0 0}";
   set defaultloadscript "";
   set defaulttorsionlabel "%VALUE %UNITS";
   set defaulttranslucent 0.5;
   set defaultvdw "Jmol";
  set allowembeddedscripts true;
  set allowrotateselected false;
  set appletproxy "";
  set applysymmetrytobonds false;
  set autobond false;
  set autofps false;
  set axes window;
  set axesmode 0;
  set axesscale 2.0;
  set bondmodeor false;
  set bondradiusmilliangstroms 150;
  set bondtolerance 0.45;
  set cartoonrockets false;
  set chaincasesensitive false;
  set dataseparator "~~~";
  set delaymaximumms 0;
  set dipolescale 1.0;
  set disablepopupmenu false;
  set displaycellparameters true;
  set dotdensity 3;
  set dotsselectedonly false;
  set dotsurface true;
  set drawhover false;
  set drawpicking false;
  set dynamicmeasurements false;
  set ellipsoidarcs false;
  set ellipsoidaxes false;
  set ellipsoidaxisdiameter 0.02;
  set ellipsoidball true;
  set ellipsoiddotcount 200;
  set ellipsoiddots false;
  set ellipsoidfill false;
  set forceautobond false;
  set greyscalerendering false;
  set hbondsbackbone false;
  set hbondssolid false;
  set helppath "http://www.stolaf.edu/academics/chemapps/jmol/docs/index.htm
";
  set hermitelevel 0;
  set hidenameinpopup false;
  set hidenavigationpoint false;
  set highresolution false;
  set historylevel 0;
  set hoverdelay 0.5;
  set isosurfacepropertysmoothing true;
  set justifymeasurements false;
  set loadformat "http://www.rcsb.org/pdb/files/%FILE.pdb";;
  set measureallmodels false;
  set measurementlabels true;
  set messagestylechime false;
  set minbonddistance 0.4;
  set navigationperiodic false;
  set navigationspeed 5.0;
  set pdbgetheader false;
  set pdbsequential false;
  set percentvdwatom 20;
  set pickingspinrate 10;
  set picklabel "";
  set pointgroupdistancetolerance 0.2;
  set pointgrouplineartolerance 8.0;
  set propertyatomnumberfield 0;
  set propertycolorscheme "roygb";
  set propertydatafield 0;
  set quaternionframe "c";
  set rangeselected false;
  set ribbonaspectratio 16;
  set ribbonborder false;
  set rocketbarrels false;
  set selectallmodels true;
  set selecthetero true;
  set selecthydrogen true;
  set sheetsmoothing 1.0;
  set showhiddenselectionhalos false;
  set showhydrogens true;
  set showmeasurements true;
  set showmultiplebonds true;
  set shownavigationpointalways false;
  set smartaromatic true;
  set solventprobe false;
  set solventproberadius 1.2;
  set ssbondsbackbone false;
  set stereodegrees 5;
  set strandcountformeshribbon 7;
  set strandcountforstrands 5;
  set testflag1 false;
  set testflag2 false;
  set testflag3 false;
  set testflag4 false;
  set tracealpha true;
  set usenumberlocalization true;
  set vectorscale 1.0;
  set vibrationperiod 1.0;
  set vibrationscale 1.0;
  set wireframerotation false;
  set zoomlarge true;
  set zshade false;

#user-defined variables;
# --none--;

# label defaults;
  select none;
  color label none;
  background label none;
  set labelOffset 4 4;
  set labelAlignment left;
  set labelPointer off;
  font label 13.0 SansSerif Plain;

end function;

function _setModelState();
  connect ({0}) ({1}) single;
  connect ({0}) ({2}) single;
  connect ({0}) ({3}) single;

  measures delete

Re: [Jmol-users] Testing 11.6.RC8

2008-08-27 Thread Robert Hanson
Dean, that fix is checked in -- problem for any case where there is no
principal axis.


On Fri, Aug 22, 2008 at 9:52 PM, Dean Johnston <[EMAIL PROTECTED]>wrote:

> OK, it's working much better, but a few obscure errors with my test set
> (this is with both 11.6.RC10-applet, and 11.6.RC11_dev-application).
>
> *D2* (twistane): correctly identifies point group, but crashes on write
> pointgroup draw
> *D2h* (N2O4): correctly identifies point group, but crashes on write
> pointgroup draw
> *D2h* (p-dibromobenzene): correctly identifies point group, but crashes on
> write pointgroup draw
>
> It must be a point group specific thing, because a lower symmetry (C2)
> version of my twistane structure works just fine.
>
> BTW, I love the getProperty pointGroupInfo.  Thanks Bob!
>
> Dean
>
>
>
> On Fri, Aug 22, 2008 at 10:01 AM, Robert Hanson <[EMAIL PROTECTED]>wrote:
>
>> found it -- Nico, let's get RC10 out so Dean can test it.
>>
>> Bob
>>
>>
>>
>> On Thu, Aug 21, 2008 at 11:21 PM, Dean Johnston <[EMAIL PROTECTED]>wrote:
>>
>>> This (the write pointgroup draw command) still isn't working for me (RC9
>>> and RC10).  Not sure what is going on.
>>>
>>> Dean
>>>
>>>
>>> On Wed, Aug 20, 2008 at 2:18 AM, Robert Hanson <[EMAIL PROTECTED]>wrote:
>>>
 fixed and, sure, why not...

 getProperty pointGroupInfo

 print getProperty("pointgroupInfo.principalAxis")

 etc.


 On Tue, Aug 19, 2008 at 11:17 PM, Dean Johnston <[EMAIL PROTECTED]>wrote:

> Bob,
>
> "write pointgroup draw" gives the following error (for 11.6.RC8):
>
> Exception in thread "QueueThread0" java.lang.NullPointerException
> at org.jmol.symmetry.PointGroup.getInfo(Unknown Source)
> at org.jmol.symmetry.Symmetry.getPointGroupInfo(Unknown Source)
> at
> org.jmol.modelset.ModelSet.calculatePointGroupForFirstModel(Unknown 
> Source)
> at org.jmol.modelset.ModelSet.getPointGroupAsString(Unknown Source)
> at org.jmol.viewer.Viewer.getPointGroupAsString(Unknown Source)
> at org.jmol.viewer.Eval.write(Unknown Source)
> at org.jmol.viewer.Eval.instructionDispatchLoop(Unknown Source)...
>
> Unrelated question:  is there (or will there be) a getProperty command
> to retrieve information about symmetry elements?  (I can grab them using 
> show
> pointgroup, but getProperty would be nice).
>
> Dean
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>

>>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Drawing individual symmetry elements

2008-08-27 Thread Robert Hanson
It's a bug I need to fix. Don't go back to RC9 -- that's broken for drawing
pointgroups the second time. It's a problem with the caching I added in
RC10. Jmol doesn't recalculate the point group or the draw set if it finds
suitable ones already present. But I forgot to check for that axis number.
Your workaround is fine. This is fixed for RC11.



On Sun, Aug 24, 2008 at 10:18 PM, Dean Johnston <[EMAIL PROTECTED]>wrote:

> Dear All (but mostly Bob) -
>
> (Sorry about the duplicate message regarding echo - I thought my mail
> program never sent it out...)
>
> I'm having problems drawing individual symmetry elements (Jmol 11.6.RC11)
> using the format draw pointgroup c2 1
>
> It correctly draws the first element, but then won't draw any other c2
> axes.  For example:
>
> draw delete; draw pointgroup c2 1; draw pointgroup c2 2  ---  only draws
> one c2 axis
>
> draw delete; draw pointgroup c2 1; draw delete; draw pointgroup c2 2 ---
> draws the same c2 axis both times
>
> but
> draw delete; draw pointgroup c2 1; draw delete; draw pointgroup; draw
> delete; draw pointgroup c2 2 --- correct draws two different c2 axes
>
> I think this is recent, because the example on Bob's "new" pages (11.6.RC9)
> works just fine, but the same molecule won't work with 11.6.RC11.  Can
> anyone else reproduce this?
>
> Dean
>
>
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Echo with and tags

2008-08-27 Thread Robert Hanson
I'm not observing this, Dean. You will have to be more specific -- send a
state script.

Bob


On Sun, Aug 24, 2008 at 9:10 PM, Dean Johnston <[EMAIL PROTECTED]>wrote:

> Dear All -
>
> I've just noticed an odd behavior with the echo command.  I've been using
>  (subscript) tags in some of my echos (I think this is an undocumented
> feature).  At some recent point (after 11.4), any echo'ed text with a 
> tag shows up with extra spaces between the letters.  All other echos are
> unaffected.  Has anybody else noticed this?  (Is anybody else using this
> feature?)
>
> Dean
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] Echo with and tags

2008-08-27 Thread Angel Herráez
Hi Dean
Yes. I have used sub in echos, although not often. I have a recent example 
using 11.5.41. My echo is H2O
Maybe your problem is only with long subscripted texts?



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] changing atom coordinates with {selected}.y

2008-08-27 Thread Robert Hanson
thanks for finding that, Angel. It's fixed for 11.6.RC11. Those files should
be available as
http://chemapps.stolaf.edu/jmol/docs/examples-11/Jmol-11_5.zip shortly


Bob


On Tue, Aug 26, 2008 at 2:25 PM, Angel Herráez <[EMAIL PROTECTED]> wrote:

> Hello all
> I had this script for getting a projection of certain (dummy) atoms onto
> the
> XZ plane:
>{selected}.y=0
> this works up to 11.5.41 but gives an error in 11.6.RC4 and RC10
> "Command expected"
>
> Is this intentional, and how can I achieve the result?
>
> Thanks
>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


[Jmol-users] Angel's book

2008-08-27 Thread Jennifer L. Muzyka
I finally had a chance to read Angel's book on Jmol.  I learned a lot, and now 
I'm wondering when volume 2 might be available.
-Jennifer






Jennifer Muzyka
Professor of Chemistry
On sabbatical at University of Kentucky College of Pharmacy
Centre College
Danville, KY  40422

[EMAIL PROTECTED]
http://web.centre.edu/muzyka


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] unexpected image scaling

2008-08-27 Thread Robert Hanson
yes, absolutely you must use the latest version if you are using any RC at
all.

On Tue, Aug 26, 2008 at 3:03 PM, Thomas Stout <[EMAIL PROTECTED]>wrote:

>
> I have a stripped down Jmol implementation that I am using for debugging.
> It contains nothing but the applet:
>
> 
> 
> 
> 
> 
> Testing Jmol
> 
>  
> 
> 
> 
> jmolInitialize("./");
> jmolSetAppletColor("black");
> jmolApplet(512, "script testecho.spt;", 0);
> 
> 
> 
> 
>
>
> And the script "testecho.spt" contains the following:
> set antialiasdisplay ON;
> set echo none;
> set frank off;
> set fontscaling false;
> set echo depth 0;
> set echo mybackground 43% 83%;
> set echo mybackground image "star2.gif";
>
> I am still using the applet of version 11.6RC7 -- perhaps I should download
> and test whatever the most current RC version is today.
>
> -Tom
>
>
>
>
> On Tue, Aug 26, 2008 at 8:56 AM, Robert Hanson <[EMAIL PROTECTED]> wrote:
>
>> I cannot reproduce this problem. Are you sure you have not already defined
>> mybackground PRIOR to the set fontscaling false command?
>> set fontscaling only affects echos created after its invocation.
>>
>>
>>
>> On Mon, Aug 25, 2008 at 5:34 PM, Thomas Stout <[EMAIL PROTECTED]>wrote:
>>
>>>
>>> Interesting.
>>>
>>> I have found today that "set antialiasDisplay ON" forces scaling of
>>> images even when "set fontscaling false" is set.
>>>
>>> Expected or no?  I was surprised & it took me a while to narrow it down
>>> to this one setting
>>>
>>> -Tom
>>>
>>> Here are some commands for testing:
>>>
>>> set antialiasDisplay ON;  #ON results in scaling the star, OFF gives
>>> no scaling
>>> set echo none;
>>> set fontscaling false;
>>> set echo depth 0;
>>> set echo mybackground 50% 50%;
>>> set echo mybackground image "star2.gif";
>>>
>>>
>>> PS -- This is all prior to loading a molecule.  I am having the Applet
>>> come up with a "logo" and then urging the user to pick a structure for
>>> display
>>>
>>>
>>> -
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the
>>> world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> ___
>>> Jmol-users mailing list
>>> Jmol-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>>
>>>
>>
>>
>> --
>> Robert M. Hanson
>> Professor of Chemistry
>> St. Olaf College
>> Northfield, MN
>> http://www.stolaf.edu/people/hansonr
>>
>>
>> If nature does not answer first what we want,
>> it is better to take what answer we get.
>>
>> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
>>
>> -
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> ___
>> Jmol-users mailing list
>> Jmol-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>>
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users