Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

HTMLPane iframe title - Section 508 compliance

$
0
0
1. SmartGWT 4.1p LGPL

2. All browsers

We are trying to make our site fully Section 508 Accessiblility compliant. One of the things that came out of the formal review we had done of our site was that when we use iframes, we do not have titles on them. Outside of the parent container of the overall application being an iframe, the only other place we explicitly use them is when we display reports to our clients. We generate a temporary file and set the contentsURL to that file via a proxy servlet using an HTMLPane component.

Code:

...

HTMLPane pane = new HTMLPane();

pane.setContentsType(ContentsType.PAGE);

pane.setContentsURL("downloads/" + reportid);

window.addItem(pane);

...

By setting the contents type to PAGE, it creates an iframe component, of which I cannot seem to get at, to set the title of. Is there any way for me to do this?

I have tried everything the API gives to me.

Code:

pane.getContentsElement().setTitle(title);
Code:

pane.getElement.setTitle(title);  // -- this sets the title on some random div tag and not the iframe
Code:

pane.getElement().setAttribute("title", title);
Code:

pane.getElement().setPropertyString("title", title);
Nothing seems to set the iframe title...any ideas?

Viewing all articles
Browse latest Browse all 4756

Trending Articles