Added a sample of ajax mechanism.