how to check the form field change ---Cake-Php

2007-08-13 Thread sharath
Hii to all, I'm using cake php for editorial process page. In that page we have several field, in which user can edit those. After this he can click to next or prev button to move either way to edit another page. Suppose if he click on next , it will show a alert message Do you want to save the

Re: how to check the form field change ---Cake-Php

2007-08-13 Thread Christophe C.
Hello, One solution is to use javascript. You'll have to use a listener on the field you want to check, like this (using prototype) : $('yourTextField').observe('blur', function(e) or $('yourform').observe('submit', function(e) { var textfield = Event.element(e) // perform an ajax request to

Re: how to check the form field change ---Cake-Php

2007-08-13 Thread Christophe C.
Hello, One solution is to use javascript. You'll have to use a listener on the field you want to check, like this (using prototype) : $('yourTextField').observe('blur', function(e) or $('yourform').observe('submit', function(e) { var textfield = Event.element(e) // perform an ajax request to