Beta
×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Comments

top

HTML 5 As a Viable Alternative To Flash?

Isofarro Re:My Kingdom for a Datagrid Element! (541 comments)

When's the last time you laid out a site without a table element on every page?

Thursday. I was off sick yesterday.

"Oh, I want this box to highlight red when this happens!" a user might say.

Custom Events are your friend, and a sound basis for designing any complicated user-interface or series of interactions: http://developer.yahoo.com/yui/examples/event/custom-event.html So your problem above boils down to:

YAHOO.util.Event.on(thisBox, thisHappened, updateBox)

  • thisBox being a DOM reference to your table cell
  • thisHappened being the custom event you've defined as "this happens"
  • updateBox being the function or method that probably just adds a class name to the table cell, letting the CSS apply the necessary style changes

Another good writeup of custom events is: http://nefariousdesigns.co.uk/archive/2007/07/ajaxevent-using-yui-custom-events-with-ajax/

more than 5 years ago
top

Best Programming Practices For Web Developers

Isofarro Re:More than one side to this one... (210 comments)

Then there's Digg; Digg's pages are such a load on the visitor's CPU that I have to click "script not responding, continue?" three times on a page with 800 or so comments with Firefox and a dual-core 2 GHz CPU just to get the page to completely render.

Sounds like Digg is attaching events to every show/hide link instead of using event delegation and using only one event listener. Browsers can't really handle hundreds of attached event listeners, it is a known performance issue.

Now using event delegation instead of attaching hundreds of events should definitely be in a set of web development best practices.

about 7 years ago

Submissions

top

Isofarro Isofarro writes  |  more than 7 years ago

Isofarro writes "Thirteen years after the breakaway Garry Kasparov and Nigel Short World Championship match, FIDE (the world chess federation) have almost repaired this schism with a unifying match between the Russian Vladimir Kramnik (the successor to Garry Kasparov's title) versus the Bulgarian Veselin Topalov (the holder of the FIDE World Chess Championship title). Currently Kramnik is leading 3-1 after winning the first two games against the run of play.

But a complaint by Topalov's team about Kramnik's suspicious excessive use of his private bathroom has thrown the match in turmoil. FIDE ruled partially in favour of the complainant and declared that both players private bathrooms to be locked, and that the players share a toilet. Kramnik objected to the decision based on what he believes is an invasion of privacy from the Bulgarian team, and a breach of contract by FIDE. Kramnik sat in his rest-area during game 5 in protest, and forfeited the game after not making his first move in the first hour of his alloted time. Its unclear what will happen next. Kramnik has agreed that the fifth game (the one FIDE ruled he forfeited today) be played out tommorrow under the same conditions the match originally begun. Topalov's camp has been quiet. FIDE's president has backed FIDE's decisions. So a deadlock has been reached."

Journals

Isofarro has no journal entries.

Slashdot Login

Need an Account?

Forgot your password?

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>