Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE 4.0 error using the raiseEvent property

Status
Not open for further replies.

dkwong

MIS
Dec 27, 2001
76
CA
I'm using the following code to communicate between a scriptlet and its parent ASP page:

--in the scriptlet:

Sub FireEvent (sEventName)
window.external.raiseEvent sEventName
End Sub

called using the following command: FireEvent &quot;<name>&quot;


--in the parent page:

Sub sclScriptletName_OnScriptletEvent(txtEvent, eventData)
if txtEvent = &quot;<name>&quot; then
...
end if
End Sub


Does anyone have any idea why there would be the following error in IE 4?

Error: wrong number of argumnets or invalid property assignment: 'window.external.raiseEvent'

This works in IE 5 & 6, but not in 4. It seems that the &quot;eventData&quot; parameter in the onscriptletevent is needed or it won't work in 5 & 6. This needs to work in all three versions of IE.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top