I currently have a bunch of static HTML pages and I need to convert
all of the links on the pages to use GWT's history management.

What I am currently doing is reading in all of the HTML and parsing
the <a> tags. I convert their href from "path/page.html" to "#path/
page.html" (handling cases like pages with exists anchors specially).
This works perfectly fine in every browser but IE. In IE, when I click
a link created that way, it causes the page to refresh rather than
just change the information after the "#" in the address bar.

Looking at the GWT source, I was able to determine that the Hyperlink
class handles various browsers specifically and has special code to
handle clicks.

I should note now that I know there are better ways to implement my
website, but it is already too far along and this change will be a
workaround for a bug fix. Eventually I will implement the site
properly, but for the interm I need a solution to this problem.

>From what I can see, my ideal solution would be to somehow convert all
of the links on the page to actual GWT Hyperlinks. I'm not sure how I
would do that though (considering I am reading in a bunch of unknown
HTML).

Otherwise, maybe I could somehow have the links call a function when
they are clicked and have that function try to mimic the code found in
the Hyperlink class.

Any suggestions would be greatly appreciated!

-- 
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