DoRowApp
function works in Chrome, but is not defined in FF, IE, and Opera.
function DoRowApp(id) {
document.getElementById('ANSWER.TTQ.MENSYS.1.').value = id;
document.getElementById('ANSWER.TTQ.MENSYS.2.').click();
return true;}
This is the html code:
<a target="_blank" href="javascript:DoRowApp("_40558067");" title="Application Form"><img border="0"></a>
This html snippet is generated from an xml source:
<cell>Application Form^javascript:DoRowApp("'||edit.mhd_code||'");^_blank</cell></row>
Any assistance on this issue would be greatly appreciated.
The following function works without any issues:
function DoRow(id) {
'use strict';
var LowerBound, UpperBound, StartAppNo, BaseAppNo, i;
LowerBound = mygrid.getRowIndex(id) - 25;
UpperBound = mygrid.getRowIndex(id) + 100;
StartAppNo = 25;
BaseAppNo = 0;
mygrid.selectRowById(id, true, true, false);
localStorage.clear();
if (mygrid.getRowIndex(id) - 25 > 0) {
StartAppNo = 25;
}
else {
StartAppNo = mygrid.getRowIndex(id);
}
localStorage.setItem("9999", StartAppNo);
if (LowerBound < 0) {LowerBound = 0; }
for (i = LowerBound; i <= UpperBound; i++) {
if (mygrid.getRowId(i)) {
localStorage.setItem(BaseAppNo, mygrid.getRowId(i));
BaseAppNo++;
}
}
document.getElementById('ANSWER.TTQ.MENSYS.1.').value = id;
document.getElementById('ANSWER.TTQ.MENSYS.2.').click();
return true;}
The corresponding HTML for this function is:
<a target="_blank" href="javascript:DoRow("_40558067");" title="Application Form"><img border="0"></a>