Andrew Berry Development - javascript http://www.abdevelopment.ca/taxonomy/term/49/0 en Waterloo Region Meetup: Painless JavaScript with jQuery http://www.abdevelopment.ca/blog/waterloo-region-meetup-painless-javascript-jquery <p>Tonight I gave the <a href="https://groups.drupal.org/waterloo-region-drupal-users-group">Waterloo Region User Group</a> a presentation introducing <a href="http://jquery.com/">jQuery</a> and it's use within <a href="https://www.drupal.org/">Drupal</a> websites. Topics covered included:</p> <ul> <li>What JavaScript is and isn't</li> <li>How JavaScript empowers developers to transform web pages into web applications</li> <li>Why many developers have avoided JavaScript in the past, and how jQuery addresses those issues</li> <li>JavaScript developer tools</li> <li>Introduction and live demos using jQuery</li> </ul> <div class="field field-type-link field-field-links"> <div class="field-items"> <div class="field-item"> <div class="field-label-inline-first"> Related Links:&nbsp;</div> <a href="http://api.jquery.com/?rdfrom=http%3A%2F%2Fdocs.jquery.com%2Fmw%2Findex.php%3Ftitle%3DMain_Page%26redirect%3Dno">jQuery Documentation</a> </div> <div class="field-item"> <div class="field-label-inline"> Related Links:&nbsp;</div> <a href="http://jqueryui.com/">jQuery UI</a> </div> <div class="field-item"> <div class="field-label-inline"> Related Links:&nbsp;</div> <a href="https://api.drupal.org/api/file/developer/topics/javascript_startup_guide.html">Drupal JavaScript Startup Guide</a> </div> <div class="field-item"> <div class="field-label-inline"> Related Links:&nbsp;</div> <a href="https://groups.drupal.org/javascript">JavaScript group on groups.drupal.org</a> </div> </div> </div> <p><a href="http://www.abdevelopment.ca/blog/waterloo-region-meetup-painless-javascript-jquery" target="_blank">read more</a></p> http://www.abdevelopment.ca/blog/waterloo-region-meetup-painless-javascript-jquery#comments drupal javascript presentations waterloo region Fri, 17 Apr 2009 02:24:11 +0000 andrew 96 at http://www.abdevelopment.ca Drupalcon Security Followup: Automatically use SSL logins on drupal.org http://www.abdevelopment.ca/blog/drupalcon-security-followup-automatically-use-ssl-logins-drupalorg <p>Today at the Advanced Security <a href="http://dc2009.drupalcon.org/">Drupalcon</a> talk it was mentioned that <a href="https://www.drupal.org/">drupal.org</a> supports SSL access. Using user JavaScript, it becomes possible to modify the drupal.org login fields to use SSL. Here are the steps you need to ensure that logging in will use SSL automatically.</p> <div class="field field-type-link field-field-links"> <div class="field-items"> <div class="field-item"> <div class="field-label-inline-first"> Related Links:&nbsp;</div> <a href="https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/">GreaseMonkey</a> </div> <div class="field-item"> <div class="field-label-inline"> Related Links:&nbsp;</div> <a href="http://8-p.info/greasekit/">GreaseKit</a> </div> </div> </div> <p><a href="http://www.abdevelopment.ca/blog/drupalcon-security-followup-automatically-use-ssl-logins-drupalorg" target="_blank">read more</a></p> http://www.abdevelopment.ca/blog/drupalcon-security-followup-automatically-use-ssl-logins-drupalorg#comments drupal drupalcon javascript Fri, 06 Mar 2009 16:34:44 +0000 andrew 91 at http://www.abdevelopment.ca Fixing the Enter Key on AHAH Forms http://www.abdevelopment.ca/blog/fixing-enter-key-ahah-forms <p><strong>Update:</strong> I've modified the suggested JavaScript code to not break #autocomplete enter presses.</p> <p>The <code>#ahah</code> element introduced in Drupal 6 makes setting up dynamic JavaScript-driven forms much simpler than with Drupal 5. To see this in action, take a look at the Poll module. When adding more choices to a form, clicking the "Add another choice" button doesn't reload the page if JavaScript is enabled. However, there is one problem with such a form: by adding a submit button above other submit elements, it becomes the default action when pressing the enter key. Unfortunately, browsers don't have a method to specify the default submit action, and usually just use the first submit element on the form. To see this issue, try pressing the enter key inside the Title field on a Poll node. The page reloads, and the JS-disabled fallback is executed, instead of the Preview action as may be expected.</p> <p>This might be behaving as intended with the <a href="https://api.drupal.org/api/file/modules/poll/poll.module/6/source">Poll module</a>, but I wanted to ensure that the enter key action was consistent with a similar feature I was adding to the <a href="https://www.drupal.org/project/skeleton">Skeleton Outline</a> module. Most JavaScript code online will recommend doing something similar to the following:</p> <div class="field field-type-link field-field-links"> <div class="field-items"> <div class="field-item"> <div class="field-label-inline-first"> Related Links:&nbsp;</div> <a href="https://www.drupal.org/node/348475">Introduction to AHAH in Drupal</a> </div> </div> </div> <p><a href="http://www.abdevelopment.ca/blog/fixing-enter-key-ahah-forms" target="_blank">read more</a></p> http://www.abdevelopment.ca/blog/fixing-enter-key-ahah-forms#comments drupal javascript web development Tue, 20 Jan 2009 00:29:39 +0000 andrew 78 at http://www.abdevelopment.ca