[jQuery] Re: how to parse data obtained from jquery ajax call

2009-04-04 Thread Karl Swedberg
"div/p" is supposed to get paragraphs that are children of divs. It's XPath syntax, which jQuery no longer supports. Try var dom = $('div > p', data); or var dom = $(data).find('div > p'); instead. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com

[jQuery] Re: how to parse data obtained from jquery ajax call

2009-04-04 Thread MorningZ
"dom is always null " What the heck is the selector "div/p" supposed to get? On Apr 4, 5:40 am, Albert wrote: > $(document).ready(function() { > >         $.ajax({url: '/page/test.html', >             type: 'GET', >             dataType: 'html', >             timeout: 5000, >             erro