We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    Quote from: snop at Sep 08, 2008, 03:19 PM

    You are right and the saving of a documents will be very comfortable. I’m thinking that I will using ExtJS in my projects as well.

    Just as an insider tip - press Ctrl+Alt+S (or Command+Option+S for Mac) to save a Resource or Element (Snippet/Chunk) when editing them. It gets REAL easy then. laugh
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 3749
      • 24,544 Posts
      Quote from: splittingred at Sep 08, 2008, 04:13 PM

      Just as an insider tip - press Ctrl+Alt+S (or Command+Option+S for Mac) to save a Resource or Element (Snippet/Chunk) when editing them. It gets REAL easy then. laugh

      I’ve been meaning to ask -- why not just Ctrl-S, which has been a fairly standard "file save" command for years? Is that reserved for something else?
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
      • Isn’t that usually used by the browser itself to save the whole page?
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 28215
          • 4,149 Posts
          Quote from: BobRay at Sep 08, 2008, 04:53 PM

          I’ve been meaning to ask -- why not just Ctrl-S, which has been a fairly standard "file save" command for years? Is that reserved for something else?

          As Susan suggests, that would be overriding default browser behaviour - saving the page. This is bad for many reasons, but here are the reasons why we chose ctrl+alt+s:

          Overriding default browser behaviour:
          1. is bad web practice
          2. doesn’t always work, since some browsers will act anyway, even if you try to override it
          3. is inconsistent in different OSes
          4. can be a security risk
            shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
            • 27843
            • 170 Posts
            Quote from: OpenGeek at Sep 08, 2008, 03:53 PM

            I don’t run MySQL with any strict sql_modes because it adds overhead to every transaction on the MySQL server to do that kind of validation there.

            I didn’t know that there are this kind of validation checks. Thank you for explanation.

            Quote from: OpenGeek at Sep 08, 2008, 03:53 PM
            IMHO, the application should be responsible for the finer details of data validation.

            That is very good reason and I will programming my applications this way (without STRICT mod in MySQL). Next good advice thank.

            Quote from: OpenGeek at Sep 08, 2008, 03:53 PM
            But regardless, we will be doing such advanced testing in the beta phase, and your input has helped us get a head start.

            Ok, I create ticket in JIRA.

            Quote from: splittingred at Sep 08, 2008, 04:13 PM

            Just as an insider tip - press Ctrl+Alt+S (or Command+Option+S for Mac) to save a Resource or Element (Snippet/Chunk) when editing them. It gets REAL easy then. laugh

            But this don’t work in 0.9.6.1p2 in FireFox but good to know in next or future releases. wink
              • 3749
              • 24,544 Posts
              Quote from: sottwell at Sep 08, 2008, 04:54 PM

              Isn’t that usually used by the browser itself to save the whole page?

              It does in FF but not in my IE7. I see why it’s a bad idea to use it though. embarrassed
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
              • Yeah, I think some (if not all) browsers can be configured to use custom shortcut keys, but that’s not something everybody is going to be willing (or able) to do just to accommodate something clever we’ve done.
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 3749
                  • 24,544 Posts
                  Quote from: sottwell at Sep 09, 2008, 06:07 AM

                  Yeah, I think some (if not all) browsers can be configured to use custom shortcut keys, but that’s not something everybody is going to be willing (or able) to do just to accommodate something clever we’ve done.

                  Here’s a pretty complete list for FF, IE7, Opera, and Safari:
                  http://www.mvps.org/dmcritchie/firefox/keyboard.htm


                  I’ve looked a little but haven’t found anything on customizing them in either FF or IE7 and it looks like it can’t be done -- kind of surprising since so many programs and almost all editors let you customize the keyboard shortcuts.

                  I’ve already hacked my Windows registry to swap the Ctrl and Capslock keys but I’m not sure is it’s possible to make Ctrl-S work as Alt-Ctrl-S (I never use Ctrl-S to save web pages). I would if I could. I can easily hit Ctrl-S in a flash without looking (and it saves a file in all my editors) but Ctrl-Alt-S is kind of awkward.
                    Did I help you? Buy me a beer
                    Get my Book: MODX:The Official Guide
                    MODX info for everyone: http://bobsguides.com/modx.html
                    My MODX Extras
                    Bob's Guides is now hosted at A2 MODX Hosting