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

2009-12-14 Thread Michael Geary
Good point, thanks for noticing that, Brian. This is a good example of why it's always helpful to post a link to a live test page instead of just a code snippet. Then we know what the actual code looks like and can see it run in the browser. -Mike On Mon, Dec 14, 2009 at 4:20 PM, brian wrote:

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

2009-12-14 Thread Michael Geary
Wendi, just a tip to help you get the assistance you're looking for: Since your question doesn't seem to relate to the topic of this particular thread, people may not notice it. Could you re-post your question as a new post with its own title that summarizes the question? That will help people fin

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

2009-12-14 Thread Wendi Turner
*How can you remove/delete the active $(document).ready() script, re-write and re-register then re-trigger the ready script?? Without reloading the page?*

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

2009-12-14 Thread brian
$('#somediv').append(html); You're appending to the div with ID 'someDiv'. But you say that this is the content: Name: Note the class="somediv". I'm wondering if that's a typo and it's actually id="somediv", in which case y

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

2009-12-14 Thread joseph7
Hi, So, I'm attempting to add HTML to a document via Ajax, but when I get back the content, I'm finding that no matter what I try, I can't get it added to the DOM correctly. Basically I'm doing this: $.post('ajax.php', function (data) { var html = data.content; $('#somedi