On 7/18/2013 1:18 PM, Sven Klomp wrote:
My problem is the behaviour of the back button. When press the back button
after entering some text and submiting it, the behaviour should be to exit the
webapp. However, the back-button is treated the normal browser-way and I'm
back on the previous page with the inserted text. How I can supress this?

To submit the form without navigating to a new page (and adding a new history entry), you'll probably want to write some JavasScript that uses XMLHttpRequest to submit the form data to the server and then updates the page when it receives a response.

There are JavaScript libraries that make it pretty easy to convert an existing form to use XMLHttpRequest, like this jQuery plugin:
http://jquery.malsup.com/form/
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to