Guys,

Does someone know why my function doesn't work ? How does work the scope on
JQuery with ajax?
The commented alert is working fine.

   function LerXML(ordem) {
       var diretorio;
       $.get("../modulos.xml", function(xmldataset){
           diretorio    = $("diretorio:eq(" + ordem + ")" , xmldataset);
           //alert(diretorio.text());
       });
       return diretorio.text();
   }
   alert(LerXML(0));

--
[]'s

Harlley R. Oliveira
www.syssolution.com.br
-------------------------------------------
~ U never try U'll never learn ~
-------------------------------------------
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to