Re: [Jmol-users] JSmol Question
On Thu, Jan 24, 2013 at 2:27 PM, Otis Rothenberger wrote: > You might be right, but I think it's more subtle than that. From what I > read, iPad Safari actually sends a hover event. You see it when you touch a > link and hold for a second rather than click (a quick tap). The hold > selects the link and brings up a hover box, albeit not the link title > hover. I haven't tried it, but I bet a :hover style would override Safari's > hover box to bring up your own hover hint. It's not just links. Hovering > (touch hold) page html containers selects them and brings up a copy box. > I'm pretty sure "touch and hold" fires "double-click". That's certainly a configuration option in Windows 8. > > So in the case of bond selection, I really think it's a touch followed by > a tap. The bond hover circles do not display, so I make the model go > translucent for a second to reinforce proper bond selection. > > At first, I put this all in the fun challenge category, but I must admit > that I'm pleasantly surprised to find how well JSmol behaves on > Safari/iPad. IPad/Chrome on the other hand is useless. > > iPad aside, I can't believe how easy it was to bring most of our virtual > model kit functionality from Jmol applet to JSmol. > > Yes. It does seem that the small molecular problem is solved -- the iPad has the power to do it, and the entire set of Jmol commands is now implemented. There is the issue of the 3 Mb download, but that's about it. I don't see that as a make-it-or-break it issue. Now that I have my hands on an iPad for a few days, I'm going to be doing some speed testing to see just what it is Safari on the iPad does so poorly. I find it hard to believe this is a processor issue. I suspect it's a JavaScript optimization issue. Bob > Otis > > > -- > Otis Rothenberger > o...@chemagic.com > http://chemagic.com > > > > > On Jan 24, 2013, at 12:50 AM, Robert Hanson wrote: > > isn't that called a "double-click"? :) > > > On Wed, Jan 23, 2013 at 9:56 PM, Otis Rothenberger > wrote: > >> Bob, >> >> OK, finally. I was screwing up with missing quotes on the bind. I had >> them in what I pasted below, but they were missing in my code. >> >> You can conformation rotate about a bond on an iPad. The hover on the >> bond is a bit tricky, but there's a learnable rhythm involved - >> touch/up/touch/up. It works pretty well with a stylus. What fun. >> >> Otis >> >> -- >> Otis Rothenberger >> o...@chemagic.com >> http://chemagic.com >> >> >> >> >> On Jan 23, 2013, at 4:15 PM, Robert Hanson wrote: >> >> you can certainly use >> >> UNBIND LEFT >> >> to unbind LEFT-CLICK. >> >> >> >> >> On Wed, Jan 23, 2013 at 7:34 AM, Otis Rothenberger > > wrote: >> >>> Bob, >>> >>> I've discovered that iPad actually has a hover that allows me to select >>> a bond in JSmol prior to a conformation rotation. So this hover/click >>> movement sets me up for conformation. I'm currently using the following >>> binding for this: >>> >>> bind "CTRL-LEFT" "select WITHIN(BRANCH,{atomno=rot1}, {atomno=rot2}); if >>> (_X < 250){select WITHIN(BRANCH,{atomno=rot2}, {atomno=rot1});} >>> rotateSelected {atomno=rot1} {atomno=rot2} @{_DELTAY*.5} >>> >>> The rot1 and rot2 are set up by the bond selection. The 250 is my half >>> my JSmol window width. >>> >>> The above binding (CTRL-LEFT) is useless on an iPad. Is there any way to >>> temporarily unbind "LEFT" alone so that it can be bound to the above >>> script? If not, do any other touch executions of the above come to mind? >>> >>> I'm assuming above that "LEFT" alone would equate to touch-drag on the >>> iPad. >>> >>> Otis >>> >>> -- >>> Otis Rothenberger >>> o...@chemagic.com >>> http://chemagic.com >>> >>> >>> >>> >>> >>> >>> >>> >>> -- >>> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, >>> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current >>> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft >>> MVPs and experts. ON SALE this month only -- learn more at: >>> http://p.sf.net/sfu/learnnow-d2d >>> ___ >>> Jmol-users mailing list >>> Jmol-users@lists.sourceforge.net >>> 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 >> >> -- >> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, >> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current >> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft >> MVPs and experts. ON SALE this month only -- learn
Re: [Jmol-users] JSmol Question
You might be right, but I think it's more subtle than that. From what I read, iPad Safari actually sends a hover event. You see it when you touch a link and hold for a second rather than click (a quick tap). The hold selects the link and brings up a hover box, albeit not the link title hover. I haven't tried it, but I bet a :hover style would override Safari's hover box to bring up your own hover hint. It's not just links. Hovering (touch hold) page html containers selects them and brings up a copy box. So in the case of bond selection, I really think it's a touch followed by a tap. The bond hover circles do not display, so I make the model go translucent for a second to reinforce proper bond selection. At first, I put this all in the fun challenge category, but I must admit that I'm pleasantly surprised to find how well JSmol behaves on Safari/iPad. IPad/Chrome on the other hand is useless. iPad aside, I can't believe how easy it was to bring most of our virtual model kit functionality from Jmol applet to JSmol. Otis -- Otis Rothenberger o...@chemagic.com http://chemagic.com On Jan 24, 2013, at 12:50 AM, Robert Hanson wrote: > isn't that called a "double-click"? :) > > > On Wed, Jan 23, 2013 at 9:56 PM, Otis Rothenberger > wrote: > Bob, > > OK, finally. I was screwing up with missing quotes on the bind. I had them in > what I pasted below, but they were missing in my code. > > You can conformation rotate about a bond on an iPad. The hover on the bond is > a bit tricky, but there's a learnable rhythm involved - touch/up/touch/up. It > works pretty well with a stylus. What fun. > > Otis > > -- > Otis Rothenberger > o...@chemagic.com > http://chemagic.com > > > > > On Jan 23, 2013, at 4:15 PM, Robert Hanson wrote: > >> you can certainly use >> >> UNBIND LEFT >> >> to unbind LEFT-CLICK. >> >> >> >> >> On Wed, Jan 23, 2013 at 7:34 AM, Otis Rothenberger >> wrote: >> Bob, >> >> I've discovered that iPad actually has a hover that allows me to select a >> bond in JSmol prior to a conformation rotation. So this hover/click movement >> sets me up for conformation. I'm currently using the following binding for >> this: >> >> bind "CTRL-LEFT" "select WITHIN(BRANCH,{atomno=rot1}, {atomno=rot2}); if (_X >> < 250){select WITHIN(BRANCH,{atomno=rot2}, {atomno=rot1});} rotateSelected >> {atomno=rot1} {atomno=rot2} @{_DELTAY*.5} >> >> The rot1 and rot2 are set up by the bond selection. The 250 is my half my >> JSmol window width. >> >> The above binding (CTRL-LEFT) is useless on an iPad. Is there any way to >> temporarily unbind "LEFT" alone so that it can be bound to the above script? >> If not, do any other touch executions of the above come to mind? >> >> I'm assuming above that "LEFT" alone would equate to touch-drag on the iPad. >> >> Otis >> >> -- >> Otis Rothenberger >> o...@chemagic.com >> http://chemagic.com >> >> >> >> >> >> >> >> -- >> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, >> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current >> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft >> MVPs and experts. ON SALE this month only -- learn more at: >> http://p.sf.net/sfu/learnnow-d2d >> ___ >> Jmol-users mailing list >> Jmol-users@lists.sourceforge.net >> 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 >> >> -- >> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, >> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current >> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft >> MVPs and experts. ON SALE this month only -- learn more at: >> http://p.sf.net/sfu/learnnow-d2d___ >> Jmol-users mailing list >> Jmol-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jmol-users > > > -- > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnnow-d2d > ___ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo
Re: [Jmol-users] JSmol Question
isn't that called a "double-click"? :) On Wed, Jan 23, 2013 at 9:56 PM, Otis Rothenberger wrote: > Bob, > > OK, finally. I was screwing up with missing quotes on the bind. I had them > in what I pasted below, but they were missing in my code. > > You can conformation rotate about a bond on an iPad. The hover on the bond > is a bit tricky, but there's a learnable rhythm involved - > touch/up/touch/up. It works pretty well with a stylus. What fun. > > Otis > > -- > Otis Rothenberger > o...@chemagic.com > http://chemagic.com > > > > > On Jan 23, 2013, at 4:15 PM, Robert Hanson wrote: > > you can certainly use > > UNBIND LEFT > > to unbind LEFT-CLICK. > > > > > On Wed, Jan 23, 2013 at 7:34 AM, Otis Rothenberger > wrote: > >> Bob, >> >> I've discovered that iPad actually has a hover that allows me to select a >> bond in JSmol prior to a conformation rotation. So this hover/click >> movement sets me up for conformation. I'm currently using the following >> binding for this: >> >> bind "CTRL-LEFT" "select WITHIN(BRANCH,{atomno=rot1}, {atomno=rot2}); if >> (_X < 250){select WITHIN(BRANCH,{atomno=rot2}, {atomno=rot1});} >> rotateSelected {atomno=rot1} {atomno=rot2} @{_DELTAY*.5} >> >> The rot1 and rot2 are set up by the bond selection. The 250 is my half my >> JSmol window width. >> >> The above binding (CTRL-LEFT) is useless on an iPad. Is there any way to >> temporarily unbind "LEFT" alone so that it can be bound to the above >> script? If not, do any other touch executions of the above come to mind? >> >> I'm assuming above that "LEFT" alone would equate to touch-drag on the >> iPad. >> >> Otis >> >> -- >> Otis Rothenberger >> o...@chemagic.com >> http://chemagic.com >> >> >> >> >> >> >> >> >> -- >> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, >> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current >> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft >> MVPs and experts. ON SALE this month only -- learn more at: >> http://p.sf.net/sfu/learnnow-d2d >> ___ >> Jmol-users mailing list >> Jmol-users@lists.sourceforge.net >> 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 > > -- > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > > http://p.sf.net/sfu/learnnow-d2d___ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users > > > > > -- > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnnow-d2d > ___ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > 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 -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] JSmol Question
Bob, OK, finally. I was screwing up with missing quotes on the bind. I had them in what I pasted below, but they were missing in my code. You can conformation rotate about a bond on an iPad. The hover on the bond is a bit tricky, but there's a learnable rhythm involved - touch/up/touch/up. It works pretty well with a stylus. What fun. Otis -- Otis Rothenberger o...@chemagic.com http://chemagic.com On Jan 23, 2013, at 4:15 PM, Robert Hanson wrote: > you can certainly use > > UNBIND LEFT > > to unbind LEFT-CLICK. > > > > > On Wed, Jan 23, 2013 at 7:34 AM, Otis Rothenberger > wrote: > Bob, > > I've discovered that iPad actually has a hover that allows me to select a > bond in JSmol prior to a conformation rotation. So this hover/click movement > sets me up for conformation. I'm currently using the following binding for > this: > > bind "CTRL-LEFT" "select WITHIN(BRANCH,{atomno=rot1}, {atomno=rot2}); if (_X > < 250){select WITHIN(BRANCH,{atomno=rot2}, {atomno=rot1});} rotateSelected > {atomno=rot1} {atomno=rot2} @{_DELTAY*.5} > > The rot1 and rot2 are set up by the bond selection. The 250 is my half my > JSmol window width. > > The above binding (CTRL-LEFT) is useless on an iPad. Is there any way to > temporarily unbind "LEFT" alone so that it can be bound to the above script? > If not, do any other touch executions of the above come to mind? > > I'm assuming above that "LEFT" alone would equate to touch-drag on the iPad. > > Otis > > -- > Otis Rothenberger > o...@chemagic.com > http://chemagic.com > > > > > > > > -- > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnnow-d2d > ___ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > 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 > > -- > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnnow-d2d___ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] JSmol Question
you can certainly use UNBIND LEFT to unbind LEFT-CLICK. On Wed, Jan 23, 2013 at 7:34 AM, Otis Rothenberger wrote: > Bob, > > I've discovered that iPad actually has a hover that allows me to select a > bond in JSmol prior to a conformation rotation. So this hover/click > movement sets me up for conformation. I'm currently using the following > binding for this: > > bind "CTRL-LEFT" "select WITHIN(BRANCH,{atomno=rot1}, {atomno=rot2}); if > (_X < 250){select WITHIN(BRANCH,{atomno=rot2}, {atomno=rot1});} > rotateSelected {atomno=rot1} {atomno=rot2} @{_DELTAY*.5} > > The rot1 and rot2 are set up by the bond selection. The 250 is my half my > JSmol window width. > > The above binding (CTRL-LEFT) is useless on an iPad. Is there any way to > temporarily unbind "LEFT" alone so that it can be bound to the above > script? If not, do any other touch executions of the above come to mind? > > I'm assuming above that "LEFT" alone would equate to touch-drag on the > iPad. > > Otis > > -- > Otis Rothenberger > o...@chemagic.com > http://chemagic.com > > > > > > > > > -- > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnnow-d2d > ___ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > 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 -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] JSmol Question
also, if you use script commands, it probably waits anyway. There's only one thread, and all files are loaded synchronously. So it's not like Jmol, where you don't know if it is done yet. On Wed, Nov 14, 2012 at 2:47 PM, Otis Rothenberger wrote: > Bob, > > If I am directing the page load toward HTML5 only, do I have any inherent > JavaScript "model loaded" notice (variable) available? > > Otis > > -- > Otis Rothenberger > o...@chemagic.com > http://chemagic.com > > > > > > > -- > 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 > Jmol-users@lists.sourceforge.net > 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 Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] JSmol Question
you have all the normal callback methods. On Wed, Nov 14, 2012 at 2:47 PM, Otis Rothenberger wrote: > Bob, > > If I am directing the page load toward HTML5 only, do I have any inherent > JavaScript "model loaded" notice (variable) available? > > Otis > > -- > Otis Rothenberger > o...@chemagic.com > http://chemagic.com > > > > > > > -- > 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 > Jmol-users@lists.sourceforge.net > 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 Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users