internet explorer no acepta tipo de objetos de javascript que terminen con un coma “,”…
Ajax, Internet, Programación 29 de May del 2009
al crear un tipo de objeto javascript como por ejemplo:
1 2 3 4 5 6 7 8 9 10 11 12 | var ajaxLogin = { content: {"login":dojo.byId("login").value}, url: "UR_SEND", handleAs: "text", load: function(response){ responseNode.innerHTML = response; }, error: function(response){ responseNode.innerHTML = "error"; }, timeout: 10000, }; |
Donde el el ultimo atributo “timeout” termina con una “,”… en firefox funciona muy bien pero en Internet Explorer se tiene que quitar como por ejemplo:
1 2 3 4 5 6 7 8 9 10 11 12 | var ajaxLogin = { content: {"login":dojo.byId("login").value}, url: "UR_SEND", handleAs: "text", load: function(response){ responseNode.innerHTML = response; }, error: function(response){ responseNode.innerHTML = "error"; }, timeout: 10000 }; |
listo… ya no marca un error el “navegador”…


(2 votes, average: 3.50 out of 5)
Sobre mí






