i have these two functions:
1.the first one
someFunction = function(objectname){
var vidobject = objectname;
setInterval( function() { interfunc(vidobject); }, 500 );
};
which gets an object from a button click.
2.And the second one which i want to use with the inverval:
interfunc(obje){
alert(obje)
});
but when the alert comes up it writes "undefined" and if il use for example vidobject.id it wont event alert and if i alert the object in the first function it alerts succefully any solutions? :)