Page 1 of 1

reply comment

Posted: Thu Dec 29, 2005 9:36 am
by MySchizoBuddy
How can i make my comments look like the ones on this site
http://www.jihadthisfilth.com/archives/ ... morning-2/

When u click on reply comments a comment box opens under that particular comment rather than taking u all the way down to add comment form

Re: reply comment

Posted: Thu Dec 29, 2005 2:28 pm
by garvinhicking
You should be able to take that code from the page.

All that is needed is some javascript and a unique ID of your commentform. Then use DOM+Javascript to insert a DOM Node at the anchor link point.

So this is actually all possible within Serendipity, since it's unrelated to serendipity.

Best regards,
Garvin

Posted: Fri Dec 30, 2005 7:25 am
by Guest
any idea how the preview function will behave. since previwing reloads the page.

Posted: Fri Dec 30, 2005 5:28 pm
by garvinhicking
I guess the preview is done via AJAX? You could make a preview plugin, which just outputs formatted HTML according to the input of a POST field?

You could even fire up a AJAX request to parse the full s9y preview page and just return the comment DOM Node inside the current startpage.

This is all a bit advanced templating/JS/AJAX, so you'll need some good knowledge with this.

Best regards,
Garvin