Ask for Help

Does anyone have suggestions for an off-the-shelf data reporting tool to help display some data in a webapp for internal users to see?

form.submit() vs. <form onsubmit="...">: An onsubmit attribute added to a form element doesn't get called when form.submit() is called from Javascript.

  • Try using Javascript to attach an onsubmit handler rather than adding it as an attribute of the form element.
  • Instead of calling form.submit() from Javascript, send a click event to a hidden submit button.

Timezones are being ignored when a date is passed into ActiveRecord's find method, but are not ignored when passed into other methods.

This seems to be due to a bug in ActiveSupport's to_s(:db). One solution is to override to_s and fix the time zone.

Interesting Things

  • When trying to create an ssh tunnel to EngineYard, set GatewayPorts to yes in sshd, otherwise the tunnel won't bind to your local computer.

  • WAVE Toolbar (Web accessiblity evaluation tool) is a great Firefox extension that shows you which parts of your pages have accessibility issues.

  • The next meeting of the San Francisco Pivotal Tracker Users Group is tonight at 6:30 PM at the Pivotal Labs headquaters on Market St.

Comments

  1. Clay Shentrup Clay Shentrup on November 05, 2009 at 03:11PM

    form.submit() vs. : An onsubmit attribute added to a form element doesn't get called when form.submit() is called from Javascript.

    That's what the specs say, but that's not the behavior I've observed (at least in Firefox). I've seen that onSubmit DOES get called when you call form.submit(). Maybe there was something else going on in my code that triggered the onSubmit() event, but it seemed like it was indeed the form.submit() call that triggered it.