+1
> but if the Ajax request
> fails (which I assume happened in your case), I don't think any feedback is
> displayed to the page. Perhaps we should correct that -- first check the
> response of the Ajax request, and only remove the row from the grid if it
> was successful, otherwise flash an err
You are correct, I was clicking the delete button on the grid. Yes, I
think checking the success or otherwise of the Ajax request sounds like
the right thing to do - since calls to the db can fail for all sorts of
reasons, not just constraints.
Regards
Mark
Anthony wrote:
In your case, wer
On Wednesday, February 8, 2012 2:16:21 AM UTC-5, Mark Kirkwood wrote:
>
> Sorry, I was not being all that clear. What I meant to say was:
>
> When I try to delete such a record, instead of the form telling me that
> the delete was prevented it appears to have succeeded. However a refresh of
> th
Sorry, I was not being all that clear. What I meant to say was:
When I try to delete such a record, instead of the form telling me that
the delete was prevented it appears to have succeeded. However a refresh
of the form shows the record survived (and obviously the database log
tells us why)!
4 matches
Mail list logo