2010-05-26 149 views
1

我使用GWT,需要歷史和使用:GWT歷史IFRAME

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

但我可以改變__gwt_historyFrame到任何其他名稱AAAAA?是否可能如下所示:

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

請每次訪問本網站時停止創建新帳戶,並要求版主合併您的許多現有帳戶。 http://www.google.com/search?q=site:stackoverflow.com+msaif – 2010-05-26 21:44:14

回答

0

如果您使用Google提供的MVP架構,則無需爲了處理歷史記錄而對其進行更改。我不明白你爲什麼想改變它,但是這看起來像一個你不應該改變的GWT Defined變量。

+0

我不打開其他程序員,我寫在gwt的整個事情。 因爲這個原因我需要改變。 – msaif 2010-05-26 20:57:22

+0

我真的不明白你剛寫了什麼,對不起。 – Zwik 2010-05-26 21:05:57

+0

如果我使用__gwt_historyFrame然後任何人都可以rightclick文件,並可以按查看源,然後整個HTML源將是visible.then用戶可以理解,我寫了gwt這整個事情多數民衆贊成這就是爲什麼我想改變 – msaif 2010-05-26 21:27:18

0

您將不得不使用HistoryImplFrame的自定義實現來構建您自己的GWT版本。正如其他答覆所述,確實沒有理由這樣做。

2

這裏是關於GWT歷史上的一些好的文檔:http://developerlife.com/tutorials/?p=232 和谷歌在主頁上的文檔:http://www.gwtapps.com/doc/html/com.google.gwt.doc.DeveloperGuide.Fundamentals.HostPage.html

給下面的代碼示例:

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

聽起來像的iframe必須有ID = 「__gwt_historyFrame」,不能更改爲「AAAAA」或其他任何東西。