You need to use "opener.xxx" for the opener's variables. I do use this all
the time for another project. Haven't seen an issue. I am pretty sure in
DOM you can remove and relocate child nodes. yes:
https://developer.mozilla.org/en-US/docs/DOM/Node.appendChild

"If child is a reference to an existing node in the document,
appendChildmoves it from its current position to the new position
(i.e. there is no
requirement to remove the node from its parent node before appending it to
some other node)."

The outermost div created by JSmol is id="ID_appletinfotablediv" where ID
is the name you have given the applet, such as "jmol" or "jmolApplet0"

Bob


On Mon, May 6, 2013 at 10:08 AM, Angel Herráez <angel.herr...@uah.es> wrote:

> > You could also move an applet from one div to another to give the
> > appearance of more than one applet but only really have one.
>
> Bob, how would you do that? Do you need a wrapper div, or what is
> generated by JSmol is enough? What DIV to address for reading the
> html data?
>
> Not exactly the same, but related: I am working on a pop-up clone of
> a JSmol instance, and I was trying to copy the contents of the div.
> But it seems that javascript variables from the opener window are no
> longer accesible to the child (opened) window -- not even a
> javascript error, but variables are "undefined"; this seems to be a
> "security" limitation of the browser (Firefox).
>
>
> ·
>  Dr. Angel Herráez
>  Biochemistry and Molecular Biology,
>  Dept. of Systems Biology, University of Alcalá
>  E-28871 Alcalá de Henares  (Madrid), Spain
>
>
>
> ------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to