msaif
msaif

Reputation: 11

GWT history iframe

I am using GWT and need history and using:

<iframe src="javascript:''" id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>

But can I change __gwt_historyFrame to any other name AAAAA? Is it possible like below:

<iframe src="javascript:''" id="AAAAA" style="width:0;height:0;border:0"></iframe>

Upvotes: 1

Views: 4044

Answers (3)

amblatx1
amblatx1

Reputation: 111

Here is some good documentation on the GWT History: http://developerlife.com/tutorials/?p=232 and Google's documentation on the host page: http://www.gwtapps.com/doc/html/com.google.gwt.doc.DeveloperGuide.Fundamentals.HostPage.html

Giving the following code example:

<!-- Include a history iframe to enable full GWT history support -->
<!-- (the id must be exactly as shown)                           -->
<iframe src="javascript:''" id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>

Sounds like the iframe must have id="__gwt_historyFrame" and cannot be changed to "AAAAA" or anything else.

Upvotes: 2

Isaac Truett
Isaac Truett

Reputation: 8884

You would have to build your own version of GWT with a custom implementation of HistoryImplFrame. And as other replies have stated, there really isn't a good reason to do this.

Upvotes: 1

Zwik
Zwik

Reputation: 654

If you use the MVP architecture presented by Google, you won't need to change it in order to handle history. I don't see why you would want to change it but this look like a GWT Defined variable that you shouldn't change.

Upvotes: 0

Related Questions