Erro no firefox com select e option
Exception... "Not enough arguments" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame :: [http://localhost:3112/AJAXEnabledWebSite3/...fCallMethods.js :: AddItemInListAndLink :: line 295" data: no] result=2153185281
pois eh.. no IE o código funfa certinho... mas no FF ele da essa exception muito loka ai... AUSHauishASU...
se alguem sabe oq é me ajuda ai.. =)
o código ta ai...
function AddItemInListAndLink(type, obj){ var option; var list; switch(type) { case "point": list = document.getElementById("SPoints"); option = document.createElement("option"); option.value = obj.id; option.text = obj.title + ", " + obj.description; break; case "cerca": list = document.getElementById("SCercas"); option = document.createElement("option"); option.value = obj.id; option.text = "Cerca Eletrônica"; break; case "area": list = document.getElementById("SAreas"); option = document.createElement("option"); option.value = obj.id; option.text = "Área de Risco"; break; } list.add(option);}o erro ocorre na hora do list.add(option); (ultima linha do code...)
fico no aguardo de ajuda!! ^^
vlw aew... flw..
Discussão (3)
Carregando comentários...