views:

222

answers:

2

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>
A: 

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.

Zwik
i dont open to the other programmer that i wrote entire thing in gwt.for this reason i need to change.
msaif
I really don't understand what you just wrote, sorry.
Zwik
if i use __gwt_historyFrame then anybody can rightclick on the document and can press view source then entire html source will be visible.then user can understand that i wrote the entire thing in gwt thats why i like to change
msaif
OK.... I don't understand why should that matter, but anyway this is your choice. In the end, sorry for not being more helpful.
Zwik
@msaif, security through obscurity is *never* a good idea. Don't try to hide the fact that you are using GWT - cause you won't succeed. See for example your project-name/project-name.nocache.js - there are many references to GWT there. PS: And for Chrits's sake, use one account.
Igor Klimer
A: 

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.

Isaac Truett