How to stop duplicate data in jquery mobile after navigationg between pages

I am creating a chat application in jQuery Mobile.The problem is that when you navigate between pages and come back to the chat page when submitting data the data is resent according to the number of times one has navigated between other pages

When i perform a full page refresh data is sent only once as required.