I have an iframe in a form. The iframe contains some info that I want deliver to the form parent by instance of Array. The problem: the Array instance loses it's type and becomes an object! The iframe function:
function getIDS2() { return new Array(); }
The parent call code:
alert(top.frames["sup_search"].getIDS2() instanceof Array);
Of course the answer for the alert is false... So, I can fix it by doing this:
var arr = [];
for(var i =0; i < SuppliersIDs.length; i+=1) {
arr.push(SuppliersIDs[i]);
}
Where SuppliersIDs is the delivered array and arr is the new true type array. But why is this not working as I want it to? By the way, is there any there a way to access the iframe func with jQuery??
Thanks for help.