Frames: Pretty close! I'm almost sold on divs and ready to say I'm done developing with frames. Can you dynamically set the height of that div so that it adjusts to overall window height? On my machine the scroller goes down below the bottom of my screen, so I have to "scroll to scroll" That, of course, doesn't happen with frames.

Frames were so nice because they allowed for automatic fractional window amounts. Is this possible easily with divs, or do you have to hard code all the coordinates. "position:absolute" can be difficult.

[I know this is a bit off the focus of the Jmol list, so I'm cross-posting to ChemWebDev.]

Bob Hanson

Andy Bates wrote:

Angel and Folks

There was an earlier discussion about the desirability of managing without frames, so in that spirit, I put together the following with a scrolling div - I had previously used frames with Chime. As long as the div is 'position: absolute' and 'overflow: auto', then it works fine (with Jmol.js):

http://www.liv.ac.uk/sbs/DNA_Topology/HelixL.htm

Cheers

Andy

ps Separate issue - this tutorial also features the consequences of setting the centre of rotation causing the model to be re-centred (subject of another recent discussion). I have bodged it with various translations, but things still jump around a bit, when it would be ideal if they stayed still.


__
Dr Andrew D. Bates
School of Biological Sciences
University of Liverpool
The Biosciences Building
Crown Street Liverpool L69 7ZB UK
Tel-(+44) (0)151 795 4563
Fax-(+44) (0)151 795 4410
Mobile-(+44) (0)797 324 7956
http://www.liv.ac.uk/~bates/
DNA Topology - Bates and Maxwell
Available now through all good bookshops, or direct from OUP at:
http://www.oup.co.uk/isbn/0-19-850655-4
Liverpool - European Capital of Culture 2008
http://www.liverpool08.com/


At 6:18 pm +0100 1/3/05, Angel Herraez wrote:

Thanks to all for your prompt replies.


Tim, I wasn't referencing the applet since I am using Jmol.js, as Bob has commented.

Bob, thanks for your extensive and very helpful reply; I know it can
be done with tables, but I didn't want to, since I like to have a
scrollable text and a common, static model.  I hear everywhere that
frames are going away, but I still haven't found something that does
what you get so easily with frames. Today I have tried to do it with
DIVs, but I have gone half-mad wih it.

I already thought that it could have to do with the use of different
frames but it was working perfectly with the model in the left-side
frame (in fact, a couple of days ago I have ported a whole set of
pages using Eric's 2-frame template from Chime to Jmol).
Reading Bob,  I guess the "looking for frames" routine is finding the
applet in the first frame but not in the second one. I will try to
use Bob's suggested tweak.

For the record, Miguel, I tested with Firefox 1.0 and IE6.0, both in
WinXPpro-sp2. They behave the same (I mean just for this ;-).

Thanks again. I will let  you know about my progress.





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users



--

Dr Andrew D. Bates
School of Biological Sciences
University of Liverpool
The Biosciences Building
Crown Street Liverpool L69 7ZB UK
Tel-(+44) (0)151 795 4563
Fax-(+44) (0)151 795 4410
Mobile-(+44) (0)797 324 7956
http://www.liv.ac.uk/~bates/
DNA Topology - Bates and Maxwell
Available now through all good bookshops, or direct from OUP at:
http://www.oup.co.uk/isbn/0-19-850655-4
Liverpool - European Capital of Culture 2008
http://www.liverpool08.com/
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

--
Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107
Professor of Chemistry, St. Olaf College 1520 St. Olaf Ave., Northfield, MN 55057
mailto:[EMAIL PROTECTED] http://www.stolaf.edu/people/hansonr





------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to