Joe
Sun Feb 29 13:37:11 CST 2004
Hi,
"Erwin Kalvelagen" <erwin@gams.com> wrote in message
news:eZquYjk$DHA.2216@TK2MSFTNGP10.phx.gbl...
>
> Thanks for the replies. This is basically for documentation
> purposes for a COM server we developed and we have had
> interest of clients to run this against VBscript. So I better
> include some examples in Javascript/JScript as well as VBscript.
>
> Thanks again.
>
> ----------------------------------------------------------------
> Erwin Kalvelagen
> GAMS Development Corp.,
http://www.gams.com
> erwin@gams.com,
http://www.gams.com/~erwin
> ----------------------------------------------------------------
This may be too simplistic for your needs, but when I was developing IeApp
windows, I rummaged through MSDN and found examples in the newsgroup (credit
primarily posts by Michael Harris, Gurgen Alaverdian and Joe Fawcett). I
have a HTML VBS syntax htm page in my personal chm file, which I can email
you, if you wish. Information is oriented around internal (embedded) versus
external VBS script calls into the IE window, and contains information like
the following, but may be useful when converting JScript syntax.
The HTML Tag
<embedded> window.parent.document.documentElement. ...
<external> oIe.document.parentWindow.document.documentElement. ...
Properties: OnClick, OnContextmenu, OnHelp, Style.property
The Body Tag
<embedded> window.parent.document.body. ...
<external> oIe.document.parentWindow.document.body. ...
Elements/Tags with Ids
<embedded> window.id. ...
<external> oIe.document.all.id. ...
Screen Size
<embedded> window.parent.screen. ...
<external> oIe.document.parentWindow.screen. ...
Move Window Position
<embedded> window.parent.moveTo hpos, vpos
<external> oIe.document.parentWindow.moveTo hpos, vpos
HTML Event Handling
window.event. ...
WSH Event Handling
oIe.document.all.element.onEvent= getref("procedure")
WSH Calls to Embedded HTML Functions and Variables
[return=] oIe.document.all.script.function [[(]arguments[)]]
[variable=] oIe.document.all.script.variable
oIe.document.all.script.variable= value
WSH Window Configuration
oIe. ...
Properties: AddressBar, FullScreen, Height, Left, MenuBar,
Resizable, StatusBar, Toolbar, Top, Visible, Width
WSH Document Writing
oIe.document. ...
Properties and Methods: Title, Write("..."), WriteLn("...")
WSH Window Termination
oIe.quit
oIe.visible= false
Joe Earnest
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.564 / Virus Database: 356 - Release Date: 01-19-04