Re: [Jmol-developers] jQuery-Jmol v2.0

2012-08-13 Thread Gusts Kaksis
It should be reset with a wrapping element, where you set text-align: left; And I'm not sure weather it works with inline styles. But, as I said, it might not be so important anymore, as IE6 is used by <10% of users, so margin: 0 auto; is more than enough. Gusts On 2012.08.13. 15:45, Robert Ha

Re: [Jmol-developers] jQuery-Jmol v2.0

2012-08-13 Thread Gusts Kaksis
On 2012.08.13. 15:43, Robert Hanson wrote: On Mon, Aug 13, 2012 at 4:08 AM, Gusts Kaksis > wrote: Tables are for tabular data - like spreadsheets. Wow, amazing how times change! Tables were definitely specifically for page layout when they were initiall

Re: [Jmol-developers] jQuery-Jmol v2.0

2012-08-13 Thread Robert Hanson
text-align:center is a total disaster. I tried that first, and it completely messed up my table. On Mon, Aug 13, 2012 at 4:19 AM, Gusts Kaksis wrote: > Oh, no. It's even more fun than that. Internet Explorer does not go with > the margin:0 auto; You have to use text-align:center :) > So it's more

Re: [Jmol-developers] jQuery-Jmol v2.0

2012-08-13 Thread Robert Hanson
On Mon, Aug 13, 2012 at 4:08 AM, Gusts Kaksis wrote: > > Tables are for tabular data - like spreadsheets. > Wow, amazing how times change! Tables were definitely specifically for page layout when they were initially developed. Layout is a concern of the design, thus a cascading style sheet rel

Re: [Jmol-developers] jQuery-Jmol v2.0

2012-08-13 Thread Gusts Kaksis
Yes, it might be so, but it definitely does not work in IE6. But it seems that IE6 is already phasing out from the world of web completely (10% market share in 2011), so I think it's OK to drop text-align:left then. In my example I forgot to add width to #wrap element. Gusts On 2012.08.13. 13

Re: [Jmol-developers] jQuery-Jmol v2.0

2012-08-13 Thread Angel Herráez
Thanks, Gusts but I disagree. "margin:0 auto;" works in IE (7+) as well as other browsers for tables Also for divs, but without using text-align: left; (Your example is not working in my hands -- not important to discuss now; all we needed is to center that table) -

Re: [Jmol-developers] jQuery-Jmol v2.0

2012-08-13 Thread Gusts Kaksis
Oh, no. It's even more fun than that. Internet Explorer does not go with the margin:0 auto; You have to use text-align:center :) So it's more like: ... your centered content ... and body { text-align: center; // IE centering } #wrap { text-align: left; // Reset back to left

Re: [Jmol-developers] jQuery-Jmol v2.0

2012-08-13 Thread Gusts Kaksis
Hi, Bob! Yes, the validation might not work (yet!), as the w3c still hasn't got XHTML5 validator (which is the XML version of HTML5) and HTML5 itself is still marked "experimental", thus it has no clue about data- attributes in XHTML 1.0. My implementation will remain in this minimalist

Re: [Jmol-developers] jQuery-Jmol v2.0

2012-08-12 Thread Robert Hanson
So good to have friends! OK, so it WAS simple -- Thanks, Angél. Here's the body now: You will need JavaScript enabled to use this page Works for me! Bob On Sun, Aug 12, 2012 at 10:31 AM, Angel Herráez wrote: > Bob

Re: [Jmol-developers] jQuery-Jmol v2.0

2012-08-12 Thread Angel Herráez
Bob wrote: > -- I had to play some jQuery tricks to implement , but that's good to > learn how to do > anyway. I did have a problem implementing my .center() method without > hard-coding widths, but > that's probably what you need to do anyway when you use anything that > involves page center

Re: [Jmol-developers] jQuery-Jmol v2.0

2012-08-11 Thread Robert Hanson
Gusts, thanks very much for your contribution and getting us thinking more about integrating jQuery into pages that utilize Jmol. I hope we can develop this more. You might want to run your pages through W3C and XHTML validators. I did that with my version of simple2.htm and discovered several mis

Re: [Jmol-developers] jQuery-Jmol v2.0

2012-08-10 Thread Gusts Kaksis
1. It's less - just raw setup-and-wrap for Jmol applet 2. It's W3C standards compliant 3. It's XHTML compliant 4. It uses events - so you can set up more callbacks than one I think that's it. Everything else should be done by the developer or Jmol.js (that one I leave for you, for now). On 201

Re: [Jmol-developers] jQuery-Jmol v2.0

2012-08-10 Thread Robert Hanson
Great. Can you summarize the capabilitiesof jQuery-Jmol vis-a-vis Jmol.js and JmolApi.js? On Fri, Aug 10, 2012 at 10:19 AM, Gusts Kaksis wrote: > I've released version 2.0 of jQuery plugin. It is a complete rewrite. > 1. I've managed to cheat jQuery and override bind() and unbind() > methods, so

[Jmol-developers] jQuery-Jmol v2.0

2012-08-10 Thread Gusts Kaksis
I've released version 2.0 of jQuery plugin. It is a complete rewrite. 1. I've managed to cheat jQuery and override bind() and unbind() methods, so that callbacks are set up only when an event binding is requested for the first time. 2. I've introduced a wrapper class, that acts as a script cache