Javascript Problem
George has been trying to solve an HTML form problem for quite a while, and has believed that Javascript might be the answer. On a particular web page, there is a button which should only be pressed once, since it initiates a financial transaction that the user would not want to do more than once. For years, this has been handled by placing a text message in red which says "Please click button only once" right next to the button. Unfortunately, users still manage to hit it multiple times, and the log files on the servers show numerous errors being logged when a second (or third, or fourth...) click is received.
George found a Javascript solution which had been implemented on a similar page, so he modified it for his own use. The JS function is tied to the button, and when invoked it disables the button and posts the request to the server. Totally cool! Now the button could ONLY be pushed once, and then it would be rendered insensitive.
Unfortunately, the error count in the server logs nearly doubled. It seems that some browsers (i.e., Netscape 4.7x) automatically post the form AND invoke the Javascript... so every selection of the button causes TWO submittals of the form! Not quite what George had hoped. Now I know why Andrew D. would never let us use any Javascript-- its behavior is too inconsistent from browser to browser.
New Mexico
My daughters and I were visiting my Mom in Jemez Springs, New Mexico. Jemez Springs is a tiny village part-way up the Jemez Canyon, about 90 minutes Northwest of Albuquerque on State highway 4. My Mom owns and operates the Laughing Lizard Inn and Cafe-- the best restaurant in town, plus four uniquely decorated rooms.
Jemez Springs is not a big place-- but it is home to a Zen center, a hot springs Bath House, A Catholic convent, several churches, many art galleries, restaurants, lodges, a country store, and a bar. They even have a public library!
Not only is Jemez Springs a nice place to visit-- I'd love to live there!
Tuva or Bust!
I've really been enjoying this book by Ralph Leighton (who co-wrote Surely You're Joking, Mr. Feynman! with Richard Feynman). Leighton had been teaching high school Geography, and one night at dinner Feynman challenged him, saying he could name a country that Leighton could not locate on a map. The country was Tannu Tuva, whose capital city is Kyzyl. It seems Richard had collected stamps from there as a boy. Leighton was stumped, but he was also intrigued. They decided that they just had to visit a place with a name as interesting as Kyzyl! The book is about their quest to make their way to this small republic which had "voluntarily" joined the Soviet Union (the story takes place during the cold war).
It's a fun story, but I've decided that Leighton is a little kooky (in fact, he reminds me of me!). He seems prone to obsessive behavior-- during his quest for Tuva, he managed to change his car's license plate to "TOUVA", with a plate frame claiming the car was purchased at "Mongol Motors, KYZYL." He founded the Friends of Tuva (a group which has since taken on a life of its own), and master-minded the visit of a Soviet Archaeological Exhibit to a Californian museum as an excuse to get himself and Feynman invited to Tuva as members of the museum staff.
One of the entertaining stories is how Feynman came to have the nickname "The Chief". Leighton and Feynman often drummed together for fun, and even landed the occasional gratis drumming job. They were booked to perform as part of the musical South Pacific on CalTech's campus, acting as tribal drummers during a hula dance scene. Feynman always believed in doing a job right, so he contacted a friend who spoke polynesian languages, and learned to say the phrase "Bring in the drummers!" in Tahitian. He was dressed in an elaborate costume which included an amazing headdress... their performance brought the house down. From that moment on, Leighton (and almost everyone else) referred to him as "The Chief."
Feynman and Leighton were also intrigued by an art form practiced by the Tuvans-- throat singing. The performers can generate two tones at once, so that a single singer han harmonize with themself. A friend they made in the Soviet Union sent them a recording, and samples can be played using RealPlayer. Click here to download two samples of throat singing!
I'm not yet finished reading, but the subtitle is "Richard Feynman's Last Journey", and more than one review used the phrase "bitter-sweet" to describe the book. I'm not sure it's all fun, and I'm a little afraid to read the rest.
Alzheimer's
Now I can't remember what this was about... tune in next week! :-)
www.lunchwithgeorge.com
In case you didn't notice, Lunch With George! now has it's own domain! You can reach us now from memory at www.lunchwithgeorge.com.
Movies
George saw and critiqued several movies over the last few weeks, but I don't have the time nor energy to summarize them this week. check back next week!
Main Page |
Lunches |
Current Mail |
E-mail Us! |
Discussions |
Books |
Referenced Sites
Copyright © 2002, Paul Wren. All rights reserved.
Last modified 04/22/2002.
Webmaster