How to return to the contents of a Dijit text field when a browser button is clicked?

I use Dojo Textarea Dijit to enter and send text (for processing).

I found that after sending, if the browser button is pressed (IE8, Firefox), unlike the usual HTML text field, I return to the input screen, but Textarea is EMPTY.

I would like that after clicking the back button, I will return to the previous page with the previously written text already in Textarea, so that I can edit it, instead of writing everything again.

Can someone explain how I am doing this (and some specific code example would be appreciated).

Thanks, Barry.

+4
source share
1 answer

You can use the dojo.back module: http://dojocampus.org/content/2009/05/17/using-dojo-back-button-and-bookmarks to keep page state and handle back / forward events.
However not sure if its powder and shot is worth your case. :)

+2
source

All Articles