Great, that works ; in fact all 3 formats work.
thanks Otis and Bob
I'll try the Callback asap. Apparently 2-way communication does work,
see also:
http://msdn.microsoft.com/en-us/library/a0746166.aspx
I'm not sure yet if VB6 can do it. I am working on VB.NET in parallel
more later,
Michael
E-mail: michael.mar...@inserm.fr
On 31/03/2011 00:27, Robert Hanson wrote:
OK, Michael, I'd say that is "two steps forward, one back." The
command is:
WebBrowser1.Document.parentWindow.execScript "jmolScript(' " + stringA
+ " ')"
But careful with those quotes. I've inserted double quotes to make it
work, but I would recommend instead:
stringA = “'load heme.pdb'”
Because you need that ultimately to read:
"jmolScript('load heme.pdb')"
Then you would use:
WebBrowser1.Document.parentWindow.execScript "jmolScript(" + stringA +
")"
On Tue, Mar 29, 2011 at 9:29 AM, Michael Marden
<michael.mar...@inserm.fr <mailto:michael.mar...@inserm.fr>> wrote:
Also, I have not yet found a way to “read” information directly.
How did it go with that .window.external call from the JavaScript (via
Jmol callback?)
I think this is going to work beautifully -- it will appear that your
program is getting the callback.
In JavaScript:
function myJmolCallback(a,b,c,d,e,f) {
window.external.yourVbFunction(a,b,c,d,e,f)
}
where then you define a VB function that accepts those arguments. You
may have to turn them all into strings:
function myJmolCallback(a,b,c,d,e,f) {
window.external.yourVbFunction("" +a,"" +b,"" +c,"" +d,"" +e,"" +f)
}
I don't know.
Bob
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users