Hi,
JavaScript [CODE=javascript]..
var i=0;
basechem="<UL>" ;
while (i >= 0) {
basechem = xml.getElements ByTagName("base chemical")[i];
basechem = basechem.firstC hild.data;
basehtml += "<LI><a href=# onClick=passChe micalName("+ i +")>" + basechem + "</a></LI>";
[/CODE]
Here instead of "i", i want to pass "basechem" but it wont work. why this happens, it take numeric value but cant take xml data.
when i got this xml value, then i want to pass this value into parent window (which is a child window of another window) text box.
please help.
JavaScript [CODE=javascript]..
var i=0;
basechem="<UL>" ;
while (i >= 0) {
basechem = xml.getElements ByTagName("base chemical")[i];
basechem = basechem.firstC hild.data;
basehtml += "<LI><a href=# onClick=passChe micalName("+ i +")>" + basechem + "</a></LI>";
[/CODE]
Here instead of "i", i want to pass "basechem" but it wont work. why this happens, it take numeric value but cant take xml data.
when i got this xml value, then i want to pass this value into parent window (which is a child window of another window) text box.
please help.
Comment