[jQuery] Re: traversing ajax response with .find in Safari/Chrome
I have the same problem with .find, except running against an HTML string (not AJAX related). ie something like: jQuery(somehtml).find('link').each(... IE,FF,Opera all find the elements ok - chrome & safari just don't find them. jQuery JavaScript Library v1.3.2 J On Feb 7, 4:48 pm, pedalpete wrote: > like my original statement that works in IE and FF, but not Safari or > Chrome. > Strange > > On Feb 6, 11:17 pm, jQuery Lover wrote: > > > > > var newItem=$("div#item", response).html(); > > > > > Read jQuery HowTo Resource - http://jquery-howto.blogspot.com > > > On Sat, Feb 7, 2009 at 9:02 AM, pedalpete wrote: > > > > I'm trying to get a div from an html ajax response. > > > my code is pretty simple > > > > [code] > > > success: function(response){ > > > > var > > > newItem=$(response).find("div#item").html(); > > > > alert(newItem); > > > } > > > [/code] > > > > This works fine in FF and IE, but Chrome and Safari both return null. > > > > I'm trying to find another way to write that, but It all seems pretty > > > straight forward to me. > > > Is there another way to get this other than .find?
[jQuery] Re: traversing ajax response with .find in Safari/Chrome
Which version of jQuery are you using ? Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sat, Feb 7, 2009 at 9:48 PM, pedalpete wrote: > > like my original statement that works in IE and FF, but not Safari or > Chrome. > Strange > > On Feb 6, 11:17 pm, jQuery Lover wrote: >> var newItem=$("div#item", response).html(); >> >> >> Read jQuery HowTo Resource - http://jquery-howto.blogspot.com >> >> On Sat, Feb 7, 2009 at 9:02 AM, pedalpete wrote: >> >> > I'm trying to get a div from an html ajax response. >> > my code is pretty simple >> >> > [code] >> >success: function(response){ >> >> >var >> > newItem=$(response).find("div#item").html(); >> >> >alert(newItem); >> > } >> > [/code] >> >> > This works fine in FF and IE, but Chrome and Safari both return null. >> >> > I'm trying to find another way to write that, but It all seems pretty >> > straight forward to me. >> > Is there another way to get this other than .find?
[jQuery] Re: traversing ajax response with .find in Safari/Chrome
like my original statement that works in IE and FF, but not Safari or Chrome. Strange On Feb 6, 11:17 pm, jQuery Lover wrote: > var newItem=$("div#item", response).html(); > > > Read jQuery HowTo Resource - http://jquery-howto.blogspot.com > > On Sat, Feb 7, 2009 at 9:02 AM, pedalpete wrote: > > > I'm trying to get a div from an html ajax response. > > my code is pretty simple > > > [code] > > success: function(response){ > > > var > > newItem=$(response).find("div#item").html(); > > > alert(newItem); > > } > > [/code] > > > This works fine in FF and IE, but Chrome and Safari both return null. > > > I'm trying to find another way to write that, but It all seems pretty > > straight forward to me. > > Is there another way to get this other than .find?
[jQuery] Re: traversing ajax response with .find in Safari/Chrome
var newItem=$("div#item", response).html(); Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Sat, Feb 7, 2009 at 9:02 AM, pedalpete wrote: > > I'm trying to get a div from an html ajax response. > my code is pretty simple > > [code] >success: function(response){ > >var > newItem=$(response).find("div#item").html(); > >alert(newItem); > } > [/code] > > This works fine in FF and IE, but Chrome and Safari both return null. > > I'm trying to find another way to write that, but It all seems pretty > straight forward to me. > Is there another way to get this other than .find?