I have a very simple line of code in javascript. But in Chrome it throws an error "System.FormatException: Input string was not in a correct format."
Does anyone know why?
var
dialogWindow = $find('<%=WebDialogWindow2.ClientID%>');
Hello Scott,
I don't think that this line cause the error. Can you share your markup code with us.
Thank you
Hristo,
The function is below. I basically modeled this function after one in the samples. It's just trying to open a webdialog control, version 10.3.20103.2120. We are then trying to change the content on the dialog to display a jpg. But the code fails on the $find statement. This works fine in IE, but not in Chrome. However, we do have other dialog windows that are functioning fine in Chrome.
function
PicSelect(gridName, cellId, button) {
// Get the cell
var cell = igtbl_getCellById(cellId);
if (cell.Column.Key == "Photo") {
// Get the row
var selRow = null;
selRow = cell.getRow();
var TargetURL = selRow.getCell(10).getValue();
dialogWindow = $find(
'<%=WebDialogWindow2.ClientID%>');
var contentPane = dialogWindow.get_contentPane();
contentPane._DIV.children(0).src = TargetURL;
dialogWindow.show();
}