From: HAL07 on
I have the following in a HTA script. We use Office Communicator which gives us this object.

<script language="JavaScript"> var nameCtrl = new ActiveXObject("Name.NameCtrl");</script>
<span onmouseover="call nameCtrl.ShowOOUI('sip:user.name(a)mydomain.com',0,parent.offsetLeft,parent.offsetTop)">Hoover here</span>

However I cannot get the hoover like I can in Internet Explorer (using the same code).
It gives an error:
Object doesn't support this property or method: 'parent.offsetLeft'


--
-- HAL07, Engineering Services, Norway
From: Bruce Axtens on
HAL07 wrote:
> It gives an error:
> Object doesn't support this property or method: 'parent.offsetLeft'
>
>

My guess is that you would need to refer to the DOM explicitly rather
than the implicit way you are doing it there.

Bruce.
From: HAL07 on
Bruce Axtens wrote:
> HAL07 wrote:
>> It gives an error:
>> Object doesn't support this property or method: 'parent.offsetLeft'
>>
>>
>
> My guess is that you would need to refer to the DOM explicitly rather
> than the implicit way you are doing it there.
>
> Bruce.

ok i dont know what you mean. can you give me an example

--
-- HAL07, Engineering Services, Norway
From: Bruce M. Axtens on
HAL07 wrote:
> ok i dont know what you mean. can you give me an example

Sub bCopy_Click()
if sGlobalResult = "" Then
MsgBox "Can't copy nothing.",,"Broggle"
Else
document.parentwindow.clipboardData.SetData "text", sGlobalResult
End If
End Sub

Sub bScreen_Click
v3.Value = document.body.clientHeight
v4.Value = document.body.clientWidth
End Sub

Sub bNew_Click
rmlFile = "untitled.rml"
tMaster.Value = ""
rmlLoaded = False
bGlobalResult = ""
document.title = rmlFile
End Sub


In these function in one of my own HTAs notice that I start from
"document." and work down.

HTH

Kind regards,
Bruce.