Skip to main content

Keith Weiss

Member since Feb 1, 2010

Recent Blog Comments By Keith Weiss

  • Is Simulating User-Input Events With jQuery Ever A Good Idea?

    Posted on Feb 2, 2010 at 12:41 PM

    @rhett, Point taken. At the very least I've properly de-railed this thread from Ben's very valid point.... read more »

  • Is Simulating User-Input Events With jQuery Ever A Good Idea?

    Posted on Feb 2, 2010 at 12:22 PM

    "For example, let's stay that I have multiple elements that I want to open / close, but they don't necessarily have the same open / close durations." I wouldn't overload the event object here. I would probably add the durations to the ICloseable interface. The general idea would be that objects k... read more »

  • Is Simulating User-Input Events With jQuery Ever A Good Idea?

    Posted on Feb 2, 2010 at 11:37 AM

    I agree that I don't especially like referencing the preventDefault() method of the event object in the delegate. That's because it changes expected behavior of a link and it's not obvious from the toggle command that it's doing that. It's clearer if you write "preventDefault()" everywhere that y... read more »

  • Is Simulating User-Input Events With jQuery Ever A Good Idea?

    Posted on Feb 1, 2010 at 10:04 AM

    I agree that you probably don't want to simulate a click event. I think the intent idea you describe might be an overstatement, though. If the link text changes from "close" to "toggle" do you have to rethink your API because the user is now thinking about toggling and not closing? This seems l... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel