开发者

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>


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.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