SearchInput control and litSearchHeading

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/1/2007 9:25:14 AM
Gravatar
Total Posts 488

SearchInput control and litSearchHeading

Looking at the SearchInput control, I see the following line:

<h2 style="position: absolute; left:-1000px;"><asp:Literal ID="litSearchHeading" runat="server" /></h2>

So, the label is just never visible... what's the perpose of this solution?

6/1/2007 2:52:19 PM
Gravatar
Total Posts 18439

Re: SearchInput control and litSearchHeading

It (the h2) adds semantic meaning to the markup and allows screenreaders to read aloud the heading name. Its an accessibility feature, using css to move it off the screen is because I don't want a visual heading there, just a semantic heading. It will still be read by seach indexes, screen readers and such and helps identify the location of the site search feature.

Joe

6/4/2007 5:17:58 AM
Gravatar
Total Posts 488

Re: SearchInput control and litSearchHeading

I see.

1. Are "ForumsTableSummary" and "ForumViewTableSummary" for the same reason?

2. Are strings like "LargeTextLabel" for the same reason? Does it really need to be localized?

6/4/2007 6:55:16 AM
Gravatar
Total Posts 18439

Re: SearchInput control and litSearchHeading

Hi Alexander,

Yes, it would be beneficial to have those keys translated. The ..TableSummary ones would be read out loud by a screen reader. Also when it reads the rows of the table, it will say the heading name before reading the value of each cell because the td has headers=(id of th)

Of course the effort to translate these keys will only benefit a very small percent of users but it may also help search indexes to relate the headers with the content.

Thanks,

Joe

6/4/2007 7:14:25 AM
Gravatar
Total Posts 488

Re: SearchInput control and litSearchHeading

Ok, I shall translate it then.

You must sign in to post in the forums. This thread is closed to new posts.