Bingo again, Tom. In fact, doing this I don't even have to bother with History. I just grab the value href, parse it, and call my pop- up. I don't want (or need) it in the history change.
On Jan 8, 1:52 pm, Thomas Broyer <t.bro...@gmail.com> wrote: > ... > Ah, OK, so in your case, retrieving the NativeEvent's EventTarget, cast > ()ing into an AnchorElement (well, first verifying that it *is* an "A" > element by checking its getTagName(), and walking the tree up until > the HTML widget's getElement() or an "A" element is found) then > calling AnchorElement#getHref() should give you what you want. Then > get the indexOf("#") and then the substring(hashIndex) to pass it to > History.newItem(...). > > You'll find similar code walking up a DOM tree in > HTMLTable#getEventCellTarget (or a similar named private/protected > method, this is from memory), in this case it's looking for "TD" > elements.
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.