Browse files

Site updated at 2013-01-01 23:18:09 UTC

  • Loading branch information...
1 parent eb81920 commit e8d8de3c0e4fc6e8ce6991f36493c580cb040196 @tjvantoll committed Jan 1, 2013
Showing with 1,843 additions and 499 deletions.
  1. +5 −5 2012/02/20/CSS3-Color-Animations/index.html
  2. +5 −5 2012/02/27/Making-a-3D-Picture-Cube-with-CSS3/index.html
  3. +5 −5 2012/03/08/IE7-Attribute-Selector-Bugs/index.html
  4. +5 −5 2012/03/17/Styling-Disabled-Form-Fields/index.html
  5. +5 −5 2012/03/21/javascript-for-the-java-developer/index.html
  6. +5 −5 2012/05/02/showmodaldialog-what-it-is-and-why-you-should-never-use-it/index.html
  7. +5 −5 2012/06/10/browser-css-parsing-discrepancies/index.html
  8. +5 −5 2012/06/15/detecting-print-requests-with-javascript/index.html
  9. +5 −5 2012/06/30/creating-a-native-html5-datepicker-with-a-fallback-to-jquery-ui/index.html
  10. +5 −5 2012/07/07/the-ideal-less-workflow-with-git/index.html
  11. +5 −5 2012/07/10/default-browser-handling-of-the-css-text-transform-property/index.html
  12. +5 −5 2012/07/15/native-html5-number-picker-vs-jquery-uis-spinner-which-to-use/index.html
  13. +5 −5 2012/07/19/dom-element-references-as-global-variables/index.html
  14. +5 −5 2012/08/05/html5-form-validation-showing-all-error-messages/index.html
  15. +5 −5 2012/08/10/less-101-the-basics-of-the-css-preprocessor/index.html
  16. +5 −5 2012/08/16/subpixel-animation-issues-in-ie-less-than-9/index.html
  17. +5 −5 2012/08/19/onscroll-event-issues-on-mobile-browsers/index.html
  18. +5 −5 2012/08/22/logging-test-failures-in-a-phantomjs-qunit-runner/index.html
  19. +5 −5 2012/08/28/google-analytics-excluding-visits-in-development-and-production/index.html
  20. +5 −5 2012/08/30/html5-form-validation-start-using-it-in-production-applications/index.html
  21. +5 −5 2012/09/14/using-jquery-ui-slider-to-polyfill-html5-input-type-range/index.html
  22. +5 −5 2012/09/19/using-the-attribute-selector-with-numeric-values/index.html
  23. +5 −5 2012/10/17/maxlength-constraint-validation-oddities/index.html
  24. +5 −5 2012/10/23/front-end-efficiency-the-top-ten/index.html
  25. +5 −5 2012/10/24/adding-pointers-to-jquery-ui-tooltips/index.html
  26. +5 −5 2012/11/08/creating-a-polished-vertical-tabs-interaction-with-jquery-ui/index.html
  27. +5 −5 2012/11/10/creating-cross-browser-scrollable-tbody/index.html
  28. +7 −5 2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/index.html
  29. +472 −0 2013/01/01/enter-should-submit-forms-stop-messing-with-that/index.html
  30. +1 −1 404.html
  31. +186 −128 atom.xml
  32. +24 −7 blog/archives/index.html
  33. +1 −1 blog/categories/browsers/atom.xml
  34. +5 −5 blog/categories/browsers/index.html
  35. +1 −1 blog/categories/css/atom.xml
  36. +5 −5 blog/categories/css/index.html
  37. +1 −1 blog/categories/efficiency/atom.xml
  38. +5 −5 blog/categories/efficiency/index.html
  39. +1 −1 blog/categories/forms/atom.xml
  40. +5 −5 blog/categories/forms/index.html
  41. +1 −1 blog/categories/git/atom.xml
  42. +5 −5 blog/categories/git/index.html
  43. +156 −1 blog/categories/html/atom.xml
  44. +22 −5 blog/categories/html/index.html
  45. +1 −1 blog/categories/html5/atom.xml
  46. +5 −5 blog/categories/html5/index.html
  47. +1 −1 blog/categories/java/atom.xml
  48. +5 −5 blog/categories/java/index.html
  49. +1 −1 blog/categories/javascript/atom.xml
  50. +5 −5 blog/categories/javascript/index.html
  51. +1 −1 blog/categories/jquery-ui/atom.xml
  52. +5 −5 blog/categories/jquery-ui/index.html
  53. +1 −1 blog/categories/less/atom.xml
  54. +5 −5 blog/categories/less/index.html
  55. +1 −1 blog/categories/mobile/atom.xml
  56. +5 −5 blog/categories/mobile/index.html
  57. +1 −1 blog/categories/qunit/atom.xml
  58. +5 −5 blog/categories/qunit/index.html
  59. +1 −1 blog/categories/speaking/atom.xml
  60. +5 −5 blog/categories/speaking/index.html
  61. +1 −1 blog/categories/unit-testing/atom.xml
  62. +5 −5 blog/categories/unit-testing/index.html
  63. +171 −0 blog/categories/ux/atom.xml
  64. +232 −0 blog/categories/ux/index.html
  65. +220 −65 blog/index.html
  66. +65 −49 blog/page/2/index.html
  67. +49 −6 blog/page/3/index.html
  68. +5 −5 index.html
  69. +9 −3 sitemap.xml
  70. +5 −5 speaking/index.html
