Hi Sipo,

I replied on the dev list, but I will post that reply here as well, in case anyone else runs into this problem:

So sorry about that! The version of jQuery that was bundled with the code download from Packt's site [for the Learning Query book] has a bug that has been fixed in later releases. We're working with Packt to update that code download. In the meantime, please grab the latest build from the jquery.com home page. Again, I'm really sorry about the inconvenience this has caused you.


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Aug 7, 2007, at 1:11 AM, sipo 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