Hello,
I am trying to make a profile system I am currently working on the posts & comments (comments that are with in a post like facebook for example)
for some reason say if I alert something it will only work on the original posts since I got pagination the first 3 posts will automatic load then when the user scrolls to the bottom it will then load more the only probably the posts that are loaded when the user scrolls does not work with my ajax request but the first 3 do why is that?
I have also tried including another jquery file once the user has scrolled to the bottom and more posts are loaded (so that event) but all that does and duplicates and makes it alert more and more and just causes more issues there.
So the question is how can I include jquery on every single file or is there another solution to this? :/
Where i'm at now I will get rid of the pagination as it seems like it's too much to maintain at this point (as i'm only one developer making a social network like site/software) much rather pay $100,00 for a server to handle a site with no pagination then struggling with this stuff been trying for the last 3 days no sleep so going to sleep tonight obviously have too.
Here's the jquery wish there was another way to create a pagination without ajax so everything would be linked with the one jquery file.
I am trying to make a profile system I am currently working on the posts & comments (comments that are with in a post like facebook for example)
for some reason say if I alert something it will only work on the original posts since I got pagination the first 3 posts will automatic load then when the user scrolls to the bottom it will then load more the only probably the posts that are loaded when the user scrolls does not work with my ajax request but the first 3 do why is that?
I have also tried including another jquery file once the user has scrolled to the bottom and more posts are loaded (so that event) but all that does and duplicates and makes it alert more and more and just causes more issues there.
So the question is how can I include jquery on every single file or is there another solution to this? :/
Where i'm at now I will get rid of the pagination as it seems like it's too much to maintain at this point (as i'm only one developer making a social network like site/software) much rather pay $100,00 for a server to handle a site with no pagination then struggling with this stuff been trying for the last 3 days no sleep so going to sleep tonight obviously have too.
Here's the jquery wish there was another way to create a pagination without ajax so everything would be linked with the one jquery file.
$( ".comment-box" ).keydown(function(event) {
var comment_box_id = $(this).attr("id");
alert(9);
return false;
});
//If the scroll bar is at the bottom then do all of this
Hope I get some help and thanks all 🙂PHP:$(window).scroll(function(event) { if($(window).scrollTop() + $(window).height() == $(document).height()) { add_number_value-=3; $.ajax({ url: "/gaming_site/core/profile/load-more-content.php?user=1&position="+add_number_value, method: "POST", data: {pid:pid,user_get_value:user_get_value}, beforeSend: function( data ) { $('#loading_notice').html("<img src='http://www.ajaxload.info/cache/FF/FF/FF/00/00/00/6-0.gif'></img>"); }, success: function (data) { $('#loading_notice').hide(); $( "#profile_more_content" ).append( data); } }); } });







