Thanks Angel!
That worked beautiful and loaded the PDB file into "jmolApplet0" from
another frame:
e.g.
function pdb() {
Jmol.script(parent.TargetFrame.jmolApplet0, "load=1SHC")
}
<button onClick="pdb();">Load PDB</button>
Amjad
On Wed, Sep 11, 2013 at 4:04 AM, Angel Herráez <angel.herr...@uah.es> wrote:
> 1. Please, remember that JSmol is documented (if not extensively at
> least the basics) in the Jmol Wiki.
>
> 2. I haven't been able to make JSmol works across frames. I did not
> try further, maybe it's possible. I'd say you need to address the
> Jmol object in the target frame and not the one in the current frame.
>
> e.g.
> function pdb() {
> parent.otherFrame.Jmol.script(jmolApplet0, "load=1SHC")
> }
>
> > What am I missing here? I am not able to load the PDB file in
> > jmolApplet0 from another frame. Note that the page/frame from which
> > "Load PDB" is invoked contains the JSmol.min.js script in the header
> > section:
>
> It's probably the other franme that must have the call to
> JSmol.min.js (or both frames)
>
>
>
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. Consolidate legacy IT systems to a single system of record for IT
> 2. Standardize and globalize service processes across IT
> 3. Implement zero-touch automation to replace manual, redundant tasks
> http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users