scenario is -
bnm () function is to be called for first time and resultObject constructed .
Later on , item function is to be called dynamically .
This function get called successfully in IE 7 .
but not in IE 8 , 9 , 10 .
Please suggest any solution .
///////////////////////////////////////////////////
function bnm(xmlData)
{
this.item = function (recordno, itemname)
{
// some code
return result;
}
return this;
}
// Here i am calling above function
resultObject = bnm(anyData);
text1.value = resultObject.item(8, 'Policy1');
text2.value = resultObject.item(6, 'Policy4');
text3.value = resultObject.item(2, 'Policy8');
id
s for elements and usedocument.getElementById()
to get a reference.// some code
... Definitely inline functions, constructors and anonymous functions are working in all IEs. Btw. what exactly means "not working", do you get wrong results, not results at all, or an error?