A javascript code to help into an ajax project