Question : 'name' is null or not an object

Hello I continuously keep getting this error in IE, while everything works in FF. I am trying to rename elements while I swap rows. All my elements have IDs. All elements except for divs, do not have names, so I get all elements by tag name from a row and perform my processing. But here in IE it gives me a problem when I try to replace name, for elements where name is null, I have a condition to prevent making any change, but this error pops up at the condition. Is there any way around for this problem??
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
var row= document.getElementById(row.id);
var elems = row.getElementsByTagName('*');
var r = explodeArray(row.id, "_");
var vtLineNum = Number(r[1]);
var vtName = r[0];
	for(var i in elems)
	{
		if(elems!=null &&  elems[i]!=null && elems[i].id!=null && elems[i].id!='')
		{		
				document.write(elems[i].name+"<br>");
				elems[i].id = replaceNum(elems[i].id, vtLineNum);
				if(elems[i].name !=null && elems[i].name !='')
					{elems[i].name = replaceNum(elems[i].name, vtLineNum);}

				if(elems[i].id.match("div"+vtName+'_'))
					{					
					var children = document.getElementById(elems[i].id).childNodes;
						for(var i in children)		
						{	
							if(children[i].href != null)			
							{
							children[i].href = replaceNum(children[i].href, vtLineNum);
							}
						}			
					}				
		}
	}

Answer : 'name' is null or not an object

sorry I didn't notice this before...
one or more of the columns you are appending is not a string type

try wrapping them in to_char

'<td>'|| to_char(v.po_line_no) ||'</td>'||
Random Solutions  
 
programming4us programming4us