Archive for the ‘Tips’ Category

Manual Install of Java Access Bridge

Friday, September 5th, 2008

The Sun Java Access Bridge has an automatic install and a manual installation procedure. Most of the time the automatic one works fine, but there are times it does not. This seems especially true of third party applications that use their own included Java runtime environment (JRE) packaged with their product. When the automatic install does not seem to work try these steps.

Manual Installation steps:

All files to be copied are in <ACCESSBRIDGE_HOME>\install\installfiles

where <ACCESSBRIDGE_HOME> is the folder where the access bridge was unzipped.

 

  1. Copy all .dll files to your windows\system32 folder.
  2. Copy access-bridge.jar and jaccess-1_x.jar to the jre\lib\ext folder of your jvm. jaccess-1_x.jar depends on the version of jvm you are installing into. For example if it is jdk 1.4.1, then you would use jaccess-1_4.jar.
  3. Copy accessibilities.properties to the jre\lib folder for your jvm.

Retrieving HTML from Dynamic Pages

Thursday, August 28th, 2008

When testing dynamically generated web pages for accessibility, it can be difficult to get to the HTML source code that is the end result being rendered by the browser. Often choosing the browser’s View Source code option presents a lot of JavaScript calls and so forth that does not immediately make apparent what is actually being rendered to the screen.

 

One method to get at the source code that is worth a try, especially for pages that do not use frames, is to enter some JavaScript into the browser’s address bar to get an immediate action, similar to a development tool’s Immediate window.

This line will copy the HTML that is between the <Body> and </body> tags of the open webpage to the clipboard:

Javascript:window.clipboardData.setData(’text’, document.body.innerHTML);

 

Press Enter to execute this line after typing or copying it into the address bar.

In Internet Explorer 7 you may be presented with a warning message that the script is wanting to access the clipboard, you will need to allow it if you wish the HTML to be copied.

Then paste the contents of the clipboard into a text editor and view it.

 

Variations of the above DOM reference (document.body.innerHTML) should retrieve specific portions of the page if you would like to more specifically pinpoint an area.