Franco

--



On Tue, Apr 28, 2009 at 11:22 PM, William Stein <wst...@gmail.com> wrote:
>
> On Tue, Apr 28, 2009 at 1:45 PM, Franco Saliola <sali...@gmail.com> wrote:
>> On Mon, Apr 27, 2009 at 9:07 PM, William Stein <wst...@gmail.com> wrote:
>>>
>>> On Mon, Apr 27, 2009 at 11:45 AM, Jason Grout
>>> <jason-s...@creativetrax.com> wrote:
>>>>
>>>> William Stein wrote:
>>>>> On Mon, Apr 27, 2009 at 11:29 AM, kcrisman <kcris...@gmail.com> wrote:
>>>>>> Just as a postscript, I was really glad to have the autosave a few
>>>>>> minute ago, where I nearly deleted an entire lecture's worth of notes
>>>>>> and computations which I hadn't saved, by accidentally brushing
>>>>>> against a browser shortcut to a "favorites" page on the wrong window.
>>>>>> (This could happen with "reload" or other shortcuts, too, I suspect.)
>>>>>> When I used the browser "back" button, I had literally nothing, but
>>>>>> the autosave had captured my previous revision!
>>>>>
>>>>> You could have just pressed reload and you would have had your
>>>>> worksheet back entirely.   It was still sitting there on the server in
>>>>> RAM.   Never use the back button with the sage notebook, unless you
>>>>> immediately press refresh.
>>>>>
>>>>
>>>> Tom or some other javascript ninja:
>>>>
>>>> Isn't there some sort of javascript that disables the back button?
>>>> That's a common problem in web applications, and I'd be very surprised
>>>> if it isn't a solved problem already.
>>>>
>>>> Jason
>>>>
>>>
>>> Not, there is no javascript to do that.  Also, disabling the back
>>> button is irrelevant to the above problem, which would only have been
>>> prevented by disabling being able to leave the page by clicking on a
>>> favorites.   There is javascript to attempt to prevent users from
>>> leaving pages -- lots of spam sites use it.  Of course it doesn't work
>>> well though, and is often extremely annoying.
>>
>> I am using GMail. I hit reply. I typed this. Now I am going to hit the
>> browser's back button...
>>
>> I'm still here. So Google can do it.
>
> They did not disable the back button.  They are calling a javascript
> function on leaving the page, which could be via the back button,
> clicking a link, etc. The Sage notebook could also popup a dialog when
> you try to leave a worksheet page.

Right, sorry. I misunderstood and didn't realize that the goal was to
disable the back button.

I think it might be a good idea to pop-up a dialog when one tries to
leave a worksheet if it hasn't been saved.

Franco

--

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to