Announcing: Slashdot Deals - Explore geek apps, games, gadgets and more. (what is this?)

Thank you!

We are sorry to see you leave - Beta is different and we value the time you took to try it out. Before you decide to go, please take a look at some value-adds for Beta and learn more about it. Thank you for reading Slashdot, and for making the site better!



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

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.

more than 7 years ago



Isofarro Isofarro writes  |  more than 8 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."


Isofarro has no journal entries.

Slashdot Login

Need an Account?

Forgot your password?