Connecting Tech Pros Worldwide Help | Site Map

Text only version of web site

Giles
Guest
 
Posts: n/a
#1: Sep 19 '08
Does anyone know where I can see some asp (vbscript) code to convert a web
page into a text only version, like for accessibility?
Example at
http://wave.webaim.org/report?texton....microsoft.com
My html is stored in a database so it can be easily manipulated, but it is
not XML.
Thanks for any ideas.


Adrienne Boswell
Guest
 
Posts: n/a
#2: Sep 25 '08

re: Text only version of web site


Gazing into my crystal ball I observed "Giles" <giles@nospam.com>
writing in news:u7XT8dpGJHA.3460@TK2MSFTNGP04.phx.gbl:
Quote:
Does anyone know where I can see some asp (vbscript) code to convert
a web page into a text only version, like for accessibility?
Example at
http://wave.webaim.org/report?textonly&url=http%3A%2F%
2Fwww.microsoft.c
Quote:
om My html is stored in a database so it can be easily manipulated,
but it is not XML.
Thanks for any ideas.
>
>
>
Do not use presenational markup, and use a blank stylesheet. I would
also suggest that you use semantic markup, and validate it.

eg: <a href="<%=request.servervariables("SCRIPT_NAME")%>?
style=blank.css">Text Only</a>

<%
if request.querystring("style") = "blank.css" then
%>
<link type="text/css" rel="stylesheet" href="blank.css">
<% else %>
<link type="text/css" rel="stylesheet" href="regular.css">
<% end if%>

You can set some sessions so that the blank stylesheet remains when the
user is navigating through the site.


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Closed Thread