Javascript error in IE; Object doesn't support this property or me

I'm getting the above error in IE, firefox a.o. does work,

Page 1 of 1

1 Replies - 997 Views - Last Post: 02 April 2010 - 06:52 AM

#1 yougina  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 27-July 09

Javascript error in IE; Object doesn't support this property or me

Posted 01 April 2010 - 09:11 AM

I'm trying to get values out of an select box using javascript.
This is the function where the error occurs.
function getCategories(table, ids, catid, nnr, prgr) {
	document.getElementById((table == "catTB") ? "cat" : (table == "scatTB") ? "scat" : "prgroup" ).innerHTML = "";
	$.get("/CMS/Catalogus/parseXML.asp?soort="+table+"&id="+ids, function(theXML) {
		$('category',theXML).each(function(i){
			id = $(this).find("id").text();
			if(i == 0) {
				nummer = (catid) ? catid : id;
				if(table == "catTB") {
					 getCategories("scatTB", nummer, (!nnr) ? 33 : nnr, prgr);
				} else if(table == "scatTB") {
					getCategories("prgroupTB", nummer, (!nnr) ? 2 : nnr);
				} else if(table == "prgroupTB") {
					getPageHeaders(document.vast.ProductID.value, document.algemeen.SubcategorieID[document.algemeen.SubcategorieID.selectedIndex].value, nummer);
					getImages(document.vast.ProductID.value);
					getOptions(document.vast.ProductID.value);
					getVersions(document.vast.ProductID.value);
				}
			}
			name = $(this).find("name").text();
			nameGE = $(this).find("nameGE").text();
			document.getElementById((table == "catTB") ? "cat" : (table == "scatTB") ? "scat" : "prgroup" ).innerHTML += "<option value="+id+" style=\"width: 8.5cm;\" "+ ((id == catid) ? "selected" : "") + ">"+name+"</option>";
		});
	});
	return nummer;
}



The error is in line 13. This would probably happen a lot, but I am not really good in using javascript with IE. I hope someone can help me out.

Greetings,
C.S.

Is This A Good Question/Topic? 0
  • +

Replies To: Javascript error in IE; Object doesn't support this property or me

#2 yougina  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 22
  • Joined: 27-July 09

Re: Javascript error in IE; Object doesn't support this property or me

Posted 02 April 2010 - 06:52 AM

Never mind, got it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1