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 check if the text has been modified. // if your request returns "true", use the javascript "confirm" to display your alert message and save or not the modified text. // }); You can also hide a paragraph with the text from the database, and compare it to the text being edited before moving to the next page. On Aug 13, 8:51 am, sharath <[EMAIL PROTECTED]> wrote: > 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 changes". Yes will save & move to next page, & No > will just move to next page without saving. > Here my problem is, this alert message is only should ask if any > changes has done by that user, otherwise it should to move to next > page without alerting any message. How I can check each field wheather > any changes has made or not. > Regards, > sharath. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---