View
10 2012/02/20/CSS3-Color-Animations/index.html
@@ -455,6 +455,10 @@ <h1 class="entry-title">CSS3 Color Animations</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -490,10 +494,6 @@ <h1 class="entry-title">CSS3 Color Animations</h1>
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -510,7 +510,7 @@ <h1 class="entry-title">CSS3 Color Animations</h1>
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/02/27/Making-a-3D-Picture-Cube-with-CSS3/index.html
@@ -531,6 +531,10 @@ <h1 class="entry-title">Making a 3D Picture Cube with CSS3</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -566,10 +570,6 @@ <h1 class="entry-title">Making a 3D Picture Cube with CSS3</h1>
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -586,7 +586,7 @@ <h1 class="entry-title">Making a 3D Picture Cube with CSS3</h1>
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/03/08/IE7-Attribute-Selector-Bugs/index.html
@@ -392,6 +392,10 @@ <h1 class="entry-title">IE7 Attribute Selector Bugs</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -427,10 +431,6 @@ <h1 class="entry-title">IE7 Attribute Selector Bugs</h1>
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -447,7 +447,7 @@ <h1 class="entry-title">IE7 Attribute Selector Bugs</h1>
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/03/17/Styling-Disabled-Form-Fields/index.html
@@ -493,6 +493,10 @@ <h1 class="entry-title">Styling Disabled Form Fields</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -528,10 +532,6 @@ <h1 class="entry-title">Styling Disabled Form Fields</h1>
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -548,7 +548,7 @@ <h1 class="entry-title">Styling Disabled Form Fields</h1>
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/03/21/javascript-for-the-java-developer/index.html
@@ -196,6 +196,10 @@ <h1 class="entry-title">JavaScript for the Java Developer</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -231,10 +235,6 @@ <h1 class="entry-title">JavaScript for the Java Developer</h1>
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -251,7 +251,7 @@ <h1 class="entry-title">JavaScript for the Java Developer</h1>
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/05/02/showmodaldialog-what-it-is-and-why-you-should-never-use-it/index.html
@@ -396,6 +396,10 @@ <h1 class="entry-title">window.showModalDialog: What It is and Why You Should Ne
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -431,10 +435,6 @@ <h1 class="entry-title">window.showModalDialog: What It is and Why You Should Ne
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -451,7 +451,7 @@ <h1 class="entry-title">window.showModalDialog: What It is and Why You Should Ne
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/06/10/browser-css-parsing-discrepancies/index.html
@@ -411,6 +411,10 @@ <h1 class="entry-title">Browser CSS Parsing Discrepancies</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -446,10 +450,6 @@ <h1 class="entry-title">Browser CSS Parsing Discrepancies</h1>
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -466,7 +466,7 @@ <h1 class="entry-title">Browser CSS Parsing Discrepancies</h1>
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/06/15/detecting-print-requests-with-javascript/index.html
@@ -528,6 +528,10 @@ <h1 class="entry-title">Detecting Print Requests with JavaScript</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -563,10 +567,6 @@ <h1 class="entry-title">Detecting Print Requests with JavaScript</h1>
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -583,7 +583,7 @@ <h1 class="entry-title">Detecting Print Requests with JavaScript</h1>
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/06/30/creating-a-native-html5-datepicker-with-a-fallback-to-jquery-ui/index.html
@@ -314,6 +314,10 @@ <h1 class="entry-title">Creating a Native HTML 5 Datepicker with a Fallback to j
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -349,10 +353,6 @@ <h1 class="entry-title">Creating a Native HTML 5 Datepicker with a Fallback to j
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -369,7 +369,7 @@ <h1 class="entry-title">Creating a Native HTML 5 Datepicker with a Fallback to j
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/07/07/the-ideal-less-workflow-with-git/index.html
@@ -503,6 +503,10 @@ <h1 class="entry-title">The Ideal LESS Workflow with git</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -538,10 +542,6 @@ <h1 class="entry-title">The Ideal LESS Workflow with git</h1>
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -558,7 +558,7 @@ <h1 class="entry-title">The Ideal LESS Workflow with git</h1>
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/07/10/default-browser-handling-of-the-css-text-transform-property/index.html
@@ -364,6 +364,10 @@ <h1 class="entry-title">Default Browser Handling of the CSS text-transform Prope
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -399,10 +403,6 @@ <h1 class="entry-title">Default Browser Handling of the CSS text-transform Prope
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -419,7 +419,7 @@ <h1 class="entry-title">Default Browser Handling of the CSS text-transform Prope
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/07/15/native-html5-number-picker-vs-jquery-uis-spinner-which-to-use/index.html
@@ -514,6 +514,10 @@ <h1 class="entry-title">Native HTML5 Number Picker and jQuery UI's Spinner - Whi
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -549,10 +553,6 @@ <h1 class="entry-title">Native HTML5 Number Picker and jQuery UI's Spinner - Whi
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -569,7 +569,7 @@ <h1 class="entry-title">Native HTML5 Number Picker and jQuery UI's Spinner - Whi
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/07/19/dom-element-references-as-global-variables/index.html
@@ -568,6 +568,10 @@ <h1 class="entry-title">DOM Element References as Global Variables</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -603,10 +607,6 @@ <h1 class="entry-title">DOM Element References as Global Variables</h1>
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -623,7 +623,7 @@ <h1 class="entry-title">DOM Element References as Global Variables</h1>
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/08/05/html5-form-validation-showing-all-error-messages/index.html
@@ -395,6 +395,10 @@ <h1 class="entry-title">HTML5 Form Validation - Showing All Error Messages</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -430,10 +434,6 @@ <h1 class="entry-title">HTML5 Form Validation - Showing All Error Messages</h1>
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -450,7 +450,7 @@ <h1 class="entry-title">HTML5 Form Validation - Showing All Error Messages</h1>
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/08/10/less-101-the-basics-of-the-css-preprocessor/index.html
@@ -196,6 +196,10 @@ <h1 class="entry-title">LESS 101 - The Basics of the CSS Preprocessor</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -231,10 +235,6 @@ <h1 class="entry-title">LESS 101 - The Basics of the CSS Preprocessor</h1>
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -251,7 +251,7 @@ <h1 class="entry-title">LESS 101 - The Basics of the CSS Preprocessor</h1>
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/08/16/subpixel-animation-issues-in-ie-less-than-9/index.html
@@ -278,6 +278,10 @@ <h1 class="entry-title">Subpixel Animation Issues in IE < 9</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -313,10 +317,6 @@ <h1 class="entry-title">Subpixel Animation Issues in IE < 9</h1>
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -333,7 +333,7 @@ <h1 class="entry-title">Subpixel Animation Issues in IE < 9</h1>
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/08/19/onscroll-event-issues-on-mobile-browsers/index.html
@@ -331,6 +331,10 @@ <h1 class="entry-title">onscroll Event Issues on Mobile Browsers</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -366,10 +370,6 @@ <h1 class="entry-title">onscroll Event Issues on Mobile Browsers</h1>
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -386,7 +386,7 @@ <h1 class="entry-title">onscroll Event Issues on Mobile Browsers</h1>
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/08/22/logging-test-failures-in-a-phantomjs-qunit-runner/index.html
@@ -544,6 +544,10 @@ <h1 class="entry-title">Logging Test Failures in a PhantomJS QUnit Runner</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -579,10 +583,6 @@ <h1 class="entry-title">Logging Test Failures in a PhantomJS QUnit Runner</h1>
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -599,7 +599,7 @@ <h1 class="entry-title">Logging Test Failures in a PhantomJS QUnit Runner</h1>
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/08/28/google-analytics-excluding-visits-in-development-and-production/index.html
@@ -408,6 +408,10 @@ <h1 class="entry-title">Google Analytics - Excluding Your Own Visits in Developm
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -443,10 +447,6 @@ <h1 class="entry-title">Google Analytics - Excluding Your Own Visits in Developm
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -463,7 +463,7 @@ <h1 class="entry-title">Google Analytics - Excluding Your Own Visits in Developm
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/08/30/html5-form-validation-start-using-it-in-production-applications/index.html
@@ -255,6 +255,10 @@ <h1 class="entry-title">HTML5 Form Validation - Start Using it in Production App
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -290,10 +294,6 @@ <h1 class="entry-title">HTML5 Form Validation - Start Using it in Production App
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -310,7 +310,7 @@ <h1 class="entry-title">HTML5 Form Validation - Start Using it in Production App
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/09/14/using-jquery-ui-slider-to-polyfill-html5-input-type-range/index.html
@@ -282,6 +282,10 @@ <h1 class="entry-title">Using jQuery UI's Slider to Polyfill HTML5's input[type=
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -317,10 +321,6 @@ <h1 class="entry-title">Using jQuery UI's Slider to Polyfill HTML5's input[type=
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -337,7 +337,7 @@ <h1 class="entry-title">Using jQuery UI's Slider to Polyfill HTML5's input[type=
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/09/19/using-the-attribute-selector-with-numeric-values/index.html
@@ -273,6 +273,10 @@ <h1 class="entry-title">Using the Attribute Selector with Numeric Values</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -308,10 +312,6 @@ <h1 class="entry-title">Using the Attribute Selector with Numeric Values</h1>
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -328,7 +328,7 @@ <h1 class="entry-title">Using the Attribute Selector with Numeric Values</h1>
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/10/17/maxlength-constraint-validation-oddities/index.html
@@ -243,6 +243,10 @@ <h1 class="entry-title">maxlength Constraint Validation Oddities in Major Browse
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -278,10 +282,6 @@ <h1 class="entry-title">maxlength Constraint Validation Oddities in Major Browse
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -298,7 +298,7 @@ <h1 class="entry-title">maxlength Constraint Validation Oddities in Major Browse
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/10/23/front-end-efficiency-the-top-ten/index.html
@@ -196,6 +196,10 @@ <h1 class="entry-title">Front End Efficiency - The Top Ten</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -231,10 +235,6 @@ <h1 class="entry-title">Front End Efficiency - The Top Ten</h1>
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -251,7 +251,7 @@ <h1 class="entry-title">Front End Efficiency - The Top Ten</h1>
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/10/24/adding-pointers-to-jquery-ui-tooltips/index.html
@@ -213,6 +213,10 @@ <h1 class="entry-title">Adding Pointers to jQuery UI Tooltips</h1>
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -248,10 +252,6 @@ <h1 class="entry-title">Adding Pointers to jQuery UI Tooltips</h1>
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -268,7 +268,7 @@ <h1 class="entry-title">Adding Pointers to jQuery UI Tooltips</h1>
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/11/08/creating-a-polished-vertical-tabs-interaction-with-jquery-ui/index.html
@@ -206,6 +206,10 @@ <h1 class="entry-title">Creating a Polished Vertical Tabs Interaction with jQuer
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -241,10 +245,6 @@ <h1 class="entry-title">Creating a Polished Vertical Tabs Interaction with jQuer
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -261,7 +261,7 @@ <h1 class="entry-title">Creating a Polished Vertical Tabs Interaction with jQuer
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
10 2012/11/10/creating-cross-browser-scrollable-tbody/index.html
@@ -292,6 +292,10 @@ <h1 class="entry-title">Creating Cross Browser Scrollable &lt;tbody&gt;s - A CSS
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -327,10 +331,6 @@ <h1 class="entry-title">Creating Cross Browser Scrollable &lt;tbody&gt;s - A CSS
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -347,7 +347,7 @@ <h1 class="entry-title">Creating Cross Browser Scrollable &lt;tbody&gt;s - A CSS
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
12 2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/index.html
@@ -237,6 +237,8 @@ <h1 class="entry-title">Debugging Print Stylesheets: Now Significantly Easier in
<a class="basic-alignment left" href="/2012/11/10/creating-cross-browser-scrollable-tbody/" title="Previous Post: Creating Cross Browser Scrollable &lt;tbody&gt;s - A CSS Only Approach">&laquo; Creating Cross Browser Scrollable &lt;tbody&gt;s - A CSS Only Approach</a>
+ <a class="basic-alignment right" href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/" title="Next Post: The Enter Key should Submit Forms, Stop Suppressing it">The Enter Key should Submit Forms, Stop Suppressing it &raquo;</a>
+
</p>
</footer>
</article>
@@ -256,6 +258,10 @@ <h1 class="entry-title">Debugging Print Stylesheets: Now Significantly Easier in
<ul id="recent_posts">
<li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
<a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
</li>
@@ -291,10 +297,6 @@ <h1 class="entry-title">Debugging Print Stylesheets: Now Significantly Easier in
<a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
</li>
- <li class="post">
- <a href="/2012/08/28/google-analytics-excluding-visits-in-development-and-production/">Google Analytics - Excluding Your Own Visits in Development and Production</a>
- </li>
-
</ul>
</section>
<section >
@@ -311,7 +313,7 @@ <h1 class="entry-title">Debugging Print Stylesheets: Now Significantly Easier in
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
472 2013/01/01/enter-should-submit-forms-stop-messing-with-that/index.html
@@ -0,0 +1,472 @@
+
+<!DOCTYPE html>
+<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
+<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
+<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
+<head>
+ <meta charset="utf-8">
+ <title>The Enter Key should Submit Forms, Stop Suppressing it - TJ VanToll - Tutorials, Thoughts, and Ramblings on Front End Development</title>
+ <meta name="author" content="TJ VanToll">
+
+
+ <meta name="description" content="I try to do most of my work and play on the internet with the keyboard as much as possible. In the course of my internet-ing there&#8217;s one &hellip;">
+
+
+ <!-- http://t.co/dKP3o1e -->
+ <meta name="HandheldFriendly" content="True">
+ <meta name="MobileOptimized" content="320">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+
+ <link rel="canonical" href="http://tjvantoll.com/2013/01/01/enter-should-submit-forms-stop-messing-with-that">
+ <!-- Use custom favicon -->
+ <!--<link href="/favicon.png" rel="icon">-->
+ <link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
+
+
+ <!--Custom script concatenation
+ <script src="/javascripts/modernizr-2.5.3.js"></script>
+
+ <script src="/javascripts/ender.js"></script>
+ <script src="/javascripts/octopress.js"></script>
+ <script src="/javascripts/PictureCube.js"></script>
+ <script src="/javascripts/ender.tipsy.js"></script>
+ <script src="/javascripts/blog.js"></script>
+ -->
+ <script src="/javascripts/build/scripts.js"></script>
+
+ <link href="/atom.xml" rel="alternate" title="TJ VanToll" type="application/atom+xml">
+ <style>
+ /* Fonts from Google"s Web font directory at http://google.com/webfonts */
+ @import url(http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic);
+ @import url(http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic);
+</style>
+
+
+ <script type="text/javascript">
+ if (window.location.host.indexOf('local') == -1) {
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-29179796-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ }
+ </script>
+
+
+</head>
+
+<body >
+ <header role="banner"><hgroup>
+ <div id="picture-cube"></div>
+ <h1><a href="/">TJ VanToll</a></h1>
+
+ <h2>Tutorials, Thoughts, and Ramblings on Front End Development</h2>
+
+</hgroup>
+
+</header>
+ <nav role="navigation"><ul class="subscription" data-subscription="rss">
+ <li><a href="/atom.xml" rel="subscribe-rss" title="subscribe via RSS">RSS</a></li>
+
+</ul>
+
+<form action="http://google.com/search" method="get">
+ <fieldset role="search">
+ <input type="hidden" name="q" value="site:tjvantoll.com" />
+ <input class="search" type="text" name="q" results="0" placeholder="Search"/>
+ </fieldset>
+</form>
+
+<ul class="main-navigation">
+ <li><a href="/blog">Blog</a></li>
+ <li><a href="/">About</a></li>
+ <li><a href="/blog/archives">Archives</a></li>
+ <li><a href="/speaking">Speaking</a></li>
+</ul>
+
+</nav>
+ <div id="main">
+ <div id="content">
+ <div>
+<article class="hentry" role="article">
+
+ <header>
+
+ <h1 class="entry-title">The Enter Key should Submit Forms, Stop Suppressing it</h1>
+
+
+ <p class="meta">
+
+
+
+
+
+
+
+
+
+
+
+
+<time datetime="2013-01-01T15:54:00-05:00" pubdate data-updated="true">Jan 1<span>st</span>, 2013</time>
+
+ | <a href="#disqus_thread">Comments</a>
+
+ </p>
+
+ </header>
+
+
+<div class="entry-content"><p>I try to do most of my work and play on the internet with the keyboard as much as possible. In the course of my internet-ing there&#8217;s one unfortunate trend that I&#8217;ve noticed; an increasing number of sites are not allowing the enter key to submit a form. Before I tell you why you care, let&#8217;s look at how this should work.</p>
+
+<h3>Enter = Submit</h3>
+
+<p>Take the following basic form:</p>
+
+<figure class='code'><figcaption class='empty'><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+<span class='line-number'>2</span>
+<span class='line-number'>3</span>
+<span class='line-number'>4</span>
+<span class='line-number'>5</span>
+</pre></td><td class='code'><pre><code class='html'><span class='line'><span class="nt">&lt;form&gt;</span>
+</span><span class='line'> <span class="nt">&lt;label</span> <span class="na">for=</span><span class="s">&quot;name&quot;</span><span class="nt">&gt;</span>Name:<span class="nt">&lt;/label&gt;</span>
+</span><span class='line'> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">&quot;text&quot;</span> <span class="na">name=</span><span class="s">&quot;name&quot;</span> <span class="na">id=</span><span class="s">&quot;name&quot;</span><span class="nt">&gt;</span>
+</span><span class='line'> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">&quot;submit&quot;</span> <span class="na">value=</span><span class="s">&quot;Submit&quot;</span><span class="nt">&gt;</span>
+</span><span class='line'><span class="nt">&lt;/form&gt;</span>
+</span></code></pre></td></tr></table></div></figure>
+
+
+<p>If you have focus in the textbox and hit enter, the form will be submitted automatically. This behavior is consistent across all browsers and is known as implicit submission. So why is this important?</p>
+
+<h3>Accessibility</h3>
+
+<p>Implicit submission is vital to assistive technologies and impaired users that cannot use a mouse at all. From the HTML5 specification:</p>
+
+<blockquote><p>There are pages on the Web that are only usable if there is a way to implicitly submit forms, so user agents are strongly encouraged to support this.</p><footer><strong>HTML 5 specification</strong> <cite><a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#implicit-submission'>www.whatwg.org/specs/web-apps/&hellip;</a></cite></footer></blockquote>
+
+
+<p>By user agent the spec is referring to browsers, and it&#8217;s strongly encouraging them to allow implicit submission. They all do, you should too.</p>
+
+<h3>User Expectations</h3>
+
+<p>Many users have an expectation that implicit submission will just work. Interfering with this leads to a worse user experience for these users. At the very least I won&#8217;t be happy.</p>
+
+<h3>How to Prevent Implicit Submission</h3>
+
+<p>What are sites doing to keep this from happening? Here&#8217;s a few things I&#8217;ve seen.</p>
+
+<h4>No Submit Buttons</h4>
+
+<p>Many sites simply don&#8217;t have a submit button within the form itself. From the spec here&#8217;s how browsers determine what to do when enter is clicked.</p>
+
+<blockquote><p>If the user agent supports letting the user submit a form implicitly (for example, on some platforms hitting the &#8220;enter&#8221; key while a text field is focused implicitly submits the form), then doing so for a form whose default button has a defined activation behavior must cause the user agent to run synthetic click activation steps on that default button.</p><footer><strong>HTML 5 specification</strong> <cite><a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#implicit-submission'>www.whatwg.org/specs/web-apps/&hellip;</a></cite></footer></blockquote>
+
+
+<p>Basically, if the user hits enter when a text field is focused, find the first submit button in the form and click it.</p>
+
+<blockquote><p>If the form has no submit button, then the implicit submission mechanism must do nothing if the form has more than one field that blocks implicit submission, and must submit the form element from the form element itself otherwise.</p><p>For the purpose of the previous paragraph, an element is a field that blocks implicit submission of a form element if it is an input element whose form owner is that form element and whose type attribute is in one of the following states: Text, Search, URL, Telephone, E-mail, Password, Date and Time, Date, Month, Week, Time, Local Date and Time, Number</p><footer><strong>HTML 5 specification</strong> <cite><a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#implicit-submission'>www.whatwg.org/specs/web-apps/&hellip;</a></cite></footer></blockquote>
+
+
+<p>So, in a form with no submit buttons, implicit submission will only be done if one input is present. Therefore, pressing enter in this textbox will submit the form:</p>
+
+<figure class='code'><figcaption class='empty'><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+<span class='line-number'>2</span>
+<span class='line-number'>3</span>
+<span class='line-number'>4</span>
+</pre></td><td class='code'><pre><code class='html'><span class='line'><span class="nt">&lt;form&gt;</span>
+</span><span class='line'> <span class="nt">&lt;label</span> <span class="na">for=</span><span class="s">&quot;name&quot;</span><span class="nt">&gt;</span>Name:<span class="nt">&lt;/label&gt;</span>
+</span><span class='line'> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">&quot;text&quot;</span> <span class="na">name=</span><span class="s">&quot;name&quot;</span> <span class="na">id=</span><span class="s">&quot;name&quot;</span><span class="nt">&gt;</span>
+</span><span class='line'><span class="nt">&lt;/form&gt;</span>
+</span></code></pre></td></tr></table></div></figure>
+
+
+<p>But in this form it will not because there are multiple fields:</p>
+
+<figure class='code'><figcaption class='empty'><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+<span class='line-number'>2</span>
+<span class='line-number'>3</span>
+<span class='line-number'>4</span>
+<span class='line-number'>5</span>
+<span class='line-number'>6</span>
+</pre></td><td class='code'><pre><code class='html'><span class='line'><span class="nt">&lt;form&gt;</span>
+</span><span class='line'> <span class="nt">&lt;label</span> <span class="na">for=</span><span class="s">&quot;name&quot;</span><span class="nt">&gt;</span>Name:<span class="nt">&lt;/label&gt;</span>
+</span><span class='line'> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">&quot;text&quot;</span> <span class="na">name=</span><span class="s">&quot;name&quot;</span> <span class="na">id=</span><span class="s">&quot;name&quot;</span><span class="nt">&gt;</span>
+</span><span class='line'> <span class="nt">&lt;label</span> <span class="na">for=</span><span class="s">&quot;address&quot;</span><span class="nt">&gt;</span>Address:<span class="nt">&lt;/label&gt;</span>
+</span><span class='line'> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">&quot;text&quot;</span> <span class="na">name=</span><span class="s">&quot;address&quot;</span> <span class="na">id=</span><span class="s">&quot;address&quot;</span><span class="nt">&gt;</span>
+</span><span class='line'><span class="nt">&lt;/form&gt;</span>
+</span></code></pre></td></tr></table></div></figure>
+
+
+<p>Therefore, if you have a form with more than one input field, always include a submit button. Specifically an <code>&lt;input&gt;</code> with the <code>type="submit"</code> attribute, or a <code>&lt;button&gt;</code> element should be present. If you need to run some JavaScript before the form is submitted (validation, data manipulation, etc), do it in a <code>submit</code> event handler on the form, not a <code>click</code> handler on a button.</p>
+
+<h4>No &lt;form&gt;</h4>
+
+<p>I&#8217;ve seen a few forms that simply do not use the <code>&lt;form&gt;</code> HTML tag. Why would they do that?</p>
+
+<p>With modern day browsers and JavaScript libraries it&#8217;s easy to send data to the server via AJAX. Because an AJAX request does not require a true <code>&lt;form&gt;</code> tag, it is often omitted. However, much like implicit submission, surrounding form data with a true <code>&lt;form&gt;</code> tag is vital for accessibility. Most screen readers have a <a href="http://www.htctu.fhda.edu/trainings/manuals/tutorials/readweb/forms.htm">mode specifically for filling out forms</a>, and by not using a true <code>&lt;form&gt;</code> tag, you risk this not being activated.</p>
+
+<h4>Explicit Prevention</h4>
+
+<p>Finally, it&#8217;s also quite easy to prevent implicit submission in JavaScript. Take the following example:</p>
+
+<figure class='code'><figcaption class='empty'><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+<span class='line-number'>2</span>
+<span class='line-number'>3</span>
+<span class='line-number'>4</span>
+<span class='line-number'>5</span>
+<span class='line-number'>6</span>
+<span class='line-number'>7</span>
+<span class='line-number'>8</span>
+<span class='line-number'>9</span>
+<span class='line-number'>10</span>
+<span class='line-number'>11</span>
+<span class='line-number'>12</span>
+</pre></td><td class='code'><pre><code class='html'><span class='line'><span class="nt">&lt;form&gt;</span>
+</span><span class='line'> <span class="nt">&lt;label</span> <span class="na">for=</span><span class="s">&quot;name&quot;</span><span class="nt">&gt;</span>Name:<span class="nt">&lt;/label&gt;</span>
+</span><span class='line'> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">&quot;text&quot;</span> <span class="na">name=</span><span class="s">&quot;name&quot;</span> <span class="na">id=</span><span class="s">&quot;name&quot;</span><span class="nt">&gt;</span>
+</span><span class='line'> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">&quot;submit&quot;</span> <span class="na">value=</span><span class="s">&quot;Submit&quot;</span><span class="nt">&gt;</span>
+</span><span class='line'><span class="nt">&lt;/form&gt;</span>
+</span><span class='line'><span class="nt">&lt;script&gt;</span>
+</span><span class='line'> <span class="nb">document</span><span class="p">.</span><span class="nx">getElementById</span><span class="p">(</span><span class="s1">&#39;name&#39;</span><span class="p">).</span><span class="nx">addEventListener</span><span class="p">(</span><span class="s1">&#39;keypress&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">)</span> <span class="p">{</span>
+</span><span class='line'> <span class="k">if</span> <span class="p">(</span><span class="nx">event</span><span class="p">.</span><span class="nx">keyCode</span> <span class="o">==</span> <span class="mi">13</span><span class="p">)</span> <span class="p">{</span>
+</span><span class='line'> <span class="nx">event</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span>
+</span><span class='line'> <span class="p">}</span>
+</span><span class='line'> <span class="p">});</span>
+</span><span class='line'><span class="nt">&lt;/script&gt;</span>
+</span></code></pre></td></tr></table></div></figure>
+
+
+<p>This sets up a simple <code>keypress</code> event handler that prevents the default action (implicit submission) from occurring when the enter key is pressed.</p>
+
+<p>This technique can be handy. For example, say you have a form with multiple submit buttons. As we saw earlier, the implicit submission algorithm will simply click the first submit button that it finds. Therefore, if you need control over which submit button is clicked, you can use the above technique to listen for enter keypresses, prevent the default action, then explicitly click the appropriate button.</p>
+
+<p>Take the following example:</p>
+
+<figure class='code'><figcaption class='empty'><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+<span class='line-number'>2</span>
+<span class='line-number'>3</span>
+<span class='line-number'>4</span>
+<span class='line-number'>5</span>
+<span class='line-number'>6</span>
+<span class='line-number'>7</span>
+<span class='line-number'>8</span>
+<span class='line-number'>9</span>
+<span class='line-number'>10</span>
+<span class='line-number'>11</span>
+<span class='line-number'>12</span>
+<span class='line-number'>13</span>
+<span class='line-number'>14</span>
+<span class='line-number'>15</span>
+<span class='line-number'>16</span>
+<span class='line-number'>17</span>
+<span class='line-number'>18</span>
+<span class='line-number'>19</span>
+<span class='line-number'>20</span>
+<span class='line-number'>21</span>
+</pre></td><td class='code'><pre><code class='html'><span class='line'><span class="nt">&lt;form&gt;</span>
+</span><span class='line'> <span class="nt">&lt;label</span> <span class="na">for=</span><span class="s">&quot;age&quot;</span><span class="nt">&gt;</span>Age:<span class="nt">&lt;/label&gt;</span>
+</span><span class='line'> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">&quot;number&quot;</span> <span class="na">min=</span><span class="s">&quot;0&quot;</span> <span class="na">max=</span><span class="s">&quot;120&quot;</span> <span class="na">name=</span><span class="s">&quot;age&quot;</span> <span class="na">id=</span><span class="s">&quot;age&quot;</span><span class="nt">&gt;</span>
+</span><span class='line'> <span class="nt">&lt;button</span> <span class="na">id=</span><span class="s">&quot;child&quot;</span><span class="nt">&gt;</span>Child<span class="nt">&lt;/button&gt;</span>
+</span><span class='line'> <span class="nt">&lt;button</span> <span class="na">id=</span><span class="s">&quot;adult&quot;</span><span class="nt">&gt;</span>Adult<span class="nt">&lt;/button&gt;</span>
+</span><span class='line'><span class="nt">&lt;/form&gt;</span>
+</span><span class='line'><span class="nt">&lt;script&gt;</span>
+</span><span class='line'> <span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
+</span><span class='line'> <span class="kd">var</span> <span class="nx">age</span> <span class="o">=</span> <span class="nb">document</span><span class="p">.</span><span class="nx">getElementById</span><span class="p">(</span><span class="s1">&#39;age&#39;</span><span class="p">);</span>
+</span><span class='line'> <span class="nx">age</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span><span class="s1">&#39;keypress&#39;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">)</span> <span class="p">{</span>
+</span><span class='line'> <span class="k">if</span> <span class="p">(</span><span class="nx">event</span><span class="p">.</span><span class="nx">keyCode</span> <span class="o">==</span> <span class="mi">13</span><span class="p">)</span> <span class="p">{</span>
+</span><span class='line'> <span class="nx">event</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span>
+</span><span class='line'> <span class="k">if</span> <span class="p">(</span><span class="nx">age</span><span class="p">.</span><span class="nx">value</span> <span class="o">&gt;</span> <span class="mi">20</span><span class="p">)</span> <span class="p">{</span>
+</span><span class='line'> <span class="nb">document</span><span class="p">.</span><span class="nx">getElementById</span><span class="p">(</span><span class="s1">&#39;adult&#39;</span><span class="p">).</span><span class="nx">click</span><span class="p">();</span>
+</span><span class='line'> <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
+</span><span class='line'> <span class="nb">document</span><span class="p">.</span><span class="nx">getElementById</span><span class="p">(</span><span class="s1">&#39;child&#39;</span><span class="p">).</span><span class="nx">click</span><span class="p">();</span>
+</span><span class='line'> <span class="p">}</span>
+</span><span class='line'> <span class="p">}</span>
+</span><span class='line'> <span class="p">});</span>
+</span><span class='line'> <span class="p">}());</span>
+</span><span class='line'><span class="nt">&lt;/script&gt;</span>
+</span></code></pre></td></tr></table></div></figure>
+
+
+<p>When enter is clicked in the number input, the <code>keypress</code> event handler determines which submit button is appropriate and clicks it.</p>
+
+<p>While this technique can be handy I&#8217;ve seen it used plenty of times to simply prevent implicit submission from working. Don&#8217;t do that.</p>
+
+<h3>Conclusion</h3>
+
+<p>When filling out a form, pressing enter in a textbox should submit the form. This is known as an implicit form submission. Despite being vital for assistive technologies and an important user convenience, many web forms prevent it for one reason or another. If you write web forms, please take a minute to ensure that the enter key can indeed be used to submit them; it&#8217;ll help make the web a better place for everyone.</p>
+</div>
+
+
+ <footer>
+ <p class="meta">
+
+
+
+<span class="byline author vcard">Posted by <span class="fn">TJ VanToll</span></span>
+
+
+
+
+
+
+
+
+
+
+
+
+
+<time datetime="2013-01-01T15:54:00-05:00" pubdate data-updated="true">Jan 1<span>st</span>, 2013</time>
+
+
+<span class="categories">
+
+ <a class='category' href='/blog/categories/html/'>HTML</a>, <a class='category' href='/blog/categories/ux/'>UX</a>
+
+</span>
+
+
+ </p>
+ <p class="author_card meta">
+ <img src="/images/me/1.jpg" alt="Me!" id="post_me" />
+ TJ VanToll is an avid web developer working for <a href="http://liquidweb.com">Liquid Web</a> and living in Lansing, MI. He is an open source advocate that is on the <a href="http://jqueryui.com">jQuery UI</a> team and publishes this blog <a href="https://github.com/tjvantoll/tjvantoll.github.com/tree/source">open source</a>. When not on the internet he is generally found <a href="/images/kids/2.jpg">brainwashing his children</a> and talking about himself in the third person. If you like hearing TJ talk about himself you should consider <a href="http://twitter.com/tjvantoll">following him on Twitter</a>.
+ </p>
+
+ <div class="sharing">
+
+ <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://tjvantoll.com/2013/01/01/enter-should-submit-forms-stop-messing-with-that/" data-via="tjvantoll" data-counturl="http://tjvantoll.com/2013/01/01/enter-should-submit-forms-stop-messing-with-that/" >Tweet</a>
+
+
+
+</div>
+
+
+ <p class="meta">
+
+ <a class="basic-alignment left" href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/" title="Previous Post: Debugging Print Stylesheets: Now Significantly Easier in Chrome">&laquo; Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
+
+
+ </p>
+ </footer>
+</article>
+
+ <section>
+ <h1>Comments</h1>
+ <div id="disqus_thread" aria-live="polite"><noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+</div>
+ </section>
+
+</div>
+
+<aside class="sidebar">
+
+ <section>
+ <h1>Recent Posts</h1>
+ <ul id="recent_posts">
+
+ <li class="post">
+ <a href="/2013/01/01/enter-should-submit-forms-stop-messing-with-that/">The Enter Key should Submit Forms, Stop Suppressing it</a>
+ </li>
+
+ <li class="post">
+ <a href="/2012/12/12/debugging-print-stylesheets-now-significantly-easier-in-chrome/">Debugging Print Stylesheets: Now Significantly Easier in Chrome</a>
+ </li>
+
+ <li class="post">
+ <a href="/2012/11/10/creating-cross-browser-scrollable-tbody/">Creating Cross Browser Scrollable &lt;tbody&gt;s - A CSS Only Approach</a>
+ </li>
+
+ <li class="post">
+ <a href="/2012/11/08/creating-a-polished-vertical-tabs-interaction-with-jquery-ui/">Creating a Polished Vertical Tabs Interaction with jQuery UI</a>
+ </li>
+
+ <li class="post">
+ <a href="/2012/10/24/adding-pointers-to-jquery-ui-tooltips/">Adding Pointers to jQuery UI Tooltips</a>
+ </li>
+
+ <li class="post">
+ <a href="/2012/10/23/front-end-efficiency-the-top-ten/">Front End Efficiency - The Top Ten</a>
+ </li>
+
+ <li class="post">
+ <a href="/2012/10/17/maxlength-constraint-validation-oddities/">maxlength Constraint Validation Oddities in Major Browsers</a>
+ </li>
+
+ <li class="post">
+ <a href="/2012/09/19/using-the-attribute-selector-with-numeric-values/">Using the Attribute Selector with Numeric Values</a>
+ </li>
+
+ <li class="post">
+ <a href="/2012/09/14/using-jquery-ui-slider-to-polyfill-html5-input-type-range/">Using jQuery UI's Slider to Polyfill HTML5's input[type=range]</a>
+ </li>
+
+ <li class="post">
+ <a href="/2012/08/30/html5-form-validation-start-using-it-in-production-applications/">HTML5 Form Validation - Start Using it in Production Applications</a>
+ </li>
+
+ </ul>
+</section>
+<section >
+ <h1>Twitter</h1>
+ <a class="twitter-timeline" href="https://twitter.com/tjvantoll" data-widget-id="284127791589494784">Tweets by @tjvantoll</a>
+</section>
+<section class="jsdocs">
+ <h1><a href="http://promotejs.com">Promote JS!</a></h1>
+ <a href="https://developer.mozilla.org/en/JavaScript/Guide" title="JS Tutorial, JavaScript Tutorial, JavaScript Guide, Learn JavaScript JS, How To Learn JS, Learning JavaScript"><img src="http://static.jsconf.us/promotejshs.png" height="150" alt="JS Tutorial, JavaScript Tutorial, JavaScript Guide, Learn JavaScript JS, How To Learn JS, Learning JavaScript" width="180"></a></section>
+
+</aside>
+
+
+ </div>
+ </div>
+ <footer role="contentinfo"><p>
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
+ <span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
+</p>
+
+</footer>
+
+
+<script type="text/javascript">
+ var disqus_shortname = 'tjvantoll';
+
+
+ // var disqus_developer = 1;
+ var disqus_identifier = 'http://tjvantoll.com/2013/01/01/enter-should-submit-forms-stop-messing-with-that/';
+ var disqus_url = 'http://tjvantoll.com/2013/01/01/enter-should-submit-forms-stop-messing-with-that/';
+ var disqus_script = 'embed.js';
+
+ (function () {
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script;
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+ }());
+</script>
+
+
+
+
+
+
+
+ <script type="text/javascript">
+ (function(){
+ var twitterWidgets = document.createElement('script');
+ twitterWidgets.type = 'text/javascript';
+ twitterWidgets.async = true;
+ twitterWidgets.src = 'http://platform.twitter.com/widgets.js';
+ document.getElementsByTagName('head')[0].appendChild(twitterWidgets);
+ })();
+ </script>
+
+
+
+
+
+</body>
+</html>
View
2 404.html
@@ -102,7 +102,7 @@
</div>
</div>
<footer role="contentinfo"><p>
- Copyright &copy; 2012 - <a href="/">TJ VanToll</a> -
+ Copyright &copy; 2013 - <a href="/">TJ VanToll</a> -
<span class="credit">Powered by <a href="http://octopress.org">Octopress</a></span>
</p>
View
314 atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[TJ VanToll]]></title>
<link href="http://tjvantoll.com/atom.xml" rel="self"/>
<link href="http://tjvantoll.com/"/>
- <updated>2012-12-29T22:57:44-05:00</updated>
+ <updated>2013-01-01T18:17:55-05:00</updated>
<id>http://tjvantoll.com/</id>
<author>
<name><![CDATA[TJ VanToll]]></name>
@@ -14,6 +14,191 @@
<entry>
+ <title type="html"><![CDATA[The Enter Key should Submit Forms, Stop Suppressing it]]></title>
+ <link href="http://tjvantoll.com/2013/01/01/enter-should-submit-forms-stop-messing-with-that/"/>
+ <updated>2013-01-01T15:54:00-05:00</updated>
+ <id>http://tjvantoll.com/2013/01/01/enter-should-submit-forms-stop-messing-with-that</id>
+ <content type="html"><![CDATA[<p>I try to do most of my work and play on the internet with the keyboard as much as possible. In the course of my internet-ing there&#8217;s one unfortunate trend that I&#8217;ve noticed; an increasing number of sites are not allowing the enter key to submit a form. Before I tell you why you care, let&#8217;s look at how this should work.</p>
+
+<h3>Enter = Submit</h3>
+
+<p>Take the following basic form:</p>
+
+<figure class='code'><figcaption class='empty'><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+<span class='line-number'>2</span>
+<span class='line-number'>3</span>
+<span class='line-number'>4</span>
+<span class='line-number'>5</span>
+</pre></td><td class='code'><pre><code class='html'><span class='line'><span class="nt">&lt;form&gt;</span>
+</span><span class='line'> <span class="nt">&lt;label</span> <span class="na">for=</span><span class="s">&quot;name&quot;</span><span class="nt">&gt;</span>Name:<span class="nt">&lt;/label&gt;</span>
+</span><span class='line'> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">&quot;text&quot;</span> <span class="na">name=</span><span class="s">&quot;name&quot;</span> <span class="na">id=</span><span class="s">&quot;name&quot;</span><span class="nt">&gt;</span>
+</span><span class='line'> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">&quot;submit&quot;</span> <span class="na">value=</span><span class="s">&quot;Submit&quot;</span><span class="nt">&gt;</span>
+</span><span class='line'><span class="nt">&lt;/form&gt;</span>
+</span></code></pre></td></tr></table></div></figure>
+
+
+<p>If you have focus in the textbox and hit enter, the form will be submitted automatically. This behavior is consistent across all browsers and is known as implicit submission. So why is this important?</p>
+
+<h3>Accessibility</h3>
+
+<p>Implicit submission is vital to assistive technologies and impaired users that cannot use a mouse at all. From the HTML5 specification:</p>
+
+<blockquote><p>There are pages on the Web that are only usable if there is a way to implicitly submit forms, so user agents are strongly encouraged to support this.</p><footer><strong>HTML 5 specification</strong> <cite><a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#implicit-submission'>www.whatwg.org/specs/web-apps/&hellip;</a></cite></footer></blockquote>
+
+
+<p>By user agent the spec is referring to browsers, and it&#8217;s strongly encouraging them to allow implicit submission. They all do, you should too.</p>
+
+<h3>User Expectations</h3>
+
+<p>Many users have an expectation that implicit submission will just work. Interfering with this leads to a worse user experience for these users. At the very least I won&#8217;t be happy.</p>
+
+<h3>How to Prevent Implicit Submission</h3>
+
+<p>What are sites doing to keep this from happening? Here&#8217;s a few things I&#8217;ve seen.</p>
+
+<h4>No Submit Buttons</h4>
+
+<p>Many sites simply don&#8217;t have a submit button within the form itself. From the spec here&#8217;s how browsers determine what to do when enter is clicked.</p>
+
+<blockquote><p>If the user agent supports letting the user submit a form implicitly (for example, on some platforms hitting the &#8220;enter&#8221; key while a text field is focused implicitly submits the form), then doing so for a form whose default button has a defined activation behavior must cause the user agent to run synthetic click activation steps on that default button.</p><footer><strong>HTML 5 specification</strong> <cite><a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#implicit-submission'>www.whatwg.org/specs/web-apps/&hellip;</a></cite></footer></blockquote>
+
+
+<p>Basically, if the user hits enter when a text field is focused, find the first submit button in the form and click it.</p>
+
+<blockquote><p>If the form has no submit button, then the implicit submission mechanism must do nothing if the form has more than one field that blocks implicit submission, and must submit the form element from the form element itself otherwise.</p><p>For the purpose of the previous paragraph, an element is a field that blocks implicit submission of a form element if it is an input element whose form owner is that form element and whose type attribute is in one of the following states: Text, Search, URL, Telephone, E-mail, Password, Date and Time, Date, Month, Week, Time, Local Date and Time, Number</p><footer><strong>HTML 5 specification</strong> <cite><a href='http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#implicit-submission'>www.whatwg.org/specs/web-apps/&hellip;</a></cite></footer></blockquote>
+
+
+<p>So, in a form with no submit buttons, implicit submission will only be done if one input is present. Therefore, pressing enter in this textbox will submit the form:</p>
+
+<figure class='code'><figcaption class='empty'><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+<span class='line-number'>2</span>
+<span class='line-number'>3</span>
+<span class='line-number'>4</span>
+</pre></td><td class='code'><pre><code class='html'><span class='line'><span class="nt">&lt;form&gt;</span>
+</span><span class='line'> <span class="nt">&lt;label</span> <span class="na">for=</span><span class="s">&quot;name&quot;</span><span class="nt">&gt;</span>Name:<span class="nt">&lt;/label&gt;</span>
+</span><span class='line'> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">&quot;text&quot;</span> <span class="na">name=</span><span class="s">&quot;name&quot;</span> <span class="na">id=</span><span class="s">&quot;name&quot;</span><span class="nt">&gt;</span>
+</span><span class='line'><span class="nt">&lt;/form&gt;</span>
+</span></code></pre></td></tr></table></div></figure>
+
+
+<p>But in this form it will not because there are multiple fields:</p>
+
+<figure class='code'><figcaption class='empty'><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+<span class='line-number'>2</span>
+<span class='line-number'>3</span>
+<span class='line-number'>4</span>
+<span class='line-number'>5</span>
+<span class='line-number'>6</span>
+</pre></td><td class='code'><pre><code class='html'><span class='line'><span class="nt">&lt;form&gt;</span>
+</span><span class='line'> <span class="nt">&lt;label</span> <span class="na">for=</span><span class="s">&quot;name&quot;</span><span class="nt">&gt;</span>Name:<span class="nt">&lt;/label&gt;</span>
+</span><span class='line'> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">&quot;text&quot;</span> <span class="na">name=</span><span class="s">&quot;name&quot;</span> <span class="na">id=</span><span class="s">&quot;name&quot;</span><span class="nt">&gt;</span>
+</span><span class='line'> <span class="nt">&lt;label</span> <span class="na">for=</span><span class="s">&quot;address&quot;</span><span class="nt">&gt;</span>Address:<span class="nt">&lt;/label&gt;</span>
+</span><span class='line'> <span class="nt">&lt;input</span> <span class="na">type=</span><span class="s">&quot;text&quot;</span> <span class="na">name=</span><span class="s">&quot;address&quot;</span> <span class="na">id=</span><span class="s">&quot;address&quot;</span><span class="nt">&gt;</span>
+</span><span class='line'><span class="nt">&lt;/form&gt;</span>
+</span></code></pre></td></tr></table></div></figure>
+
+
+<p>Therefore, if you have a form with more than one input field, always include a submit button. Specifically an <code>&lt;input&gt;</code> with the <code>type="submit"</code> attribute, or a <code>&lt;button&gt;</code> element should be present. If you need to run some JavaScript before the form is submitted (validation, data manipulation, etc), do it in a <code>submit</code> event handler on the form, not a <code>click</code> handler on a button.</p>
+
+<h4>No &lt;form&gt;</h4>
+
+<p>I&#8217;ve seen a few forms that simply do not use the <code>&lt;form&gt;</code> HTML tag. Why would they do that?</p>
+
+<p>With modern day browsers and JavaScript libraries it&#8217;s easy to send data to the server via AJAX. Because an AJAX request does not require a true <code>&lt;form&gt;</code> tag, it is often omitted. However, much like implicit submission, surrounding form data with a true <code>&lt;form&gt;</code> tag is vital for accessibility. Most screen readers have a <a href="http://www.htctu.fhda.edu/trainings/manuals/tutorials/readweb/forms.htm">mode specifically for filling out forms</a>, and by not using a true <code>&lt;form&gt;</code> tag, you risk this not being activated.</p>
+
+<h4>Explicit Prevention</h4>
+
+<p>Finally, it&#8217;s also quite easy to prevent implicit submission in JavaScript. Take the following example:</p>
+
+<figure class='code'><figcaption class='empty'><span></span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
+<span class='line-number'>2</span>
+<span class='line-number'>3</span>
+<span class='line-number'>4</span>
+<span class='line-number'>5</span>
+<span class='line-number'>6</span>
+<span class='line-number'>7</span>
+<span class='line-number'>8</span>
+<span class='line-number'>9</span>
+<span class='line-number'>10</span>
+<span class='line-number'>11</span>
+<span class='line-number'>12</span>
+</pre></td><td class='code'><pre><code class='html'><span class='line'><span class="nt">&lt;form&am