[jawsscripts] Re: Element attribute values.

        I've had a look at the virtual.jss file Sean, thanks. It makes sense
for me to include these scripts in there, given what I'm trying to
accomplish. I'm a bit puzzled as to how it would work in practice though.

        Looking at a couple of scripts within the virtual.jss file, I
noticed that although they are checked to accept a key command, they don't
have them assigned. Looking at the InternetExplorer.jss file, I noticed that
it uses the "Use" statement to reference the virtual.jsb file, so assume
this is how the connection between the two is made.

        Am I right in thinking that all the scripts in the virtual.jsb file
are then available to the InternetExplorer.jss file? If so, how does the key
mapping fit in? Sorry for all the questions!

        This script is an exercise to support a suggestion that has been
made to the HTML 5 working group. The HTML 5 specification is being
developed at the moment, and someone has suggested that an additional value
for the rel="" attribute be included: accessibility.

        The idea being that web developers could include the attribute/value
combination on their pages, to reference links or other elements related to
accessibility. The HTML 5 working group prefer that there is a working case
for ideas, before they're added to the specification. A group from the web
standards community are putting together some test cases and working
examples, to see whether the idea has any real life application.

Léonie.

--
http://www.tink.co.uk/

Email: tink@xxxxxxxxxx
Twitter: LeonieWatson

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Sean Randall
Sent: 03 May 2009 23:56
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Element attribute values.

Léonie,

When I was writing some scripts for the Thunderbird mail client one of my
pet problems was the problem of moving between messages.

In outlook etc, you have dedicated keys to go to the next or  previous item
whilst already inside one, in outlook its ctrl+> for instance.  Thunderbird
uses letters "f" and "n" etc, and I wanted a way of keeping that
functionality intact whilst maintaining the use of the virtual cursor for
reading mail.

My solution was to add a few keys to the thunderbird's JKM file under the
quick navigation keys section, which are activated when the virtual  cursor
is on.

I see no reason why you cannot take this concept  - either by adding to
internet explorer's files, or to default.jkm and virtual.jss (which is where
the global quick key stuff is stored).

I must admit not to being up on my "rel" attribute - what's the methodology
behind rel="accessibility"?

Thanks,
Sean.
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Léonie Watson
Sent: 03 May 2009 22:18
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Element attribute values.

        Thanks for your help Chad, this has really kick started things. As
Haden suggested, I've posted the code for my first script below.
It's now working, although I'm sure it's a bit rough around the edges!

;Jaws 10 script for Internet Explorer 8 on Windows XP.
;Written by Léonie Watson, May 2009.
;Script appended to Control l key command.

Script MoveToNextAccessibilityLink ()
var
string AttributeValueString,
string LinkDescription

let AttributeValueString = "rel=accessibility"
MoveToTagWithAttribute (S_NEXT, "a", "rel", true) let LinkDescription =
GetElementDescription (0, false)

while !StringContains (LinkDescription, AttributeValueString)
        MoveToTagWithAttribute (S_NEXT, "a", "rel", true)
        let LinkDescription = GetElementDescription (0, false) EndWhile

if StringContains (LinkDescription, AttributeValueString) then
        SaySelectedLink4 ()
EndIf
EndScript

        I've tested this out with a dummy page using the following html
code:

<p>
<a href="page1.html">Page One</a>
<br />

<a href="page2.html">Page Two</a>
<br />

<a href="page3.html" rel="gallery">Page Three</a> <br />

<a href="page4.html">Page Four</a>
<br />

<a href="page5.html" rel="accessibility">Page Five</a> <br />

<a href="page6.html"> Page Six</a>
<br />

<a href="page7.html" rel="donut">Page Seven</a> <br />

<a href="page8.html" rel="accessibility">Page Eight</a> <br />

<a href="page9.html" rel="accessibility">Page Nine</a> <br />

<a href="page10.html" rel=accessibility">Page Ten</a>

        If you have any feedback on the above, it would be very welcome.
Otherwise, next stop is to make the reverse navigation script using the
Shift key modifier.

        This does lead me to another question though. I've added the above
script to the InternetExplorer.jss/jkm files. What would be the best
approach of making this script available to other people to test on other
platforms and browsers, and ultimately for people to use once it's been
tested? Thanks.


Léonie.
--
http://www.tink.co.uk/

Email: tink@xxxxxxxxxx
Twitter: LeonieWatson


__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts



__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4050 (20090503) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: