I have a web-based AJAX Calendar I’m working on.
It’s similar to Google’s Calendar in some functionality.
I have an onclick function on the cell containing the date and if there is an event on that date, there is an onclick function on that event. The event is contained within the cell, such as
[CODE]<td onclick=”dosomething();”><a href=”#” onclick=”dosomething();”>Some Event</a></td>
Although it’s a little more complicated than that with the PHP code and db calls.
Anyway, if I click on the empty part of the cell, it calls the first function which displays an edit box similar to Google’s Calendar.
If I click on the link, it calls both functions and sometimes displays the event details or sometimes the edit box. I know this because of Firebug in Firefox.
Anyway, how can I only call the function once.
Thanks for you help. If you need more info, let me know.