Ok, I'll look into the i/o via JavaScript functions.
That immediately leads to the question of how to obtain a list of
available functions and their parameters/formats, etc.
VB - WebBrowser - Page elements - JS functions - Jmol commands ?
I'm a bit fuzzy on the line of events (and exact formats for the
functions), since I currently use the first and last (VB and the
explicit commands).
** *
Also, what is wrong with using the Page elements (now that I can
communicate with them) ?For example, could you simply set up some OUTPUT
elements to provide state info or the answer to various queries (or the
last question) ?
I see that the tagName may be a group of elements (such as INPUT) rather
than a unique name.
So the ID or index is needed to refer to a unique element.
For example I can send a Jmol command via elements 11 (the text) 12 (the
button to click), but there is no guarantee that 11 and 12 are stable
indices for future versions.Then it would help provide an ID for the
button (12).
Michael (sorry for second post, first was bounced for being too big)
On 24/03/2011 06:57, Robert Hanson wrote:
Ah, interesting. What you really need to do is explore whether you can
use JavaScript functions on that page and call them from Visual Basic.
Here's a link to a possibility:
http://groups.google.com/group/microsoft.public.vb.general.discussion/browse_thread/thread/7c81a612b9fd026e
Looks like:
WebBrowser1.Document.parentWindow.execScript "jmolScript(xxxxx)",
"JScript"
Or, possibly, to return a value:
x = WebBrowser1.Document.parentWindow.execScript
"jmolEvaluate(xxxxx)", "JScript"
Does that work?
On Wed, Mar 23, 2011 at 9:23 AM, Michael Marden
<[email protected] <mailto:[email protected]>> wrote:
WebBrowser1.Document.All(i).tagNAme
WebBrowser1.Document.All(i).ID
WebBrowser1.Document.All(i).Value
This is standard MSIE notation, with capitalization.
------------------------------------------------------------------------------
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