> I have an "Edit Existing Record" screen. When the user clicks 
> the Save button on this screen, I'm supposed to store the 
> changed data in the database. However there may be a 
> situation where the user leaves the data unchanged & still 
> presses the Save button. In this case, I want to avoid the 
> database trip. Can I achieve this using the Validator 
> framework? 

I can't see how Validator would help. I handle this by including a hidden
element in the page which contains the original value of the data. When the
form is submitted, I can compare that hidden value to the value that was
exposed to the user. If they differ, then the database needs to be updated.

--
Tim Slattery
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to