something wrong with this jquery?

Inseque

New Member
i have these two jquery scripts on my html page, one of them loads more results(like pagination), and the other one replies to users messages, just like twitter!the replies works\[code\](inserts username into textbox)\[/code\], when the page is on default, but when i load more results, the loaded results wnt insert the username into the textbox!! these are the two scripts,the replies jquery:\[code\]function insertParamIntoField(anchor, param, field) { var query = anchor.search.substring(1, anchor.search.length).split('&'); for(var i = 0, kv; i < query.length; i++) { kv = query.split('=', 2); if (kv[0] == param) { field.val(kv[1]); return; } } }$(function () { $("a.reply").click(function (e) { insertParamIntoField(this,"status_id",$("#status_id")); insertParamIntoField(this,"reply_name",$("#reply_name")); insertParamIntoField(this, "replyto", $("#inputField")); $("#inputField").focus()$("#inputField").val($("#inputField").val() + ' '); e.preventDefault(); return false; // prevent default action });});\[/code\]the loadmore jquery script:\[code\]$(function() {//More Button$('.more').live("click",function() {var ID = $(this).attr("id");if(ID){$("#more"+ID).html('<img src="http://stackoverflow.com/questions/3758471/moreajax.gif" />'); $.ajax({ type: "POST", url: "ajax_more.php", data: "lastmsg="+ ID, cache: false, success: function(html){ $("ul.statuses").append(html); $("#more" + ID).remove(); } }); }else{ $(".morebox").html('The End');}return false;});});\[/code\]EDIT: when i load more posts, and i click reply the page is refershed, so that ends up with loaded data being hidden again!!
 
Back
Top