Thanks, Tim
A few quick answers:
> first, congratulations a very nice feature! I think you should
> integrate it into Jmol.js (perhaps as a set of external js
> libraries).
I'm not sure if that can be done, since it's HTML layout and, particularly, CSS
that must be
matching the javascript. In fact. on v.0.5 --which due to auto resizing is
probably what most of
us would like to use-- little javascript is used; it's all based on CSS.
But anyway I will think on the possibilities.
My idea for now is to finish it up and put it on Jmol Wiki as templates.
> you could extend it to more complex layouts as well, to
> include multiple applets, multiple text boxes, etc. if you want to
> do this, I'll be happy to talk more with you off-list.
Good. Jonathan Gutow has also suggested a possible integration into his Java
quick-
webpage-builder program, Jmol_Web_Page_Maker. That will make an excellent
solution for
Jmol starters.
Certainly. Once the code proves stable and reproducible across browsers, by
adapting/duplicating it, it won't be difficult to set any combination.
> a question:
> I have been using a very similar implementation for several years;
> however, I have never been able to add the dynamically resizable
> applet. that is an enormous upgrade IMO! can you point out how you
> accomplish that in particular? I can't tell from looking at your code.
The applet can now be sized in percent of external wrapper --either window or
DIV--. This is
a recent addition of Bob's (ca. Jmol 11.1.20), although I'm suspecting that it
is more a Jmol.js
addition than a Jmol improvement itself.
What I am doing in v.0.5 is sizing the applet as 100%, so I only have to take
care of the size
of the wrapping div, and that is resized most of the time by the browser
according to the full
window, since the div itself is also sized in percent.
That is, very summarized:
<div id="JmolPane" style="float:right; height:100%; width:60%;">
jmolApplet("100%")
</div>
On previous versions (0.3-0.4), the applet size was set in pixels calculated
from window size
using javascript. So, it always fits but does not follow window resizing.
> a few hidden problem spots that you might encounter:
> I have found this method to be quite stable on 'modern' browsers -
Well, yes. For old systems, my only reliable solution was using frames. In
fact, I calculated
the applet size using javascript as here, but it didn't resize.
I didn't do this sort of things before, but now I am assuming that Jmol pages
will be seen
using reasonably recent browsers. I have tested this with IE 5.5 in Windows and
it behaves.
Below that version... we cannot have everything, since there is no universal
solution. But I do
have copies of IE4 and IE5.0, I can test them. (Will anybody use them?
Nowadays,
Microssoft updates your browser before you can realize)
I don't think that low screen resolutions will be any concern. In fact, that's
the whole purpose
of starting this, not to assume that the user will have e.g. 1024x768. And the
fixed-size-applet
pages don't cope at all with that.
Anyway, of course tests on as diverse systems as possible as desirable and
welcome
Thanks to all who are sending comments on or off-list
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users