Thank you Donncha,
I wanted to make my plugin Lazyest Gallery talk AJAX but I needed some simple exampes to start with.