How to do upload things and search in Ajax way?

Our website is a blog post website, so we want once a user post a new blog, user can immediately see the new blog without having to reload the page. The question here is everything was packed into <CustomHits />, so how we should make ajax call to update content automatically?
Thanks!