Re: [Jmol-users] communication between frames/windows

2015-09-02 Thread Dr. Eyal Eran
Thanks a lot for the responses for the above topic, especially for Angel, Otis 
and Jaime. I need to educate my self regarding the events notice solution.
I understand that the Jmol.script is a current simple mechanism to communicate 
between frames. I was able also to communicate between windows (for example by 
Jmol.script(opener.JmolApplet , 'script')).


Otis, I actually tested iframes and not only old frameset. You can check one 
pilot here (with a non-functional jmolButton on the right):
http://www.sheba-cancer.org.il/jsmoliframes.html

Thanks,
Eran


Eran Eyal, PhD
Head of Bioinformatics
Cancer Research Center
Sheba Medical Center
Tel: +972-3-5308148
Fax: +972-3-5305942

eran.e...@sheba.health.gov.il
http://www.sheba-cnacer.org.il/eran

--
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991=/4140___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] communication between frames/windows

2015-09-01 Thread Angel Herráez
One of the problems with frames seems to be the timing when the Jmol 
global object and the particular JSmol object are created in each frame.
For example, when using commands like Jmol.jmolButton in the text frame it 
fails to create the button because the JSmol object in the other frame is not 
yet there. Reloading the text frame once I can see the JSmol panel makes 
the button show up, but it is not operative, for whatever reason.

Some testing
http://biomodel.uah.es/angel/frames/frameset1.htm
suggests that you can only use Jmol.script, which is triggered by the user 
and so the JSmol object has had time to be generated.

Finally, I found a workaround by redefining the old jmolButton function, so it 
will insert an  that will run a Jmol.script command
See the url above for hints



--
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] communication between frames/windows

2015-09-01 Thread Angel Herráez




(sorry for possible duplicates; my outgoing mail server is having a bad time today)




Hi Eran

Others seem to hae succeeded with this, but I had to give up trying to use frames in 
my pages when I updated them to JSmol. I guess it depends on the complexity of the 
code in the controls, and maybe their layout.

In any case, you'd need to provide an example page if we are to research this. I'll be 
glad to have a look.


  




WPM$7ZX5.PM$
Description: Mail message body
--
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] communication between frames/windows

2015-09-01 Thread CheMagic
Hi Eran,

I was thinking about an iframe in a page, but it sounds like you may be talking 
about an older frameset approach. Is this a case where there is a top frameset 
html page with other frames being set in this frameset page?  If so, can you 
send a link to the top frameset page that is being used. The javascript to 
"talk" between such frames is doable, but a bit more convoluted than "talking" 
to an iframe.

This frameset hierarchy can be very frustrating and unpredictable, particularly 
with file path references. Angel has some experience with this frustration, and 
I believe he has abandoned this frameset approach. I've worked with it in the 
past, and I may be able to make a suggestion if I see the frameset, assuming 
that's what you are working with.

Otis

Sent from my iPad

> On Sep 1, 2015, at 7:10 AM, Dr. Eyal Eran  
> wrote:
> 
> I know this issue was discussed before but I still not able to resolve it. I 
> want to be able to influence on a model in a window or frame with control 
> elements on a different window/frame and I found this thread for example:​
> 
> sourceforge.net/p/jmol/mailman/message/33692410
> 
> with a detailed syntax suggestion of Otis, but this does not work for me 
> either. So far I could not find any way to use control elements like buttons 
> to act on a model in a different frame/window. I know div elements can 
> replace frames, but I have also old Jmol sites in which the control elements 
> are in a separate child window.
> Thanks,
> Eran​
>  
> Eyal Eran, PhD
> Head of bioinformatics unit
> Cancer Research Center
> Sheba Medical Center
> Tel: 03-5308148
> Fax: 03-5305942
> eran.e...@sheba.health.gov.il
> http://www.sheba-cancer.org.il/eran
>  
>  
>   
> --
> ___
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
--
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users


Re: [Jmol-users] communication between frames/windows

2015-09-01 Thread Angel Herráez




(sorry for possible duplicates; my outgoing mail server is having a bad time today)




Hi Eran

Others seem to hae succeeded with this, but I had to give up trying to use frames in 
my pages when I updated them to JSmol. I guess it depends on the complexity of the 
code in the controls, and maybe their layout.

In any case, you'd need to provide an example page if we are to research this. I'll be 
glad to have a look.


  



--
___
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users