I have two GWT Frames and I need to change URL of the second Frame based on the URL of the first Frame. The problem arises when the user follows two or more links in the first Frame. When I call get getUrl() on the Frame object, I get the URL of the initial page - not the URL the page that the Frame is currently on.
I looked online and could not find anything. Some posts say that you must use GWT History object. However, I found that using History is a bit messy when you have multiple IFrames. In any case, after some experimentation I have found this works: com.google.gwt.dom.client.FrameElement e = ((FrameElement) (theFrame.getElement().cast())); String url = e.getContentDocument().getURL(); Hope this may save someone some time. Yevgeniy Treyvus. -- 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.
