Form.Observer [http://prototypejs.org/api/timedObserver/form-observer]
is your friend

cheers

--
mona
mreml...@optaros.com

On Thu, Apr 23, 2009 at 9:11 AM, Chris <c...@clicksports.de> wrote:
>
> Hi all,
>
> I want to add some sort of Saving-Reminder to forms on my page. The
> process would be roughly the following:
>
> 1. I fill out a form element (Input or Textarea, doesnt really matter)
> 2. I click on a link that takes me away of the form (lets say from
> forms.html to index.html)
> 3. The Saving-Reminder sees that there are changed values in my form
> and I seem to leave and shows me a confirm box (Something like "Form
> data was not saved. Really exit this page?").
>
> My idea for such a feature would be to attach a listener to all links
> on the page and to all form elements (or is there a onchange-Event for
> forms directly?). Are there any better ways to archive this task?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to