kendrickw / lunchfund

Lab LunchFund Tracker
4 stars 1 forks source link

Cha-ching sound when you click submit #7

Closed PhilipSLuk closed 10 years ago

PhilipSLuk commented 10 years ago

When you click the submit button, would be super cool to hear a Cha-ching sound

PhilipSLuk commented 10 years ago

Enhancement dropped. Now on "submit" user will receive a beautiful audio feedback on the onclick event.

kendrickw commented 10 years ago

Haha... That's awesome. If the submit fails, can it go 'uh..oh...' :0

PhilipSLuk commented 10 years ago

yeah i was thinking abt that, but i don't know how javascript scoping works. i.e. the "submitted = true/false variable in "<form onsubmit="submitted = syncGoogleForm(); return submitted;", can i refer to that else where?

kendrickw commented 10 years ago

I think it's possible to do a if (submitted) playtada() else playuhoh().

If you can disassociate the play() function from the button click event, and make it work by just calling the function, then the above should work.