djangosnippets.org: Latest snippets tagged with 'change-form'https://djangosnippets.org/tags/change-form/2010-10-06T01:02:23.544260-05:00Admin Word Count
2010-10-06T01:02:23.544260-05:00bahoohttps://djangosnippets.org/snippets/2221/<p>I'm on my own personal writing challenge (see 750words.com for inspiration). I needed a way to get a dynamic word count, so I threw this together. Tied into django-basic-blog easily.
</p>
Freely redistributableConfirm alert if the user navigates away without saving changes
2009-07-16T14:01:35.517012-05:00mrazzarihttps://djangosnippets.org/snippets/1636/<p>A confirm alert is displayed if the user has made any changes to the form, and attempts to navigate away from the page without saving (click the back button, hit reload, click the breadcrumbs, logout, etc). Much like GMail's "Your message has not been sent. Discard your message?" prompt. </p>
<p><strong>Uses …</strong></p>
Freely redistributable