Massimo is there really a need for "restore" button in "ajax" mode editing
or i should just hide it?
As editor (Editarea) is perfectly capable of "reverting" or restoring last
good state with simple clicking on button undo/redo.

Current code is usefull and there should be no visible bugs :)

Boris

On Fri, Feb 27, 2009 at 1:22 AM, Boris Manojlovic <
boris.manojlo...@gmail.com> wrote:

> AJAX editor is functional
> Still missing Revert and resolve but relogin works !
> pull it from launchpad or use attached file against latest mdipierro devel
> branch
>
> Good night All...
>
>
> On Thu, Feb 26, 2009 at 1:03 AM, Boris Manojlovic <
> boris.manojlo...@gmail.com> wrote:
>
>> update on development:
>>
>> all (hopefully) messages from system are implemented - session expired
>> shown.
>> Still not handling "Revert" (button) and "resolve" (server) actions.
>> Created repository at
>> https://code.launchpad.net/~stekoje/web2py/ajaxeditor<https://code.launchpad.net/%7Estekoje/web2py/ajaxeditor>
>>
>>
>> On Mon, Feb 23, 2009 at 9:28 PM, Boris Manojlovic <
>> boris.manojlo...@gmail.com> wrote:
>>
>>> Changed files:
>>> web2py/applications/admin/controllers/default.py
>>> web2py/applications/admin/static/ajax_editor.js
>>> web2py/applications/admin/views/default/edit.html
>>> web2py/applications/admin/views/layout.html
>>> web2py/applications/admin/views/web2py_ajax.html
>>>
>>> this time patch is more intrusive than from last time, because i had to
>>> change html layout to make "flash" field available.
>>> Still missing part is relogin but this time this is just response to your
>>> request :)
>>>
>>> I don't know why it does not work from konqueror as jquery should be
>>> portable that much?
>>> Anyway for now this is MozillaFirefox only untill I found out what is not
>>> working in my JavaScript code :-\
>>>
>>>
>>> On Mon, Feb 23, 2009 at 7:52 PM, Boris Manojlovic <
>>> boris.manojlo...@gmail.com> wrote:
>>>
>>>> will try to do it asap :)
>>>> only missing will be "relogin" as i still didn't look into session
>>>> issue.
>>>> You would have to open new window(tab) and login there untill i find
>>>> some nice solution for session timeout.
>>>>
>>>>
>>>> On Mon, Feb 23, 2009 at 7:16 PM, mdipierro <mdipie...@cs.depaul.edu>wrote:
>>>>
>>>>>
>>>>> ok but can you send me a patch that does 1,2,3?
>>>>>
>>>>> On Feb 23, 9:59 am, Boris Manojlovic <boris.manojlo...@gmail.com>
>>>>> wrote:
>>>>> > hello,
>>>>> > 1) what exactly you need is very simple to achive as putting with JS
>>>>> value
>>>>> > into some <div> (or I'm missing your point, which i think is case
>>>>> here)
>>>>> > 2) this is done already trough javascript (ajax_editor.js) as that
>>>>> was
>>>>> > needed for successful "save" functionality (or resolve redirect is
>>>>> received
>>>>> > if it is not sent)
>>>>> > 3) that is still to be done on client side - server side is same (and
>>>>> > implemented) code as it was before for /edit/ control,JSON should
>>>>> contain
>>>>> > standard errors you receive by HTML  as you can see in patch
>>>>> >
>>>>> >
>>>>> >
>>>>> > On Mon, Feb 23, 2009 at 4:41 AM, mdipierro <mdipie...@cs.depaul.edu>
>>>>> wrote:
>>>>> >
>>>>> > > Boris. I really like this but we need
>>>>> >
>>>>> > > 1) make hash value visible and readonly
>>>>> > > 2) return the same when it was saved as well
>>>>> > > 3) some kind of notification (possibly in the form of flash) that
>>>>> > > informs the user if the file was saved or not.
>>>>> >
>>>>> > > Massimo
>>>>> >
>>>>> > > On Feb 22, 12:43 pm, Boris Manojlovic <boris.manojlo...@gmail.com>
>>>>> > > wrote:
>>>>> > > > Please try this patch last one was non working...
>>>>> >
>>>>> > > > On Sun, Feb 22, 2009 at 7:16 PM, Boris Manojlovic <
>>>>> >
>>>>> > > > boris.manojlo...@gmail.com> wrote:
>>>>> > > > > Hello to All,
>>>>> >
>>>>> > > > > i have started to work on something called "ajax" code editor.
>>>>> > > > > What exactly does it mean?
>>>>> >
>>>>> > > > >    1. No need for reloads on editor page (just think about undo
>>>>> redo in
>>>>> > > > >    editor window)
>>>>> > > > >    2. No "terrible loss of code" if you are logged out
>>>>> (application
>>>>> > > > >    timeout... with that "great" redirect to login page...)
>>>>> > > > >    3. speed gain
>>>>> >
>>>>> > > > > Current implementation has "save" functionality only and it
>>>>> works just
>>>>> > > from
>>>>> > > > > firefox (konqueror ignores my jquery code and same for
>>>>> opera...).
>>>>> > > > > Most coding as it would be expected should (and is) done on
>>>>> client side
>>>>> > > and
>>>>> > > > > will degrade depending if user use javascript at all - no
>>>>> script no
>>>>> > > ajax
>>>>> > > > > anyway.
>>>>> > > > > All messages in current stage are json passed to client.
>>>>> > > > > Patch against latest SVN from google code
>>>>> >
>>>>> > > > > P.S. Comments welcome and needed (to continue on this idea or
>>>>> not)
>>>>> > > > > --
>>>>> > > > > "Only two things are infinite, the universe and human
>>>>> stupidity, and
>>>>> > > I'm
>>>>> > > > > not sure about the former."-Albert Einstein
>>>>> >
>>>>> > > > --
>>>>> > > > "Only two things are infinite, the universe and human stupidity,
>>>>> and I'm
>>>>> > > not
>>>>> > > > sure about the former."-Albert Einstein
>>>>> >
>>>>> > > >  ajax_editor.patch
>>>>> > > > 7KViewDownload
>>>>> >
>>>>> > --
>>>>> > "Only two things are infinite, the universe and human stupidity, and
>>>>> I'm not
>>>>> > sure about the former."-Albert Einstein
>>>>> >>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> "Only two things are infinite, the universe and human stupidity, and I'm
>>>> not sure about the former."-Albert Einstein
>>>>
>>>
>>>
>>>
>>> --
>>> "Only two things are infinite, the universe and human stupidity, and I'm
>>> not sure about the former."-Albert Einstein
>>>
>>
>>
>>
>> --
>> "Only two things are infinite, the universe and human stupidity, and I'm
>> not sure about the former."-Albert Einstein
>>
>
>
>
> --
> "Only two things are infinite, the universe and human stupidity, and I'm
> not sure about the former."-Albert Einstein
>



-- 
"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."-Albert Einstein

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to