I'm about to create a livescore service with sport results on our site and I want to update the scores with Ajax in order to avoid reloading the entire page. I got some great information from another thread (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_22820160.html
) but my problem is that I need to update many DIV:s with one single script. I also don't know exactly how many DIV:s there is since the number of matches might change from day to day. Therefore I would like to be able to dynamically create DIV:s with different ID:s and update them with one single script. I would prefer to write the code for fetching the results from the database in PHP (I use MySQL as DB).
I read another article (http://www.phpit.net/article/ajax-php-without-xmlhttprequest/
) which might do the trick, but I'd prefer to use XmlHttpRequest.
I would greatly appreciate if you could add code examples in your replies! It's also important that the solution works in all major browers (IE, Firefox, Opera, Safari)