RE: Next version of noughtsAndCrosses - adding a (simple) form of narration to a webpage itsself

  • From: Jacob Kruger <Jacob.Kruger@xxxxxxxxxxxx>
  • To: "programmingblind@xxxxxxxxxxxxx" <programmingblind@xxxxxxxxxxxxx>
  • Date: Mon, 25 Oct 2010 11:13:26 +0200

Ok, if you look at the HTML source/markup of this version, you'll now see all 
of my javascript - around 360 lines of scripting FWIW:
http://www.blindza.co.za/noughtsAndCrosses/plainIndex.htm

I'm still just linking to the 2 external library files, for JQuery, and 
soundManager, but anyway.

Stay well

Jacob Kruger
jacob.kruger@xxxxxxxxxxxx

From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Jacob Kruger
Sent: 24 October 2010 10:21 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: Next version of noughtsAndCrosses - adding a (simple) form of 
narration to a webpage itsself

Ok, I'll have to pass that on, since the way it's hosted at the moment, you 
won't see anything apart from the standard HTML tags, linking to external 
script source files, and, again, the one real one, with the actual 
implementation script in it is hidden by a PHP session variable check.

Firstly, the two sort of script libraries I am making use of are, JQuery 
(simpler/clean access point for a version/implementation of DHTML):
http://jquery.org/

and, SoundManager, which implements the embedded flash object to handle the 
sound playback etc.:
http://www.schillmania.com/content/projects/soundmanager2/

Then, there's around 360 lines of javascript, handling everything from 
initialising the objects containing/wrapped around the sounds, attaching event 
handler functions to the objects on the page - using basic javascript syntax, 
but approaching it a bit other than normal, along the lines of the JQuery 
methods/approach, etc., and if you want, I can try post some of that again, 
etc., since the only real change have made this time around is to in fact 
handle a sort of queueing of sound playback, using an array to store the 
identifiers of the sound objects to be played, one after the other, and all I 
did extra there was add a bit of a check to the onFinish event of the sound 
objects to then check if another sound in fact needs to be played, and if so, 
to then play it, etc.

My theory is that javascript, PHP and C# are relatively similar in terms of 
basic syntax, but they all have each of their own peculiarities, etc., and this 
then gets a slight add-on from using JQuery (unless I'm just not used to really 
taking javascript to this full level or something), and the only other 'funny' 
thing about javascript is that along the lines of defining a variable inside a 
method/function in other languages, and not having it available to other parts 
of the whole overall structure, variables generally defined within a script 
block <script...></script> are to a certain extent limited to being seen 
therein, but the DOM (document object model), with the window object sort of at 
the top of it, can be seen/accessed from all around, etc. - and this is all 
just my sort of general version of an explanation of my version of an 
understanding of javascript, etc.

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'
----- Original Message -----
From: Dale Leavens<mailto:dleavens@xxxxxxx>
To: programmingblind@xxxxxxxxxxxxx<mailto:programmingblind@xxxxxxxxxxxxx>
Sent: Sunday, October 24, 2010 9:11 PM
Subject: Re: Next version of noughtsAndCrosses - adding a (simple) form of 
narration to a webpage itsself

This is very interesting.

While I don't have a lot of knowledge or experience with HTML and the various 
scripting I am looking forward to looking at the source in detail when I get 
some time.

Very clever.

Dale leavens.


----- Original Message -----
From: Jacob Kruger<mailto:jacobk@xxxxxxxxxxxxxx>
To: programmingblind@xxxxxxxxxxxxx<mailto:programmingblind@xxxxxxxxxxxxx>
Sent: Sunday, October 24, 2010 12:47 PM
Subject: Re: Next version of noughtsAndCrosses - adding a (simple) form of 
narration to a webpage itsself

The voice is scansoft/realspeak daniel, but I did output/render the clips at 
quite a fast speaking rate to partly try drop their file size/running time, and 
I also dropped them to 24kbps (kilobits per second) to make all 10 of them that 
might get used amount to a total of 14kb, and the idea with the embedded flash 
object preloading them is that they get sort of cached at load time, instead of 
needing to be reloaded/refreshed each time they need to get played, etc., and 
it seems to me like they do each sort of play a bit quicker from their 2nd time 
onwards, but, yes, it's not 100% real time as such either way.

I was also testing/trying out catching actual keystrokes via the 
document/webpage itsself for navigation etc., but you would then need to turn 
off things like jaws since it's catching of the navigational keystrokes for 
it's virtual buffer block the javascript DOM from noticing them as 
such...<smile>

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'
----- Original Message -----
From: Dale Leavens<mailto:dleavens@xxxxxxx>
To: programmingblind@xxxxxxxxxxxxx<mailto:programmingblind@xxxxxxxxxxxxx>
Sent: Sunday, October 24, 2010 5:47 PM
Subject: Re: Next version of noughtsAndCrosses - adding a (simple) form of 
narration to a webpage itsself

Ah!

That works more like it.

Cool. I have a little trouble with the voice, a little difficult to hear 
particularly over Jaws but without Jaws it would probably be better.

I am guessing that with dial-up the delay would be unacceptable but here it 
isn't much.

Very clever.

Dale Leavens.
----- Original Message -----
From: Jacob Kruger<mailto:jacobk@xxxxxxxxxxxxxx>
To: programmingblind@xxxxxxxxxxxxx<mailto:programmingblind@xxxxxxxxxxxxx>
Sent: Sunday, October 24, 2010 11:20 AM
Subject: Re: Next version of noughtsAndCrosses - adding a (simple) form of 
narration to a webpage itsself

You will at this stage need to tab onto the buttons to in fact focus windows on 
them as such since just normally moving around in the screen reader virtual 
viewer doesn't really focus on them as far as javascript is concerned.

If you are using jaws, and you route jaws to virtual cursor, it should also 
speak since I have also attached the playing of the relevant sound clips to the 
mouse cursor hover event, but anyway.

Thanks for trying it out...<smile>

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'
----- Original Message -----
From: Dale Leavens<mailto:dleavens@xxxxxxx>
To: programmingblind@xxxxxxxxxxxxx<mailto:programmingblind@xxxxxxxxxxxxx>
Sent: Sunday, October 24, 2010 3:06 PM
Subject: Re: Next version of noughtsAndCrosses - adding a (simple) form of 
narration to a webpage itsself

Hi Jacob,

When I press space on a location I do hear "knot" but moving around I get 
nothing else. If I space on a button I have already checked I hear sorry but I 
don't hear the state of the button when landing on it. I take it I should?

The delay isn't bad, an interesting approach.

Cool.

Dale Leavens.


----- Original Message -----
From: Jacob Kruger<mailto:jacobk@xxxxxxxxxxxxxx>
To: ProgrammingBlind@xxxxxxxxxxxxx<mailto:ProgrammingBlind@xxxxxxxxxxxxx>
Cc: Program-l<mailto:program-l@xxxxxxxxxxxxx>
Sent: Sunday, October 24, 2010 2:41 AM
Subject: Next version of noughtsAndCrosses - adding a (simple) form of 
narration to a webpage itsself

http://www.blindza.co.za/noughtsAndCrosses/

There should now be a form of narration in that when you focus on one of the 
buttons, or even hover a mouse cursor over it, you should hear the narrative 
sound clips, etc.

Issue is still something to do with preload timeframes etc., since even though 
the sound clips are pretty small/tiny, it still pauses a bit, but anyway...

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 5558 (20101023) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 5559 (20101024) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 5559 (20101024) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 5560 (20101024) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

Other related posts: