Hi,
I was wondering whether someone could enlighten me as to the reason why the
slice does not work in IE when the arr is passed in properly.
Checked the values in the srcArr and they are correct so no problems there.
Gecko works as expected.
Prior to entering the function I can slice the array being entered so I
wouldn't expect an "Unexpected call to method or property access" (in IE 6).
I guess its something silly but as of yet i'm not seeing it.
Any suggestions would be appreciated.
TIA
Fermin DCG
===================================
function insertIntoArray(srcArr, insLoc, repl, insObj) {
alert(srcArr.slice(0,2));
var top = (repl) ? srcArr.slice(0, insLoc) : srcArr.slice(0, insLoc1);
var end = (repl) ? srcArr.slice(insLoc+1) srcArr.slice(insLoc+1);
return top.concat(insObj, end);
}