Specificaly, it seems impossible to have a link within a Frame change
the token of the parent (top) page, without the whole thing
refreshing.

For instance this;

http://www.darkflame.co.uk/iFrame%20problem/FrameTest.html

Click on the links in firefox, and the token changes nicely.
Click on the links in IE, and the whole page refreshs.


Now, the interesting thing is this problem only happens if the History
is actualy used listened for.
The code on that page is just;
=========================================
public void onModuleLoad() {

//iframe
        Frame testFrame = new Frame();

        RootPanel.get().add(testFrame,100,100);
        testFrame.setSize("90%","90%");
        testFrame.setUrl("2.html");

            //* REMOVE THIS LINE AND IT WORKS IN IE*
            History.addValueChangeHandler(this);
            //*
        }

        public void onValueChange(ValueChangeEvent<String> event) {
                String historyToken = event.getValue();
                Window.alert("page changed to:"+historyToken);
        }
========================
(just a standard project made with the plugin, with that code, and the
html you see used on the two pages)
========================

My theory;

I'm guessing that by using the GWT history, the page is put into an
extra frame which somehow stops the links from working without
refreshing the page. Allthough refering to "top" in the javascript
still has the same effect.

Interesting to note; The history changes first, then the page refreshs
after....by a clear half second or so.




I hope someone can help with this, as this is actually a really major
issue for my project. Using iFrames becomes kinda worthless to me if
the history tokens cant be relied apon as a way to pass messages to
the containing app.




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