View Single Post
  #2 (permalink)  
Old July 29th, 2010, 06:09 PM
nzakas's Avatar
nzakas nzakas is offline
Wrox Author
Join Date: Dec 2004
Location: Peabody, MA, USA.
Posts: 217
Thanks: 0
Thanked 5 Times in 5 Posts

Please keep in mind that this is just an example. :)

You're correct in that you'll get the last added comment. Whether you want that or not is, of course, dependent on the behavior you're after. It would actually be better to send a timestamp and only return comments after the page was loaded.
Nicholas C. Zakas
Author, Professional JavaScript for Web Developers (ISBN 0764579088)