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 "<name>"
--in the parent page:
Sub sclScriptletName_OnScriptletEvent(txtEvent, eventData)
if txtEvent = "<name>" 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 "eventData" parameter in the onscriptletevent is needed or it won't work in 5 & 6. This needs to work in all three versions of IE.
--in the scriptlet:
Sub FireEvent (sEventName)
window.external.raiseEvent sEventName
End Sub
called using the following command: FireEvent "<name>"
--in the parent page:
Sub sclScriptletName_OnScriptletEvent(txtEvent, eventData)
if txtEvent = "<name>" 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 "eventData" parameter in the onscriptletevent is needed or it won't work in 5 & 6. This needs to work in all three versions of IE.