From: Robert H. <ha...@st...> - 2012-11-20 02:36:00
|
oh, from javascript: var x = jmolEvaluate("write('pdb')") or in JmolJSO: var x = Jmol.evaluate("write('pdb')") On Mon, Nov 19, 2012 at 6:51 PM, 陈文瀚 <che...@gm...> wrote: > The thing is I can # var x = write("pdb") #, but this x persists in the > scope of jmol script. > > How can I export x to a js variable so that I can alert it later? > > _________________________________ > Wenhan Chen > School of Chemistry and Molecular Biosciences > The University of Queensland > > > > > > 2012/11/20 Robert Hanson <ha...@st...> > >> What about >> >> Var x = write("pdb") >> >> ? >> >> >> On Sun, Nov 18, 2012 at 6:42 AM, 陈文瀚 <che...@gm...> wrote: >> >>> Hey, guys >>> >>> I am have this problem of extracting the structure info from Jmol into a >>> javascript variable rather than exporting the infomation into a PDB File. >>> Using getProperties funtion I can only get a string of structure info in a >>> almost MOL format. I have been searching all through the manul as well as >>> the new features provided. Any of u met the same problem? I am really in >>> need of help. >>> >>> Jack >>> >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Monitor your physical, virtual and cloud infrastructure from a single >>> web console. Get in-depth insight into apps, servers, databases, vmware, >>> SAP, cloud infrastructure, etc. Download 30-day Free Trial. >>> Pricing starts from $795 for 25 servers or applications! >>> http://p.sf.net/sfu/zoho_dev2dev_nov >>> _______________________________________________ >>> Jmol-users mailing list >>> Jmo...@li... >>> https://lists.sourceforge.net/lists/listinfo/jmol-users >>> >>> >> >> >> -- >> Robert M. Hanson >> Larson-Anderson Professor of Chemistry >> Chair, Chemistry Department >> 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 >> >> >> >> >> ------------------------------------------------------------------------------ >> Monitor your physical, virtual and cloud infrastructure from a single >> web console. Get in-depth insight into apps, servers, databases, vmware, >> SAP, cloud infrastructure, etc. Download 30-day Free Trial. >> Pricing starts from $795 for 25 servers or applications! >> http://p.sf.net/sfu/zoho_dev2dev_nov >> _______________________________________________ >> Jmol-users mailing list >> Jmo...@li... >> https://lists.sourceforge.net/lists/listinfo/jmol-users >> >> > > > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > Jmol-users mailing list > Jmo...@li... > https://lists.sourceforge.net/lists/listinfo/jmol-users > > -- Robert M. Hanson Larson-Anderson Professor of Chemistry Chair, Chemistry Department 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 |