On 9/5/05 (11:05 ) David Leader wrote: >Tim wrote: > >>I am very uncomfortable with the idea of using Jmol.js, or any >>javascript in fact, solely for the purpose of writing 'static' html >>or css to a page. (dynamic code is an entirely different matter. >>altogether.) > >I agree - separation of concerns is the technical term, I think. >This was implicit in my comment: > ok
>>Of course in the case of checkboxes it is good that you provide >>this, as it would be difficult for the user to assign a css style >>otherwise. However intervening html is clearly not the concern of >>the js (ok your simple <br> function is helpful to people who are >>not html savy) - the user can handle this himself. > >But I would reiterate that as I see it the provision of css in the >js *is* necessary to allow styling of any features generated by the >javascript, and hence the concern of the javascript. These features >would seem to be restricted buttons and checkboxes and perhaps the >applet. > yes, under the current implementation; however, I am uncomfortable with that implementation. I believe the Jmol.js should simply provide the function that does the 'work' (i.e., what goes in the onclick attribute). the page author should deal with the html as html (or css, as the case may be). I agree with you in principle: tighter control over the layout (styling) is desirable. I do not think it should be done by javascript, though. regards, tim -- Timothy Driscoll molvisions - see, grasp, learn. <http://www.molvisions.com/> earth:usa:virginia:blacksburg "As far as the laws of mathematics refer to reality, they are not certain, and as far as they are certain, they do not refer to reality." - Albert Einstein ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

