your example code works fine in i.e but does not work in non i.e like Safari 5.0, Firefox
The probelm is in the following function, document.getElementById(buttonID) not being supported by Safari or Firefox browser
because document.getElementById(buttonID) does not return object.
What would be the work around for it in Safari?
The probelm is in the following function, document.getElementById(buttonID) not being supported by Safari or Firefox browser
because document.getElementById(buttonID) does not return object.
What would be the work around for it in Safari?
function
SpellCheckClosed(sender, args) {
if
(IsChecked) {
//trigger submit from the update/insert button in the grid
//the id of the update or insert button is extracted from a hidden field
var buttonID = document.getElementById('<%=HiddenField1.ClientID %>'
).value;
document.getElementById(buttonID).click(); /// not being supported by non i.e like Safari and firefox
IsChecked =
false ;
}
}
Thanks