[login to view URL] like comment reply box using ajax and jquery for threaded comments to submitted stories

Storniert Veröffentlicht Nov 23, 2011 Bezahlt bei Lieferung
Storniert Bezahlt bei Lieferung

I am looking for a way to dynamically allow site visitors to reply to comments to a story using AJAX and jQuery.

All of the comment system is all ready in place with a static reply system in place. The new system will replace the static reply system with a dynamic system that also uses Ajax to execute the comment insert code.

It would basically be a [url removed, login to view] clone in regards to how their reply to comment system works.

The system should work as follows:

1) User clicks on a reply to comment link.

2) This link fires a jquery function passing a Unique ID (comment ID they are replying to).

3) a empty hidden DIV under the comment (with a Unique ID as well) will be displayed and populated dynamically with a textarea and submit button.

4) When the user hits submit it executes an AJAX call to a separate file that handles the comment submission, validation, etc.

5) An error is returned if there is a problem, otherwise the comment is inserted and using jQuery the new comment is displayed all fancy like.

Special notes:

No page refreshes should happen, and no directing to different pages should occur.

The current system has a textarea and submit button for every comment. This means if there are 100 comments there are 100 textareas and submit buttons. There should be only 1 comment reply textarea and submit button for all comments that is dynamically displayed.

The site to receive this update runs pligg ([url removed, login to view]) which you can checkout and see how the existing system works.

Ingenieurwesen JavaScript PHP Projektmanagement Softwarearchitektur Testen von Software Benutzerschnittstelle / IA Web Hosting Website-Management Testen von Webseiten

Projekt-ID: #3714394

Über das Projekt

Remote Projekt Aktiv Dec 15, 2011