Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Only Version of Site

Status
Not open for further replies.

IndyGill

Technical User
Jan 15, 2001
191
GB
Hi

I am creating a site that has to adhere to strict accessibility issues Netscape/IE 4 compatible and take into considerations people with Visual impairments. The site contains both static and dynamic information.

I would like to give the user an option to change to a text only version of the site, so it can be accessed quicker and improve Voice Browsing. I was wondering if somebody could explain how the text only version is created. Does each page have to be created without images or can some sort of component be used to do this for you. I do not want to have create every page in a text only version as the site I am working on is very big.

I am sorry if this is not very clear but an example of this is this example gives the option of text only in the top right and then goes on to the ability to change text display options.

I would be very grateful for any advice

Indy Gill
 
It all depends on how your site is being generated.

for example, take this site:
it's obvious that the top, left, right and bottom are being generated by some type of include file, and the messages are being pulled from the database.
Since a text only version of this site would only be interested in what's coming from the database, then all you do is create a text-only ASP page, where all it does is display the database contents. Tek does it when you click on email this thread... it doesn't display a text only page, but it does format it all to text for emailing.

If it's possible that the DB content has HTML tags, you can always strip them out using non-greedy regular expressions. (thanks motte)

eg:
Dim re
set re = new regexp
re.global = true
re.pattern = &quot;<.*?>&quot;
dbcontent = re.replace(dbcontent,&quot;&quot;)

this will strip out EVERYTHING between <>, so make sure you don't have things like <*grin*> in there...

hth hth
leo

------------
Leo Mendoza
lmendoza@students.depaul.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top