Re: Lock a page that is being edited by another user

2011-03-15 Thread Phang Mulianto
i aggre with using ajax to checking the edited record. and display notification if the current data is edited by some other users. and when saved, the change is displayed both, so user can choose to use which version that the document updated.. or merge it altogether On Tue, Mar 15, 2011 at 11:55

Re: Lock a page that is being edited by another user

2011-03-14 Thread Ryan Schmidt
On Mar 14, 2011, at 14:38, cricket wrote: > On Mon, Mar 14, 2011 at 11:29 AM, Sarpidon wrote: >> > >> What I did was to create a hidden input with the current timestamp >> (when the edit page is generated) >> >> Upon save I check if the record has a greater timestamp than the one >> from the hid

Re: Lock a page that is being edited by another user

2011-03-14 Thread Zaky Katalan-Ezra
I think you need some AJAX to ping the server with the post_id when someone open the post for edit. You need to ping every X second. When someone else trying to open the post for edit you check the ping table and if the post is in edit mode you can disable the last user edit button. you can even te

Re: Lock a page that is being edited by another user

2011-03-14 Thread cricket
On Mon, Mar 14, 2011 at 11:29 AM, Sarpidon wrote: > Thank you for your answers. > > What I did was to create a hidden input with the current timestamp > (when the edit page is generated) > > Upon save I check if the record has a greater timestamp than the one > from the hidden input and if so i re

Re: Lock a page that is being edited by another user

2011-03-14 Thread Sarpidon
save the article which is going to bite you on whatever way you do it. > > > mikek > > > > Thanks > > > > On Mar 14, 2:50 pm, Sarpidon wrote: > > >> Hi, I tried searching for it but I cannot find anything useful. I am > > >> trying to lock a

Re: Lock a page that is being edited by another user

2011-03-14 Thread Sarpidon
0 pm, Sarpidon wrote: > >> Hi, I tried searching for it but I cannot find anything useful. I am > >> trying to lock a page that is being edited by another user. In our > >> site there could be many admins editing the frontpage (choosing main > >> articles and so on

Re: Lock a page that is being edited by another user

2011-03-14 Thread mikek
ocking hell if your user fails to save the article which is going to bite you on whatever way you do it. mikek > > Thanks > > On Mar 14, 2:50 pm, Sarpidon wrote: >> Hi, I tried searching for it but I cannot find anything useful. I am >> trying to lock a page that is being

Re: Lock a page that is being edited by another user

2011-03-14 Thread Tilen Majerle
av, Tilen Majerle http://majerle.eu 2011/3/14 Sarpidon > Ok. I guess I am looking for Optimistic Locking, > > has this been implemented on CakePHP? Anyone? > > Thanks > > On Mar 14, 2:50 pm, Sarpidon wrote: > > Hi, I tried searching for it but I cannot find anything

Re: Lock a page that is being edited by another user

2011-03-14 Thread Sarpidon
Ok. I guess I am looking for Optimistic Locking, has this been implemented on CakePHP? Anyone? Thanks On Mar 14, 2:50 pm, Sarpidon wrote: > Hi, I tried searching for it but I cannot find anything useful. I am > trying to lock a page that is being edited by another user. In our > s

Lock a page that is being edited by another user

2011-03-14 Thread Sarpidon
Hi, I tried searching for it but I cannot find anything useful. I am trying to lock a page that is being edited by another user. In our site there could be many admins editing the frontpage (choosing main articles and so on), I want to be able to restrict the page to be edited by a single user