Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
539 views
in Q2A Core by
edited by
I want it to load related questions only when the user reach to bottom of page
by
Your question is not clear to me. Do you want to change CSS classes after the page is already loaded (and the user performed some action)? If so, you need to do that on the client side with JavaScript by updating the respective DOM node with the desired classes.
by
Yes I want to make it like infinite scroll using JavaScript. But how
by
Sorry, can't help you there. I have only very limited JS knowledge.
by
Is it possible using php and simple JavaScript combination?
by
No. PHP is running on the server side and constructs the page before it's delivered to your browser. You want to manipulate it after it has been delivered to the browser. That's only possible with client-side scripting, which basically means JavaScript.
by
You may try rewrite the related plugin as an ajax page. And use Javascript to detect the condition that the users reach the end of a question page (maybe it detects the device height or something), and then trigger the ajax page.
by
Ok thanks.
I will try

Please log in or register to answer this question.

...