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 <[email protected]>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
read this:
>
> http://bytes.com/topic/c-sharp/answers/609601-how-catch-click-webbrowser
>
> I'm very interested to find out if that works.
>
> Bob
>
>
>
>
> ------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software
> be a part of the solution? Download the Intel(R) Manageability Checker
> today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
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
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users