Hi I have been working with a script I found on a tutorial.
I would like to learn how to limit the parent posts per page..
and use a collapsed link to the reply after 3.. I have attached the script, I did find a tutorial that was more or less just a source code using livejquery.. but I can not seem to manage a relationship between the two scripts.
I would think I need a function some what like I found on this other scripting
MA WarGod
I believe if someone can think it, it can be programmed
I would like to learn how to limit the parent posts per page..
and use a collapsed link to the reply after 3.. I have attached the script, I did find a tutorial that was more or less just a source code using livejquery.. but I can not seem to manage a relationship between the two scripts.
I would think I need a function some what like I found on this other scripting
Code:
<script type="text/javascript">
// <![CDATA[
$(document).ready(function(){
$('.ViewComments').livequery("click",function(e){
var parent = $(this).parent();
var getID = parent.attr('id').replace('collapsed-','');
var total_comments = $("#totals-"+getID).val();
$("#loader-"+getID).html('<img src="loader.gif" alt="" />');
$.post("view_comments.php?postId="+getID+"&totals="+total_comments, {
}, function(response){
$('#CommentPosted'+getID).prepend($(response).fadeIn('slow'));
$('#collapsed-'+getID).hide();
});
});
MA WarGod
I believe if someone can think it, it can be programmed