Rajarshi,

see http://chemapps.stolaf.edu/jmol/docs/examples-11/new.htm and 
http://chemapps.stolaf.edu/jmol/docs/examples-11/new.js

Look for the word "popup"

In particular, these pop up the document 
http://chemapps.stolaf.edu/jmol/docs/examples-11/JmolPopup.htm, which 
goes back to the page that opened it (window.opener),  gets the state of 
that applet using opener.jmolGetPropertyAsString("stateInfo"), and 
clones it into its own using "script javascript:getState()".

Bob Hanson




Rajarshi Guha wrote:

>Hi, this is not really a Jmol question, but it is part of a Jmol  
>based app and the Jaavscript guru's are here! So, I have a web page  
>within which is an image map.
>
>When I click on an area of the image map I would like to popup a  
>window and fill it with some contents. I have so far got something  
>like this:
>
><img src="junk.gif" usemap="#G" border=0/>
><map id="G" name="G">
><area shape="rect" onclick="showSingle('CCC')" title="0" alt=""  
>coords="117,8,189,56" />
>...
>
>now showSingle() is a Javascript function which right now just brings  
>up an alert box. Instead what I'd like to do is open a window and fil  
>it automatically with the result of calling a URL. So in pseudocode:
>
>showSingle(smiles) {
>   var url = 'http://some.where/something.cgi?smiles';
>   openWindow with the result of calling url;
>}
>
>Any pointers would be appreciated
>
>
>-------------------------------------------------------------------
>Rajarshi Guha  <[EMAIL PROTECTED]>
>GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04  06F7 1BB9 E634 9B87 56EE
>-------------------------------------------------------------------
>"whois awk?", sed Grep.
>
>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc.
>Still grepping through log files to find problems?  Stop.
>Now Search log events and configuration files using AJAX and a browser.
>Download your FREE copy of Splunk now >>  http://get.splunk.com/
>_______________________________________________
>Jmol-users mailing list
>Jmol-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>  
>


-- 
Robert M. Hanson
Professor of Chemistry
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



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to