Keith Weiss
Member since Feb 1, 2010
- Profile: /members/5322-keith-weiss.htm
- Comments: 4
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 »