John Gruber published a helpful JavaScript Bookmarklet Builder which I used to generate my IPA TTS bookmarklet. A few users reported that Chrome choked on the bookmarklet. I found that the bookmarklet builder does not produce the output that Chrome expects. I was using Chrome 15.0.874.54 beta. For example, take this simple script. (function () [...]
Ringo, Narwhal, Node, and JavaScriptCore support executing scripts with a shebang. Here are some quick examples to get you started. Ringo #!/usr/bin/env ringo print(“ringo”); Narwhal #!/usr/bin/env narwhal print(“narwhal”); Node #!/usr/bin/env node require(“sys”).print(“node\n”); JavaScriptCore #!/usr/bin/env jsc print(“jsc”); JavaScriptCore nightly added support for shebangs on 6 December 2010. Since Node and JavaScriptCore are binaries, you can use [...]
Found this fun bug in IE6 today. If you have a text input and submit input unassociated with a form, then submitting the text input (by hitting return or enter when focused) will cause a click event on the submit input. The solution is simple and intuitive: eliminate unassociated submit inputs and submit buttons. <!DOCTYPE [...]