On Thursday, May 30, 2013 1:08:09 PM UTC+2, Arindam Das wrote:
>
> Hi GWT compiles and put things inside an iframe. But if I want to set
> title of that iframe how to do that?
> The reason behind this is accessibility standard which demands a meaning
> title of an iframe.
>
I must say I don't understand why you need it ("accessibility standard
which demands a meaning title of an iframe" == bullshit), but if you really
need it, and assuming you mean a <title> element in the doc loaded in the
iframe, you can either:
- use the XSLinker (<add-linker name="xs"/>) which installs the code in
the main window rather than an iframe.
- make your own linker copying the IframeLinker and replacing the
"module prefix" with one including a <title>
- make your own linker extending CrossSiteIframeLinker and replacing the
"install location" script with a copy of
com/google/gwt/core/ext/linker/impl/installLocationIframe.js that includes
a <title>, or use
com/google/gwt/core/Ext/linker/impl/installLocationMainWindow.js which
doesn't use an iframe.
If you were rather talking about a title="" attribute on the iframes, then
it's almost the same, except you'll have to change the IframeTemplate.js
file in the case of the IframeLinker.
I didn't personally tested any of the above though.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.