> The main new aspect of Jmol.js is that functions
>
> jmolApplet()    jmolBr()   jmolButton()  jmolCheckbox()
> jmolHtml()      jmolLink() jmolMenu()    jmolRadio()
> jmolRadioGroup()
>
> all return the HTML code and only optionally write it to the page.
> This may not seem like a big deal, but it is.

It *is* a big deal. It was Bob's idea and it was a *very* good one.

> If you are building the HTML around an applet, you don't have to use all
> those
> jmolBr and JmolHtml functions anymore. Just do something like this:
>
> jmolInitialize(".")
> jmolSetDocument(false) //turns off document writing
> var applet=jmolApplet(...)
> var controls=jmolRadioGroup(...)
> var s="<table><tr><td>"+controls+"</td><td>"+applet+"</td></tr></table>"
> document.write(s)
> jmolSetDocument(document) //turns document writing back on
>
> What's interesting here is that we are creating the applet, then the
> controls,
> but then writing the controls, then the applet. Easy!

This capability is EXCELLENT!

> 3) Selective writing to divs, spans, frames, or iframes.
>
> Say you already have a page up, but you don't start with an applet. (Ahem,
> Miguel, maybe this for the home page, eh?)

If you (or someone else) want to work on the web site, please do so!

I can spend time adding functionality or I can fix the home page ... which
would you prefer? ;-)

> You can add it anytime with a
> link.
> So, if we had:
>
> <div id=applet_A></div>
>
> or even
>
> <p>Here is an applet added inline later:
> <span id="applet_A">applet will appear here</span>
> </p>
>
> anytime later we could execute (perhaps from a link):
>
> jmolInitialize(".")
> jmolSetDocument(false)
> document.getElementById("applet_A").innerHTML
>       =jmolApplet(300,"load 1crn.pdb","A")
>
> and the applet will materialize out of thin air. The same goes for
> controls, of
> course.

Very powerful.

> How many other ideas can we come up with for this new facility?

Bob, this is great. Thanks for coming up with the idea and pressing me to
implement it.


Miguel



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to