[jQuery] Re: Can't get a block of HTML added to the DOM

2009-12-14 Thread T.J. Simmons
That's the part that had me a little confused, that it's showing up at all; as far as I can tell, the way .append() is used is correct. A page, like Mike said, that shows what you're using and the context in which you're using it would definitely go a long way towards figuring this out. - T.J. On

Re: [jQuery] Re: Can't get a block of HTML added to the DOM

2009-12-14 Thread Michael Geary
Oh, wait a minute. You said the content *does* show up in the div. I think you need to post a link to a test page, so we can see what is actually happening. That would make it a lot easier to help troubleshoot. -Mike On Mon, Dec 14, 2009 at 2:15 PM, Michael Geary wrote: > T.J., I think you're

Re: [jQuery] Re: Can't get a block of HTML added to the DOM

2009-12-14 Thread Michael Geary
T.J., I think you're right on the money. Joseph, no need to wonder whether you've run into an issue with the .append() method. Instead, verify whether you actually have the right data on hand or not. Where you had this code: $('#somediv').append(html); Change it to: alert( html ); and see wha

[jQuery] Re: Can't get a block of HTML added to the DOM

2009-12-14 Thread T.J. Simmons
Have you tried it without the data.content? IE: var html = data; that should get you all of the HTML you're pulling in via AJAX. I haven't ever seen the .content method before, and a quick Google search came up with nothing for it.. maybe that's the problem? I'm sure someone who knows more will c