I am using the Datepicker from GWT 1.7 (slightly modified).

Within some Datepicker cells, I have clickable anchors. My problem is
that I get two actions as a result of a click:
 1) The default Datepicker action where clicking a filler cell (a cell
not in current month) causes an event to fire to enable you to change
the month.
 2) If you happen to click on the anchor within one of these cells,
you get both the cell selection event, as well as the anchor click
event.

Alternatively, one can think of this as a HTML TABLE, where any of its
TD elements can be clicked/selected. Some of the TD elements can
contain <A> elements that are clickable in their own right.
  <table onclick="handleIt()" >
  ...
  <td>Content</td>
  ...
  <td><a href="foo">Click me</a></td>
 ...

What I want is to have any click's on the anchor to be just handled as
a normal anchor click (and have any table selection events being
ignored). Not clear how I would attack this, or if it is even
possible.

How would one allow click's on <A> elements to override any onclick
event processing of its outer <TABLE>??

I tried a few Google "nested onclick", etc queries but did not find
anything useful.

In looking at the GWT code, I can see that inside of HTMLTable the
method getCellForEvent finds the inner Cell that is clicked on for the
table. But I'd guess the handling of the <A> click event is handled
elsewhere and the getCellForEvent is not aware of any clickable
content within the clicked Cell.

Hope this makes some sense... An easy symptom, but hard to explain.

TIA
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to