Surprises in JavaScript: blocking double form submission
Monday, 22 January 2007
I cannot believe this is portable…
<form onsubmit="return this._x ? false : ( this._x = true );">
So I won’t believe it. Unless someone tells me otherwise.






Monday, 22 January 2007
I cannot believe this is portable…
<form onsubmit="return this._x ? false : ( this._x = true );">
So I won’t believe it. Unless someone tells me otherwise.
About · Referring queries · Random article · Random doc · Recent comments (XML) · Contact · XML/Atom
articles · document pages
Anyone can double click to edit the block below. Its content is not necessarily from Sedition·com or reviewed or approved by us. Your chalkboard entry will stay there until someone else does the same or the server cache is reset or expires in a week. Rules: you can use basic Markdown or XHTML strict, no styles, no scripts, no <pre/>, no attributes except href for links, 750-ish characters, and, as usual, threats and abuse won’t be tolerated unless they’re very, very funny.
Why would you want to do this? You can put an ad and link for your site there. You can put a “Sedition·sucks” there. It’s above the fold on the top page and it’s all yours until the next visitor comes along.
Why would we want to do this? 1) Free speech is fun. 2) Cross-pollination is fun. 3) A Web 2.0 résumé point is nice when poking the job market with a sharp stick.
» Your candidate, I presume? #2.1
» Your candidate, I presume? #2
» Austin, Texas is the new Austin, Texas
» George Foreman I is going down in the first
» I don’t win every fight in my dreams
» How on Earth are there only two results in Google for this?
» You know what occurs to me seeing Harvey Weinstein doing the perp walk?
» Dennis Perrin’s still got it –OR– #Oprah2020
» Those who do not leave a reason…
» Re: The deaths in Charlottesville, Virginia today
» Is there anything more insulting…
» How to run *old* perl Kwiki (like 0.38) on PSGI
» Convert image sources to data URI with Perl: img2data
» Flugblätter der Widerstandsbewegung in Deutschland.
» Flugblätter der Weissen Rose. IV
» Flugblätter der Weissen Rose. III
We use carbon neutral web hosting to serve pages and our software, images, and auxiliary content are developed using 100% wind power; no, seriously.
A Lark made her nest in a field of young wheat. As the days passed, the wheat stalks grew tall and the young birds, too, grew in strength. Then one day, when the ripe golden grain waved in the breeze, the Farmer and his son came into the field.
“This wheat is now ready for reaping,” said the Farmer. “We must call in our neighbors and friends to help us harvest it.”
The young Larks in their nest close by were much frightened, for they knew they would be in great danger if they did not leave the nest before the reapers came. When the Mother Lark returned with food for them, they told her what they had heard.
“Do not be frightened, children,” said the Mother Lark. “If the Farmer said he would call in his neighbors and friends to help him do his work, this wheat will not be reaped for a while yet.”
A few days later, the wheat was so ripe, that when the wind shook the stalks, a hail of wheat grains came rustling down on the young Larks’ heads.
“If this wheat is not harvested at once,” said the Farmer, “we shall lose half the crop. We cannot wait any longer for help from our friends. Tomorrow we must set to work, ourselves.”
When the young Larks told their mother what they had heard that day, she said:
“Then we must be off at once. When a man decides to do his own work and not depend on any one else, then you may be sure there will be no more delay.”
There was much fluttering and trying out of wings that afternoon, and at sunrise next day, when the Farmer and his son cut down the grain, they found an empty nest.
Take that, subspace.