WebAIM - Web Accessibility In Mind

E-mail List Archives

RE: webaim-forum-d Digest V2004 #23

for

From: julian.rickards@ndm.gov.on.ca
Date: Feb 13, 2004 7:24AM


IIS removes the <%..%> blocks before delivering the output to a browser. It
interprets the code between them and outputs the results of the code but not
the ASP code.

Also, you may use <%@LANGUAGE="VBSCRIPT"> or <%@LANGUAGE="JAVASCRIPT">, not
interchangably though. There are differences in format and functionality.
However, whatever language you select to use, the VBScript/JavaScript code
in the <% ... %> blocks will be run at the server, not the client. You may
output JavaScript to the browser and that will be run by the browser, not by
the server.

HTH,

Jules

---------------------------------------------------------
Julian Rickards
Digital Publications Distribution Coordinator
Publications Services Section
Ontario Ministry of Northern Development and Mines
Phone: (705) 670-5608
Fax: (705) 670-5690

-----Original Message-----
From: Leesa Lavigne [mailto: <EMAIL REMOVED> ]
Sent: Thursday, February 12, 2004 10:30 PM
To: <EMAIL REMOVED>
Subject: RE: webaim-forum-d Digest V2004 #23


Hi,

First of all, thank you for all your suggestions! I tried this one
[http://www.alistapart.com/articles/alternate/] but still need help getting
it going.

The following language tag is inserted by DW because I'm using asp pages.
Would this cause a problem? I know I have to remove the line in html pages
so it doesn't show up in NS.

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

Here are the links to the stylesheets:

<head>
<title>Gregs Used Cars and Service</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="CSS/GregsAuto.css" type="text/css">
<link rel="alternate stylesheet" href="CSS/GregsAutoSmall.css"
type="text/css" title="normal">
<link rel="alternate stylesheet" href="CSS/GregsAutoSmall.css"
type="text/css" title="small">
<link rel="alternate stylesheet" href="CSS/GregsAutoLarge.css"
type="text/css" title="large">
<link rel="alternate stylesheet" href="CSS/GregsAutoLargest.css"
type="text/css" title="largest">
<script language="JavaScript" type="text/JavaScript"
src="ScriptLibrary/styleswitcher.js" ></script>
</head>


For the style sheets, the first one is the Persistent one, no title,
rel="stylesheet" and no font size set so the default computer font will be
used.
It has a body tag that looks like this, along with all the other page
styles:

body {
background-color: #CCCC66;
background-image: url(../Images/MainPage/BackgroundTile.gif);
background-repeat: repeat-y;
}


The other four styles only have the body tag. The 'normal' style is just
like above so the user can select the option to return to the default font
size.

The other three look like this: the font size matches the title tag for
each style. No other page styles are defined since the Persistent Style
sheet will still be active.

body {
font-size: large;
background-color: #CCCC66;
background-image: url(../Images/MainPage/BackgroundTile.gif);
background-repeat: repeat-y;
}


Questions:

1) I downloaded and placed the styleswitcher.js file into the ScriptLibrary
just as it was.
Do I have to somehow put my 'domain name' into the script for it to
correctly create the cookie?
I don't have any background in JavaScript but read this in the last
JavaScript style changer that I tried - but failed to use.

2) Is the <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> tag doing something to
corrupt the JavaScript?

3) Is there something wrong with the SCRIPT tag? For some reason
Dreamweaver puts the double quote in front of each attribute but only a
singsl quote at the end. It looks like this:

<script language="JavaScript' type="text/JavaScript'
src="ScriptLibrary/styleswitcher.js' ></script>



Thanks for your help. I know computer savvy users know how to change text
size but your common user doesn't and I would really like to have it right
out in the open as an option for them.

I do the same thing with my Skip Nav link - place it in plain site. I
normally explain its function to the general public somewhere on the main
page.

I haven't inserted the explanation on this site yet. I don't find it
distracting and I like it visible for users who use the tab key without a
screen reader.


Web Design Solutions tailor made to fit your unique needs.
Leesa Lavigne
Visit: http://www.LoveItSimple.com




----
To subscribe, unsubscribe, suspend, or view list archives,
visit http://www.webaim.org/discussion/