I need help with a javascript / ajax / php problem
Basically Ajax loads a page into the dom into a container onload of the body, however I've attempted to implement a scroll down to load more posts feature where I have the same function in the page that is loaded a.k.a posts.php so that my jquery .get doesnt fail.
PROBLEM:
this only successfully runs once because no matter how hard I try, The get will not add my chosen number (in this case 20) to the previous get in order to load the
next 20 after it runs the first time.
I was thinking of just writing an if else to the function so that it would add 20 to the current number of posts in the get client side, however it would be much nicer AND more secure if I could somehow do this server side.
Because of the nature of ajax (but I'm probably missing something) The get isn't working correctly and instead of loading the next 20 posts every time, It manages to add 20 to the variable but cannot add 20 again to the previous GET variable.
heelppp D;