Meu ajax não funciona no internet explorer . :(

Boa tarde,
Alguém sabe pq “um ajax” funciona no firefox e ni IE não?"
seria erro na funcao javascript?

Os navegadores tratam JavaScript de formas um pouco diferentes, há algumas coisas que funcionam em um e não funcionam no outro, você tem que ver onde está dando o erro e ver uma alternativa para o codigo que o IE não entende…

Bom dia, Fábio.

Post seu JavaScript, para sabermos o que pode estar errado.

No meu evento onclick é chamada essa funcao:

function getPessoas(orgaos){
	JTipoRequerimento.getPessoas(orgaos.value, popula);	

}

A funcao separa eh somente pra quebrar o texto retornado em dois

function separa(val, id){
	var str = new String(String(val));
	var strReturn = "";
	if(id){
		for(i = 0 ; i < str.length; i++){
			if(str.charAt(i) == ':'){
				break;
			}	
			strReturn += str.charAt(i);	
		}
	}else{
	
		var ok = false;
		for(j = 0; j < str.length; j++){
			if(ok)
				strReturn += str.charAt(j);
			if(str.charAt(j) == ':')
				ok = true;				
		}
		
	}
	return strReturn;	
}

A funcao popula é que monta a tabela. Se alguém encontrar o erro. :slight_smile:

function popula(reg){
	  DWRUtil.removeAllRows("respOrgaos");
	  var cellFuncs = [
	  function(data) { return "<input type='checkbox' value='"+ separa(data,true);+"' name='tramite.responsaveisOrgao' />;"; },
	  function (data) {return separa(data, false);}];
	  var boolId = true;
      DWRUtil.addRows( "respOrgaos", reg, cellFuncs, {
		  rowCreator:function(options) {
	      var row = document.createElement("tr");
		  return row;},
		  cellCreator:function(options) {
		  var td = document.createElement("td");
		  td.style.border= "solid 1px #dddddd";
		  if(boolId){td.style.width="8%"; boolId = !boolId;}
		  return td;}});
}

Abraços.

Onde está o código que faz a requisição dos dados?

<select name="tramite.orgao" class="caixas" onchange="getPessoas(this)">
</select>
<table id="respOrgaos" class="tabela1" width="100%">
						</table>

Vlws. =]