Re: [Jmol-users] problem filling an html list

2010-04-15 Thread Robert Hanson
That does not work because the jmolApplet call only initiates applet loading but does not ensure it is complete. Just do it this way: jmolInitialize(".","jmol/JmolAppletSigned0.jar"); jmolApplet(["520","520"], " script scripts/reset.spt; background white; javascript 'LoadModels()' ") This ensu

Re: [Jmol-users] problem filling an html list

2010-04-15 Thread P . Canepa
iversity of Kent, Canterbury, Kent, CT2 7NH United Kingdom e-mail: pc...@kent.ac.uk mobile: +44 (0) 7772-9756456 --- From: Angel Herráez [angel.herr...@uah.es] Sent: Wednesday, March 24, 2010 3:59 PM To: jmol-users@lists.

Re: [Jmol-users] problem filling an html list

2010-04-06 Thread Angel Herráez
Piero, Sorry, I'm lost. Please be specific about what you have and what you need to do El 6 Apr 2010 a las 13:09, P.Canepa escribió: > Rob, Angle > > I did as you said. What I see is: the file location as b, the name of the > file as c and the title of the file as d. > What's the way to ex

Re: [Jmol-users] problem filling an html list

2010-04-06 Thread P . Canepa
ch 24, 2010 11:26 AM To: jmol-users@lists.sourceforge.net Subject: Re: [Jmol-users] problem filling an html list in Jmol: set loadStructCallback "myfunc" on the page: function myfunc(appId,b,c,d) { alert([appId, b, c, d]) } I don't recall the exact parameters now. See

Re: [Jmol-users] problem filling an html list

2010-03-26 Thread P . Canepa
e.net Subject: Re: [Jmol-users] problem filling an html list Oops! http://chemapps.stolaf.edu/jmol/docs?ver=11.10&search=callback#setcallback -- Robert M. Hanson Professor of Chemistry St. Olaf College 1520 St. Olaf Ave. Northfield, MN 55057 http://www.stolaf.edu/people/hansonr phone: 507-786-

Re: [Jmol-users] problem filling an html list

2010-03-26 Thread Robert Hanson
Oops! http://chemapps.stolaf.edu/jmol/docs?ver=11.10&search=callback#setcallback -- Robert M. Hanson Professor of Chemistry St. Olaf College 1520 St. Olaf Ave. Northfield, MN 55057 http://www.stolaf.edu/people/hansonr phone: 507-786-3107 If nature does not answer first what we want, it is bet

Re: [Jmol-users] problem filling an html list

2010-03-26 Thread Rolf Huehne
On 03/26/2010 03:47 PM, P.Canepa wrote: > Bob, Angel > which function is going to be > > > function myfunc(appId,b,c,d) { > alert([appId, b, c, d]) > > } > I cannot find any explanation on > http://chemapps.stolaf.edu/jmol/docs/index.htm?ver=11.10&search=callback#setcallback > . > "myfun

Re: [Jmol-users] problem filling an html list

2010-03-26 Thread P . Canepa
c.uk] Sent: Friday, March 26, 2010 2:36 PM To: jmol-users@lists.sourceforge.net Subject: Re: [Jmol-users] problem filling an html list Bob, can you give me the INTERNET url not your local? file:///C:/jmol-dev/workspace/Jmol-documentation/script_documentation/index.htm?ver=11.10&search=

Re: [Jmol-users] problem filling an html list

2010-03-26 Thread Angel Herráez
Piero, always starting from http://chemapps.stolaf.edu/jmol/docs/ (which is linked from Jmol's website) so http://chemapps.stolaf.edu/jmol/docs/index.htm?ver=11.10&search=callback#setcallback -- Download Intel® Parall

Re: [Jmol-users] problem filling an html list

2010-03-26 Thread P . Canepa
M To: jmol-users@lists.sourceforge.net Subject: Re: [Jmol-users] problem filling an html list in Jmol: set loadStructCallback "myfunc" on the page: function myfunc(appId,b,c,d) { alert([appId, b, c, d]) } I don't recall the exact parameters now. See file:///C:/jmol

Re: [Jmol-users] problem filling an html list

2010-03-24 Thread Angel Herráez
> I don't recall the exact parameters now. See > > file:///C:/jmol-dev/workspace/Jmol- > documentation/script_documentation/index.htm?ver=11.10&search=callback > #setcallback There's also a bit of info that may be helpful about how to deal with callbacks at http://jmol.sourceforge.net/jslibrary/

Re: [Jmol-users] problem filling an html list

2010-03-24 Thread Robert Hanson
Robert Hanson [hans...@stolaf.edu] > Sent: Wednesday, March 24, 2010 11:04 AM > To: jmol-users@lists.sourceforge.net > Subject: Re: [Jmol-users] problem filling an html list > > The way you do this is create a there but do not populate it until > after the page is loaded and the fi

Re: [Jmol-users] problem filling an html list

2010-03-24 Thread P . Canepa
oblem filling an html list The way you do this is create a there but do not populate it until after the page is loaded and the file has been read. Then, in the jmolApplet load script give the javaScript command to tell your web page that it is time to populate the div. That uses document.getElemen

Re: [Jmol-users] problem filling an html list

2010-03-24 Thread Robert Hanson
The way you do this is create a there but do not populate it until after the page is loaded and the file has been read. Then, in the jmolApplet load script give the javaScript command to tell your web page that it is time to populate the div. That uses document.getElementById("somedivid").innerHTM

[Jmol-users] problem filling an html list

2010-03-23 Thread P . Canepa
Dear All I have a javascript function LoadModels() which should load the models in an external HTML list ! How can I let the list be populated when I load the page? This would have to happen just after the jmolApplet(["520","520"] has been called! I can make it to work if I do as below