K
klimontovich
Hello!
I'm trying to handle events raising by Microsoft ActiveX Spreadsheet
control.
I use following code to include this control into page:
<object classid="clsid:0002E551-0000-0000-C000-000000000046"
id="Spreadsheet1"">
</object>
Than i'm trying to handle onclick event by following code:
Spreadsheet1.onclick = function() {
alert(1);
}
This code has no effect -- no alert message, but no error message. But
the following code:
Spreadsheet1.click = function() {
alert(1);
}
raises error "object doesn't support this action". This means, that
onclick event is khown by javascript. But by using VBScript I can hanle
onclick event,
this code works right:
Sub Spreadsheet1_click()
alert Spreadsheet1.cells(5,4).value
End Sub
Does anybode have experience in catching activeX events by JS?
I'm trying to handle events raising by Microsoft ActiveX Spreadsheet
control.
I use following code to include this control into page:
<object classid="clsid:0002E551-0000-0000-C000-000000000046"
id="Spreadsheet1"">
</object>
Than i'm trying to handle onclick event by following code:
Spreadsheet1.onclick = function() {
alert(1);
}
This code has no effect -- no alert message, but no error message. But
the following code:
Spreadsheet1.click = function() {
alert(1);
}
raises error "object doesn't support this action". This means, that
onclick event is khown by javascript. But by using VBScript I can hanle
onclick event,
this code works right:
Sub Spreadsheet1_click()
alert Spreadsheet1.cells(5,4).value
End Sub
Does anybode have experience in catching activeX events by JS?