Hi I am desparate now to find a solution to this problem. I'm trying to call a function on the onclick even inside another function. The event works fine if the parameters are static. I want to get a the value from the global function. The example is as follows:
var dataxml = unescape(xml);
var xmldoc = getDomAdapter().parseXml(dataxml);
var rootnode = xmldoc.getElementsByTagName('result_set')[0];
var newsresult = rootnode.getElementsByTagName('item');
var pages = Math.round(newsresult.length / 10);
for (var p=1; p <= pages;p++){
pagesref = pagesref+"<a href='#' onclick='newsdatainfo(xmldoc,newsresult,6,10);' >"+p+"</a> | ";
}
How do I get the xmldoc and newsresult to be identified? Because I get an undentified error message.
I will be greatfull if you help me.
Thanks Mamcy