Hello,
i am requesting with this thread, a read more -button. When you click on it, the rest text from the `preview`(posts.inc.php in the Blog Tutorial) entry shows on the same page.
I tried it already myself, but kinda failed. I managed to display the rest text of `preview` but without a button. And i wonder if that is even posible with php or do i need java for that?
So, yeah it would be cool if you could do a quick tut on that, please!
Read more -button, text on the same page.
Re: Read more -button, text on the same page.
Would be fairly easy with javascript, impossible with php really.
Re: Read more -button, text on the same page.
would have to reload the page if you used PHP so may as well make it go to the actual page.
In javascript though use something like
http://henrik.nyh.se/examples/truncator ... uncator.js
or
http://coxmediagroup.github.com/jquery-textconstrain/
In javascript though use something like
http://henrik.nyh.se/examples/truncator ... uncator.js
or
http://coxmediagroup.github.com/jquery-textconstrain/