eiranix Posted April 7, 2014 Share Posted April 7, 2014 I have not done anything with php, ajax or databases before and I want to find a simple way to implement a dynamically loading page or pagination to the (small) news page on my site. Has anyone got any tutorials for the simplest method to achieve this? Is there a way to do it without php? Link to comment Share on other sites More sharing options...
justsomeguy Posted April 7, 2014 Share Posted April 7, 2014 You can't interact with a database on the server without a server-side language like PHP, assuming that the things you want to spread across pages are in a database. Are your news items in a database? Link to comment Share on other sites More sharing options...
eiranix Posted April 7, 2014 Author Share Posted April 7, 2014 No, all I have at the moment is a simple static page with a list of news items that is going to keep getting longer with updates. I was wondering if there is a method for loading parts of the page at a time with javascript or else a tutorial that explains the whole process of what I would need to do with php etc. Link to comment Share on other sites More sharing options...
justsomeguy Posted April 7, 2014 Share Posted April 7, 2014 If the elements on your page follow a pattern for each news item then you should be able to use Javascript to hide everything except a certain set of them. It looks like someone linked to a jQuery plugin for that here:http://stackoverflow.com/questions/6060775/pagination-with-javascript Link to comment Share on other sites More sharing options...
davej Posted April 7, 2014 Share Posted April 7, 2014 You could provide loading of user-requested topic files using an iframe. http://www.w3schools.com/tags/tag_iframe.asp Link to comment Share on other sites More sharing options...
eiranix Posted April 7, 2014 Author Share Posted April 7, 2014 Thank you, the plugin looks promising. I will look into it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now