30747

How do you make the Loading icon accessible for screen-readers like JAWS?

So the HTML code is this:

<div style="visibility: hidden; display: none; right: 0px;"> <img id="processing" src="PT_LOADING.gif" alt="Processing... please wait" title=""> </div>

Even though the ALT text is provided, upon changing the style to show the icon (visibility:visible), it is not read in the time gap when the loading icon appears.

role=alert is not a feasible solution since this is not an alert

Answer1:

You need to add the following attributes to your DIV attributes role="alertdialog" aria-busy="true" aria-live="assertive"

<div style="visibility: hidden; display: none; right: 0px;" role="alertdialog" aria-busy="true" aria-live="assertive"> <img id="processing" src="PT_LOADING.gif" alt="Processing... please wait" title="" /> </div>

Recommend

  • How to move object along the polygons
  • why lock_guard can get an already locked mutex by unique_lock?
  • ExtJS 4 Spring 3 file upload. Server sends bad response content type
  • User matching with current data
  • use images instead of text in webgrid asp mvc
  • Image URL when previewed in Notes and in Web Browser
  • How to stop onclick from firing before ondblclick in JS/HTML
  • How to show underscore (shortcut) without holding Alt?
  • How to blur the specific part of image without using Render Script,as my minsdk is 14.
  • https in htaccess and order of rules (using Expression Engine)
  • concatenating select menus into a single form input
  • Gerrit will not push. Error: No common ancestry
  • jParallax trouble
  • How to get a table cell value using jQuery
  • window.onbeforeunload in javascript
  • PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea
  • Timeout a query
  • File loader changed image file name but not the file name in HTML file
  • Python PIL to extract number from image
  • Outputting SharePoint Hyperlink Column as URL
  • Python ImageIO Gif Set Delay Between Frames
  • Optimizing the print function in Matlab
  • Security issues with PHP's Readfile method
  • How to view images from protected folder with php?
  • Stop Bash Script if Hive Fails
  • Display images in Django
  • OpenGL 3.3 on Mac OSX El Capitan with LWJGL
  • MongoDB in PHP using aggregate to group by _id is null not working
  • Display issues when we change from one jquery mobile page to another in firefox
  • Resize panoramic image to fixed size
  • MySQL WHERE-condition in procedure ignored
  • Importing jscolor library in angular 2
  • To display the title for the current loaction in map in iphone
  • Web-crawler for facebook in python
  • How to delete a row from a dynamic generate table using jquery?
  • json Serialization in asp
  • Rails 2: use form_for to build a form covering multiple objects of the same class
  • trying to dynamically update Highchart column chart but series undefined
  • How to stop GridView from loading again when I press back button?
  • java string with new operator and a literal