The Artima Developer Community
Sponsored Link

Java Buzz Forum
QuickSave in Basecamp: Shift-Return to save and move on

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
QuickSave in Basecamp: Shift-Return to save and move on Posted: Feb 2, 2007 3:32 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: QuickSave in Basecamp: Shift-Return to save and move on
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement

I created a Greasemonkey script to enable a pattern that I like to follow.

When inputting data in rows (e.g. todo list app, cells in a spreadsheet, etc) it is nice to be able to quickly hit enter to move to the next row.

This works well in Tada list and Excel. Type in X, return, next.

This breaks down if the field allows larger text and return takes you to a new line for that one field. An example of this is Basecamp.

I use Shift+Return/Enter to force the existing content to be saved, allowing me to follow the normal pattern with the subtle difference of having to know the meta key.

With the simple Quick Save for Basecamp user script I get the ease of use of Tada in Basecamp todo lists.

Submitting the basecamp form via getTheFormElement.submit() wasn't kicking off the Ajax call nicely (it worked, just caused refresh).

Instead, I simulate a mouseclick on the submit button via the trusty friend:

function simulateClick(node, eventType) {
    var event = node.ownerDocument.createEvent("MouseEvents");
    event.initMouseEvent(eventType,
                         true, // can bubble
                         true, // cancellable
                         window,
                         1, // clicks
                         50, 50, // screen coordinates
                         50, 50, // client coordinates
                         false, false, false, false, // control/alt/shift/meta
                         0, // button,
                         null);
    node.dispatchEvent(event);
}

Read: QuickSave in Basecamp: Shift-Return to save and move on

Topic: JRuby Serial Interview 5: Groovy Party Day Previous Topic   Next Topic Topic: Michigan Python Users Group meeting on Thursday

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use