Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

PIVOTAL LABS
Standup 2009-11-04: As Far As We're Concerned, The Prime Meridian Runs Through Minneapolis, Minnesota

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 says:

    > 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.

Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *