[jQuery] after ajax dom not resetting

[jQuery] after ajax dom not resetting


greetings,
i have a $.ajax call with this as the success function:
$("users/user", xml).each(
function(){
userId = $("id",this).text();
$("span."+letter).append("<h4 id=\"user_"+userId+"\"
class=\""+$("firstletter",this).text()+"\">"+$("username",this).text()+"</h4>");
$("span."+letter).append("<div id=\"userDetails_"+userId+"\"
class=\"userDetails\"></div>");

$("div#userDetails_"+userId).append("

$("email",this).text()+"

");
$("div#userDetails_"+userId).append("<p class=\"created\">Created
on: "+$("created",this).text()+"");
$("div#userDetails_"+userId).append("<p
class=\"modified\">Modified on: "+$("modified",this).text()+"");
}
);
afterwards the page has this:
<span class="t" style=" display: block; opacity: 0.9999;">
<h4 id="user_4" class="t">tester</h4>
<div id="userDetails_4" class="userDetails" style="display: none;">
<p > test@example.com>
<p class="created ">Created on: Sat, Feb 3rd 2007, 14:12
<p class="modified ">Modified on: Sat, Feb 3rd 2007, 14:12
</div>
works nice except i also have this on my page:
$("h4").click(function(){alert("boo");});
but when i click any of the ajax genertated h4's nothing happens.
any help would be much appreciated!
--
Joe Vasquez
joe.vasquez@gmail.com
--
View this message in context: http://www.nabble.com/after-ajax-dom-not-resetting-tf3178220.html#a8819248
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/