Re: Catching Hyperlinks before they are executed.

2009-09-02 Thread Thomas Broyer
On 2 sep, 04:26, Chris Bailey xcom...@gmail.com wrote: OK here is the soluction I came up with: Event.addNativePreviewHandler(new Event.NativePreviewHandler() {                         @Override                         public void onPreviewNativeEvent(NativePreviewEvent event) {        

Re: Catching Hyperlinks before they are executed.

2009-09-02 Thread Chris Bailey
wow, that looks better and so much shorter On Sep 2, 5:23 am, Thomas Broyer t.bro...@gmail.com wrote: On 2 sep, 04:26, Chris Bailey xcom...@gmail.com wrote: OK here is the soluction I came up with: Event.addNativePreviewHandler(new Event.NativePreviewHandler() {                      

Re: Catching Hyperlinks before they are executed

2009-09-01 Thread ThomasWrobel
I'm not sure thats possible at all. You might have to make gwt link objects that look like normal hrefs and replace all of the ones in the page with these. I had to do this myself for my project. (but for a different reason, I needed bookmark links to work in frames...IE had some bugs that meant

Re: Catching Hyperlinks before they are executed.

2009-09-01 Thread Chris Bailey
OK here is the soluction I came up with: Event.addNativePreviewHandler(new Event.NativePreviewHandler() { @Override public void onPreviewNativeEvent(NativePreviewEvent event) { if (event.getTypeInt() ==

Catching Hyperlinks before they are executed.

2009-08-31 Thread Chris Bailey
I'm working on a social type site which I will make different versions depending on the device (mobile, desktop, etc...) and I want all the links to be just standard href hyperlinks. I know it's possible but how would you in GWT check a hyperlink before it is executed?? My Goal is to check to

Re: Catching Hyperlinks before they are executed.

2009-08-31 Thread Lothar Kimmeringer
Chris Bailey schrieb: I'm working on a social type site which I will make different versions depending on the device (mobile, desktop, etc...) and I want all the links to be just standard href hyperlinks. I know it's possible but how would you in GWT check a hyperlink before it is executed??

Catching Hyperlinks before they are executed

2009-08-31 Thread Chris Bailey
I'm working on a social type site which I will make different versions depending on the device (mobile, desktop, etc...) and I want all the links to be just standard href hyperlinks. I know it's possible but how would you in GWT check a hyperlink before it is executed?? My Goal is to check to