Bus Map

Sep. 1st, 2006 01:07 pm
firstfrost: (Default)
[personal profile] firstfrost
I've been playing around with the Google Maps API and teaching myself Javascript (Javascript Lesson One: "there is no here here"), and have proof-of-concept (that is, the routes through 100) for an MBTA bus map (because I never know where any of the busses go).

http://web.mit.edu/boojum/www/Map/

I find that I have really no particular knack for nice-looking UI, so if anyone has suggestions (or CSS files!) let me know.

As far as the actual functionality goes, bug reports and suggestions also welcome. (I can't figure out a good way to allow hitting return to work for the text entry fields without triggering a page reload...)

Date: 2006-09-02 01:40 am (UTC)
From: [identity profile] psychohist.livejournal.com
That's pretty cool!

I think you can use Javascript onsubmit() to intercept the return key. Have the function return false to avoid submitting the form.

Date: 2006-09-02 03:38 am (UTC)
From: [identity profile] firstfrost.livejournal.com
I have onsubmit set to return false for both of those; that definitely keeps it from submitting, but it also keeps it from doing anything like parsing the input if you hit return, too, and people seem to expect hitting return after an input to *do* something. :)

(I played around with using onchange, but that seemed to not work with IE. Darned platform compatibilities.)

Profile

firstfrost: (Default)
firstfrost

February 2026

S M T W T F S
1234567
891011121314
15 161718192021
22232425262728

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 17th, 2026 11:50 am
Powered by Dreamwidth Studios