Re: [Jmol-developers] Jmol.resizeApplet

2014-09-08 Thread Herman Bergwerf
I fixed my resizeApplet issue but I can't get the latest JSmol version
working (from http://chemapps.stolaf.edu/jmol/zip/Jmol.zip)
Uncaught TypeError: undefined is not a function package.js:14(anonymous
function)
Looks like ClazzLoader.fastGetJ2SLibBase() should
be ClazzLoader.getJ2SLibBase()

2014-09-07 0:51 GMT+02:00 Robert Hanson hans...@stolaf.edu:

 I think I found it. It will be part of 14.3.7 and 14.2.7, probably later
 this weekend.


 On Sat, Sep 6, 2014 at 5:14 PM, Herman Bergwerf hermanbergw...@gmail.com
 wrote:

 On my tablet, Jmol.resizeApplet(JSmol, [w,h]) creates a new canvas insead
 of resizing the existing canvas causing JSmol to become useless.
 The console also told me this:
 Uncaught TypeError: Cannot read property 'processTwoPointGesture' of
 undefined

 Strangely, everything is alright in the current stable version of my
 application: http://molview.org which uses a slightly older version of
 JSmol.


 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Jmol-developers mailing list
 Jmol-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-developers




 --
 Robert M. Hanson
 Larson-Anderson Professor of Chemistry
 Chair, Department 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



 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Jmol-developers mailing list
 Jmol-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-developers


--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk___
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers


Re: [Jmol-developers] Jmol.resizeApplet

2014-09-08 Thread Herman Bergwerf
Whoops, everything is OK now (had to clear my cache)

2014-09-07 0:51 GMT+02:00 Robert Hanson hans...@stolaf.edu:

 I think I found it. It will be part of 14.3.7 and 14.2.7, probably later
 this weekend.


 On Sat, Sep 6, 2014 at 5:14 PM, Herman Bergwerf hermanbergw...@gmail.com
 wrote:

 On my tablet, Jmol.resizeApplet(JSmol, [w,h]) creates a new canvas insead
 of resizing the existing canvas causing JSmol to become useless.
 The console also told me this:
 Uncaught TypeError: Cannot read property 'processTwoPointGesture' of
 undefined

 Strangely, everything is alright in the current stable version of my
 application: http://molview.org which uses a slightly older version of
 JSmol.


 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Jmol-developers mailing list
 Jmol-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-developers




 --
 Robert M. Hanson
 Larson-Anderson Professor of Chemistry
 Chair, Department 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



 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Jmol-developers mailing list
 Jmol-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-developers


--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk___
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers


Re: [Jmol-developers] Jmol.resizeApplet

2014-09-07 Thread Herman Bergwerf
Thank you very much for the fix!
These are indeed unrelated issues.

I add the applet to the Dom using getapplethtml and jmol.setdocument(0)
The resizing does work on my desktop and it works on my tablet for small
molecules. But it fails for macromolecules (seems totally unrelated but it
happens)
The jmol wrapper divs are not duplicated, only the inner canvas
When I delete the old one manually, everything works just fine.
Is the canvas reference stored as object? (In this case, I'm probably
constructing jsmol twice producing this error)

On Sep 7, 2014 12:53 AM, Robert Hanson hans...@stolaf.edu wrote:

 Sorry - that was in response to your other message, about multitouch.

 I am not seeing any issue with Jmol.resizeApplet(appletid, width, height)

 Looks to me like you do not have an applet with id JSmol.

 These are two unrelated issues, right?




 On Sat, Sep 6, 2014 at 5:51 PM, Robert Hanson hans...@stolaf.edu wrote:

 I think I found it. It will be part of 14.3.7 and 14.2.7, probably later
this weekend.


 On Sat, Sep 6, 2014 at 5:14 PM, Herman Bergwerf hermanbergw...@gmail.com
wrote:

 On my tablet, Jmol.resizeApplet(JSmol, [w,h]) creates a new canvas
insead of resizing the existing canvas causing JSmol to become useless.
 The console also told me this:
 Uncaught TypeError: Cannot read property 'processTwoPointGesture' of
undefined

 Strangely, everything is alright in the current stable version of my
application: http://molview.org which uses a slightly older version of
JSmol.


--
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Jmol-developers mailing list
 Jmol-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-developers




 --
 Robert M. Hanson
 Larson-Anderson Professor of Chemistry
 Chair, Department 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




 --
 Robert M. Hanson
 Larson-Anderson Professor of Chemistry
 Chair, Department 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



--
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Jmol-developers mailing list
 Jmol-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-developers

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers


Re: [Jmol-developers] Jmol.resizeApplet

2014-09-07 Thread Robert Hanson
only the latter [w,h], I think.

On Sat, Sep 6, 2014 at 6:27 PM, Angel Herráez angel.herr...@uah.es wrote:

 Bob, are both syntaxes supported?

 Jmol.resizeApplet(appletid, w, h)

 Jmol.resizeApplet(appletid, [w,h])

 I only had the 2nd documented
 http://wiki.jmol.org/index.php/Jmol_JavaScript_Object/Functions#resizeApple
 t




 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Jmol-developers mailing list
 Jmol-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-developers




-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department 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
--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk___
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers


Re: [Jmol-developers] Jmol.resizeApplet

2014-09-07 Thread Robert Hanson
If you have two applets, you need to be sure they have different names.
That could cause this sort of thing.

On Sun, Sep 7, 2014 at 9:04 PM, Robert Hanson hans...@stolaf.edu wrote:

 only the latter [w,h], I think.

 On Sat, Sep 6, 2014 at 6:27 PM, Angel Herráez angel.herr...@uah.es
 wrote:

 Bob, are both syntaxes supported?

 Jmol.resizeApplet(appletid, w, h)

 Jmol.resizeApplet(appletid, [w,h])

 I only had the 2nd documented

 http://wiki.jmol.org/index.php/Jmol_JavaScript_Object/Functions#resizeApple
 t




 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Jmol-developers mailing list
 Jmol-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-developers




 --
 Robert M. Hanson
 Larson-Anderson Professor of Chemistry
 Chair, Department 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




-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department 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
--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk___
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers


[Jmol-developers] Jmol.resizeApplet

2014-09-06 Thread Herman Bergwerf
On my tablet, Jmol.resizeApplet(JSmol, [w,h]) creates a new canvas insead
of resizing the existing canvas causing JSmol to become useless.
The console also told me this:
Uncaught TypeError: Cannot read property 'processTwoPointGesture' of
undefined

Strangely, everything is alright in the current stable version of my
application: http://molview.org which uses a slightly older version of
JSmol.
--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers


Re: [Jmol-developers] Jmol.resizeApplet

2014-09-06 Thread Robert Hanson
I think I found it. It will be part of 14.3.7 and 14.2.7, probably later
this weekend.


On Sat, Sep 6, 2014 at 5:14 PM, Herman Bergwerf hermanbergw...@gmail.com
wrote:

 On my tablet, Jmol.resizeApplet(JSmol, [w,h]) creates a new canvas insead
 of resizing the existing canvas causing JSmol to become useless.
 The console also told me this:
 Uncaught TypeError: Cannot read property 'processTwoPointGesture' of
 undefined

 Strangely, everything is alright in the current stable version of my
 application: http://molview.org which uses a slightly older version of
 JSmol.


 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Jmol-developers mailing list
 Jmol-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-developers




-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department 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
--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers


Re: [Jmol-developers] Jmol.resizeApplet

2014-09-06 Thread Robert Hanson
Sorry - that was in response to your other message, about multitouch.

I am not seeing any issue with Jmol.resizeApplet(appletid, width, height)

Looks to me like you do not have an applet with id JSmol.

These are two unrelated issues, right?




On Sat, Sep 6, 2014 at 5:51 PM, Robert Hanson hans...@stolaf.edu wrote:

 I think I found it. It will be part of 14.3.7 and 14.2.7, probably later
 this weekend.


 On Sat, Sep 6, 2014 at 5:14 PM, Herman Bergwerf hermanbergw...@gmail.com
 wrote:

 On my tablet, Jmol.resizeApplet(JSmol, [w,h]) creates a new canvas insead
 of resizing the existing canvas causing JSmol to become useless.
 The console also told me this:
 Uncaught TypeError: Cannot read property 'processTwoPointGesture' of
 undefined

 Strangely, everything is alright in the current stable version of my
 application: http://molview.org which uses a slightly older version of
 JSmol.


 --
 Slashdot TV.
 Video for Nerds.  Stuff that matters.
 http://tv.slashdot.org/
 ___
 Jmol-developers mailing list
 Jmol-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jmol-developers




 --
 Robert M. Hanson
 Larson-Anderson Professor of Chemistry
 Chair, Department 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




-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department 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
--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers


Re: [Jmol-developers] Jmol.resizeApplet

2014-09-06 Thread Angel Herráez
Bob, are both syntaxes supported?

Jmol.resizeApplet(appletid, w, h)

Jmol.resizeApplet(appletid, [w,h])

I only had the 2nd documented
http://wiki.jmol.org/index.php/Jmol_JavaScript_Object/Functions#resizeApple
t



--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers