Re: Name of Accessible (Not the Label Name)



had been on vacation, so m responding back after a week.

On 4/23/07, Evan Yan <Evan Yan sun com> wrote:


Udayan Singh wrote:
> Hi All,
>
> I have been using "cspi" (i.e. at-spi) library in my application.
> Scenario is that I am using HTML programming on web page and the
> application is executing in GNOME environment (GTK+ is for UI and C
> Programming).
>
> So the web page has something like this :
>
>
> .....
>
> <p>
> <label for="Label2">Label2:</label>
> <input type="text" name="Lb2" id="Label2" value="Some Text" />
> </p>
>
>
[...]
> Now if i click on the text box that Label2 will have then the output
> that I get is :
>
> Name of event's source : Label2
>
I think that's the correct behavior.
-- Thats good for me :).

"Lb2" is the programming name of the textfield, not visible to users,
while "Label2" labeled the textfield, is just what's meaningful to end
users.
So from accessibility's aspect, we should expose "Label2" but not "Lb2"
to users.

-Evan

But is it more of a feature not present i.e. display of the "name"
field. Since there might be applications (e.g. the one I am
developing) that require such a feature to be present.

Okay, lets consider an HTML page for which I have the following snippet.

....
             <table border=0>
               <tr>
                 <td width="206" >
                   <p class="label">Contact Person</p>
                 </td>
                 <td>
                   <input type=text name="ContactP" size="31">
                 </td>
               </tr>

....

Since above is a table : Now in case I want to get the "name" field
i.e. "ContactP" (which describes the name of the field associated with
the field), then I dont have an option!! I would have to play around
with the code to get the value "Contact Person".

Dont find it the best possible solution though.

Comments please..

Regards,
Udayan

> ................................................
> But I want to get the "name" i.e. "Lb2".
>
> Which API should I use to get this done ? Any inputs would be great.
>
> Thanks in advance..
>
> Regards,
>
> Udayan
> _______________________________________________
> gnome-accessibility-list mailing list
> gnome-accessibility-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list
>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]