Ajax Textarea process

Ajax Textarea process

Hello everybody

I have a textarea that can take a lot of information, for example hundreds of names seperated by new line. When the form is posted, a PHP-script takes over and processes these names. Since there can be hundreds, sometimes thousands names in the form, this might cause the webserver to timeout since the php-script is taking too much time.

I would like to simplify things by letting jquery send one or perhaps five lines on the textarea values to the php-script at a time, ajax-mode. This way the php-script wont timeout since it is called many times to take care of small amounts of data, instead of being called one time to process large amounts of data. And the user can see that's something is happening too, with a progress-bar (would be nifty but not necessary) or a "loading..."-image.

I have limited experience of javascript and jquery so I would really appreciate all help to get me started with this. Some simple examples would be great!

//martin