Thanks, the $("p").one was just a generic example. I plan to reassign
the click function on the callback from an ajax request. Thus, this
should prevent them from firing a second request while the first is out.
Or, would this be better handled by setting a global var, let's say
"ready=1" on page load, then toggle this when the req goes out, then
again when it comes back and only allow the req to fire when ready=1?
The should both work, no? Is one better?
Sure thing, if that's what you want to do: run on the first click inside any
p tag, and never again.
-Mike
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/