Jeff
2004-02-17 10:50:00 UTC
I am using HHCTRL.OCX to control a table of contents in a web application.
The setting up of the TOC object looks like this:
<OBJECT id=hh_toc type='application/x-oleobject'
classid='clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11'
class='hh_toc_css'
codebase='hhctrl.ocx'
width='100%'
height=350
<PARAM name='Command' value='Contents'>
<PARAM name='Item1' value='hh_toc.hhc'>
<PARAM name='Flags' value='0x0,0x37'>
</OBJECT>
As each page loads, I am synchronising the TOC using the syncURL method,
passing it the page reference - tocREF - like this
document.all.hh_toc.syncURL(tocREF);
This works fine on most testbeds. However, on some (but not all) IE6
installations, a JS error is generated:
"Object doesn't support this property or method"
I have confirmed that the "hh_toc" object is recognised on the bad PC's.
The IE6's that are OK were installed from a CD from a magazine. The ones
that don't work were installed by the IT department.
Does anyone know what IT have done wrong? Is there anything that can be done
in the code to correct it or at least check that the call to syncURL will
not produce the error before executing it?
Jeff
The setting up of the TOC object looks like this:
<OBJECT id=hh_toc type='application/x-oleobject'
classid='clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11'
class='hh_toc_css'
codebase='hhctrl.ocx'
width='100%'
height=350
<PARAM name='Command' value='Contents'>
<PARAM name='Item1' value='hh_toc.hhc'>
<PARAM name='Flags' value='0x0,0x37'>
</OBJECT>
As each page loads, I am synchronising the TOC using the syncURL method,
passing it the page reference - tocREF - like this
document.all.hh_toc.syncURL(tocREF);
This works fine on most testbeds. However, on some (but not all) IE6
installations, a JS error is generated:
"Object doesn't support this property or method"
I have confirmed that the "hh_toc" object is recognised on the bad PC's.
The IE6's that are OK were installed from a CD from a magazine. The ones
that don't work were installed by the IT department.
Does anyone know what IT have done wrong? Is there anything that can be done
in the code to correct it or at least check that the call to syncURL will
not produce the error before executing it?
Jeff