Page 1 of 1

[56K WARN] Comment Form

Posted: Thu Mar 01, 2007 8:34 pm
by Wogan_Mike
I need to make a comment that in the left column of the page is a form where users enter their name and comments and in the right column the posted comments would be listed.

It would look something like this:
Image

Kind of similar to what you see on mySpace®

What is the best/easiest way to achieve this?

Thanks for the help,
Mike W.

Posted: Thu Mar 01, 2007 9:26 pm
by Christopher
You could do it with frames or ajax. Either way you will need to use javascript. Neither is much easier.

Posted: Fri Mar 02, 2007 12:03 am
by feyd
I'm not seeing it require Javascript.. did I miss something?

Posted: Fri Mar 02, 2007 12:13 am
by Christopher
I guess I was assuming that the whole page was not submitted (@myspace). But feyd is correct, the simplest way would just be to submit the whole page and update the list based on the contents of the form.

Posted: Fri Mar 02, 2007 12:40 pm
by Wogan_Mike
Thanks for the info. Does anyone know where I can find I tutorial or something to show me how to do this? I have 0 knowledge of Ajax or PHP.

Thanks,
Mike W.

Posted: Fri Mar 02, 2007 2:33 pm
by Christopher
phpclasses.org for code or freshmeat.net for a myspace type application would be two places to start.

Posted: Sun Mar 04, 2007 11:00 am
by Ollie Saunders
No way do you need AJAX and I strongly advise against it. This seems to me to be a client side question and so I suggest somebody moves it there - unless I'm missing something; you are asking about how to achieve that layout of elements, right?

Posted: Sun Mar 04, 2007 2:53 pm
by Christopher
ole wrote:No way do you need AJAX and I strongly advise against it.
It's Ajax if you want to save the comment in a database and also do not want to refresh the page between submitting the form and redisplaying the list.