I have the below function which is called from another function. I keep getting the message that 'xOffset is undefined', yet its clearly being passed in when I alert it out.
The call is from another function and looks like this:
I seem to be missing a clue this morning, so if someone could supply me with one, I'd appreciate it.
Bastien
I wish my computer would do what I want it to do,
instead of what I tell it to do...
The call is from another function and looks like this:
Code:
RemoveTab('tractor','0');
Code:
function RemoveTab(sDiv, x0ffset)
{
var thisTabDiv = 'tabtab'+ sDiv + xOffset;
var thisDataDiv = 'data' + sDiv + xOffset;
var thisShowTab = 'tabtab'+ sDiv + parseInt(xOffset + 1);
var thisShowData = 'data' + sDiv + parseInt(xOffset+1);
alert(thisTabDiv +'\n'+ thisDataDiv+'\n'+thisShowTab +'\n'+ thisShowData);
document.getElementById(thisTabDiv).innerHTML = '';
document.getElementById(thisDataDiv).innerHTML = '';
document.getElementById(thisShowTab).style.display = 'inline';
document.getElementById(thisShowData).className = "SelectedTab";
showMessage = "<span style='color:red;'><strong>Record Deleted</strong></span>";
}
I seem to be missing a clue this morning, so if someone could supply me with one, I'd appreciate it.
Bastien
I wish my computer would do what I want it to do,
instead of what I tell it to do...