Page 1 of 1

Read more -button, text on the same page.

Posted: Mon Jan 02, 2012 12:38 pm
by Jaami
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!

Re: Read more -button, text on the same page.

Posted: Mon Jan 02, 2012 1:15 pm
by jacek
Would be fairly easy with javascript, impossible with php really.

Re: Read more -button, text on the same page.

Posted: Mon Jan 02, 2012 1:37 pm
by Jaami
thats what i thought..

i just found something interesting myself, which i will try later. :)

Re: Read more -button, text on the same page.

Posted: Fri Jan 20, 2012 4:11 am
by Curia
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/