sipo,

Are you running this through a webserver or straight off the file
system??  You won't get expected results with the ajax methods running
outside a webserver environment.

Your code works fine for me.  Try it for yourself:

http://malsup.com/jquery/test/d.html

Mike


On 8/7/07, sipo <[EMAIL PROTECTED]> wrote:
>
> d.xml
> ---------
> <?xml version="1.0" encoding="UTF-8"?>
> <entries>
>         <entry term="DANCE" part="v.i.">
>                 <definition>
>                         123
>                 </definition>
>         </entry>
> </entries>
> --------
> d.html
> ---------
> <script language="javascript">
>
>                 $(document).ready(function() {
>                                 $.get('d.xml',function(data) {
>                                 alert(data);//ok
>                                         $(data).find('entry').each(function() 
> {
>                                                 alert('find');
>                                         });
>                                 });
>                         });
>
>         </script>
> --------
> IT CAN'T EXECUTE alert('find');
> ONLY CAN EXECUTE alert(data);//ok
>
> I DON'T KNOW WHY
>
>

Reply via email to