[jQuery] generating links and events fires twice?
The case i am thinking of: A custom calendar which is being build
completely using jQuery client side.
How?
The days can be clicked and their ID's are based upon year/month/day (eg
20060121 for jan. 21st).
When the user clicks the a different month or year, the calendar gets
regenerated:
- e.g. the div is cleared using $().html('')
- New month is added
- Events are assigned for the new links.
Possible problem?
The user is in january, clicks on next month and then decides he needs
to be in the previous month.
So he clicks on the previous month, and the links are generated for
januari. The user clicks on jan. 21st.
Since the jan 21st link is build twice with thesame ID and thesame click
handler, does the assigned event fire twice?
-- Gilles
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/