Today I found this code snippet:
<object ID="FF" CLASSID="clsid:guid" CODEBASE="url" VIEWASTEXT></object>
<object ID="FileSaver" CLASSID="clsid:guid" CODEBASE="url" VIEWASTEXT></object>
…
<script language="javascript">
function FileSaver::OnFinished(Status){…}
function FF::OnFinished(Status){…}
</script>
I can't find anything relevant to explain this syntax. Is it really javascript? Is it correct? If not, how the code should look like?
This is a single page without external script links.
Note that function declarations are directly inside <script>
block.
Thanks for everyone who looked into this.
Anyway, just as one could expect, not after five minutes after submitting the question, I found How to handle an ActiveX event in Javascript question about ActiveX callback handlers in IE, so it answers the main part of the question. As well, as the question that @outis has linked.
But I can't find any documentation on MSDN and that's troubling.
Conclusion: this is IE-specific ECMAScript extension for event handler declaration.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With