473,889 Members | 1,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Making DropDownLists accessible

I and a coworker are building a cms via .net (vb.net)

I'm more of the front-end guy, and mainly use DW, while he's more of the
back-end guy, and uses VS.NET

He likes to use a lot of the built in controls and such, while I tend to be
a bit more picky and do a lot with things like repeater controls instead of
datagrids, for instance.

Anyways, he's using a dropDownList and postback to capture any changes to
it. The problem is that this renders as a javascript function in the
browser. Since this is a .gov site, I'm trying to remove all *required*
javascript. Ie, javascript is fine if it enhances, but not if it is
required. In this case, the drop down list is being used to show a different
subset of data, so it is required functionality.

Is there a way to make a dropdownlist NOT depend on javascript? Or do I just
need to build my own drop down in HTML and send it back as a form
submission?

-Darrel
Nov 18 '05 #1
4 1210
the dropdown only need to javascript to support the postback on change.
turning autopostback off, and supplying a button or image to do the postback
will fix the problem.

autopostback on a dropdown is problematic anyway. see what happen if you use
the arrow keys to select an item, with out opening the dropdown (tab to the
dropdown, and hit the downarrow a couple of times - should hang the page as
its trying to postback on each selection).

-- bruce (sqlwork.com)

"darrel" <no*****@hotmai l.com> wrote in message
news:ut******** ******@TK2MSFTN GP09.phx.gbl...
I and a coworker are building a cms via .net (vb.net)

I'm more of the front-end guy, and mainly use DW, while he's more of the
back-end guy, and uses VS.NET

He likes to use a lot of the built in controls and such, while I tend to be a bit more picky and do a lot with things like repeater controls instead of datagrids, for instance.

Anyways, he's using a dropDownList and postback to capture any changes to
it. The problem is that this renders as a javascript function in the
browser. Since this is a .gov site, I'm trying to remove all *required*
javascript. Ie, javascript is fine if it enhances, but not if it is
required. In this case, the drop down list is being used to show a different subset of data, so it is required functionality.

Is there a way to make a dropdownlist NOT depend on javascript? Or do I just need to build my own drop down in HTML and send it back as a form
submission?

-Darrel

Nov 18 '05 #2
Is there a way to make a dropdownlist NOT depend on javascript? Or do I just
need to build my own drop down in HTML and send it back as a form
submission? If you build it, you are doing the same as what the postback even does. It using a form and posts the result of form to the server.
You say you dont like javascript, but realy how can you develop a good site without at least a little bit.?
It is almost like saying, i dont like design unless it is necessary.


"darrel" <no*****@hotmai l.com> wrote in message news:ut******** ******@TK2MSFTN GP09.phx.gbl... I and a coworker are building a cms via .net (vb.net)

I'm more of the front-end guy, and mainly use DW, while he's more of the
back-end guy, and uses VS.NET

He likes to use a lot of the built in controls and such, while I tend to be
a bit more picky and do a lot with things like repeater controls instead of
datagrids, for instance.

Anyways, he's using a dropDownList and postback to capture any changes to
it. The problem is that this renders as a javascript function in the
browser. Since this is a .gov site, I'm trying to remove all *required*
javascript. Ie, javascript is fine if it enhances, but not if it is
required. In this case, the drop down list is being used to show a different
subset of data, so it is required functionality.

Is there a way to make a dropdownlist NOT depend on javascript? Or do I just
need to build my own drop down in HTML and send it back as a form
submission?

-Darrel

Nov 18 '05 #3
> You say you dont like javascript, but realy how can you develop a good
site without at least a little bit.?

I'm a huge proponent of accessibility. Javascript is great as a web site
ENHANCEMENT...u seless as a requirement.

ASP.NET seems to default to a lot of javascript function in a lot of it's
controls. This is fine for internal, closed audience web application
development, but not so great for making general audience, accesible sites.
It is almost like saying, i dont like design unless it is necessary.


I'd say it's nothing like it. Design is a requirement for a good product.
Javascript can make a product better. It's like building a car that runs on
plutonium. While it's great if you have plutonium, it's useless if you
don't.

Actually, I don't think it's like that, either. It's morning, I don't have a
good analogy thought process this early. ;o)

-Darrel
Nov 18 '05 #4
> the dropdown only need to javascript to support the postback on change.
turning autopostback off, and supplying a button or image to do the postback will fix the problem.
Thanks, Bruce.
autopostback on a dropdown is problematic anyway. see what happen if you use the arrow keys to select an item, with out opening the dropdown (tab to the dropdown, and hit the downarrow a couple of times - should hang the page as its trying to postback on each selection).


Ah...more ammo for me to convince the others that this isn't the way to go
;o)

-Darrel
Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2134
by: theo | last post by:
Hello..I have a similar issue as yesterday but the situation has slightly changed so perhaps someone can shed some more light on the issue... Program flow - load file,extract xml text tags from file,then depending on the number of Xml tags retrieved from the file determines the number of dropdownlist controls instanciated in the placeholder,the user selects the required tags from the dropdownlists (if 5 Xml tags,then 5 dropdownlists...
1
1226
by: Chris | last post by:
Hello All, Need some help here. I'm building an asp.net app that uses a datagrid. I have created a template column and added a dropdownlist to it. What I'd like to happen is have the database get updated each time the user selects a different value from the dropdownlist without having to press a submit button or anything. I've been trying to get it to work when the SelectedIndexChanged event fires off but with the AutoPostBack = TRUE,...
0
1402
by: Steve Caliendo | last post by:
Hi, I'm having trouble with multiple dynamically generated dropdownlists. On my web page I have several text boxes / labels / checkboxes and dropdownlists I have no problem setting the other controls to display what I would like them to, but the dropdownlist boxes are simply not working. I can't set the selectedindex to be different for each of the controls. What I'm doing is this:
3
1209
by: Jim Bancroft | last post by:
Hi everyone, I'd like to put some DropDownLists in my DataGrid, populating each from a database query. I'm having a little trouble naming them based on the current record in the DataSet. For example, here's a snippet of what I have now in my DataGrid <ItemTemplate> <asp:DropDownList runat="server" id="lstCategories"
9
5344
by: Timm | last post by:
I have an ASP.NET 2.0 page with two DropDownLists. I am using declarative data binding wherever possible and trying to minimize the use of code. The list of values in DropDownList DDL2 should be (filtered) dependent upon the selection in DDL1. I think this inevitably needs some code, but I'd be happy to be told otherwise! I have some code to handle OnSelectedIndexChanged for DDL1 that sets the FilterExpression associated with the...
8
1576
by: MattB | last post by:
I have a asp.net 1.1/vb application that has a page with a bunch of dynamically added User Controls. When I add the controls, I set the UserControl.EnableViewState to true. For all my controls with TextBoxes, I can get the value back out of the controls just fine. One of my User Controls has some DropDownLists as well as a TextBox. I get a value from the TextBox on postback, but not the DropDownLists. Even if I see a value selected when...
0
1140
by: Carlos | last post by:
Hi all, I just embedded a dropdownlist templatefield inside a gridview. When I look at the control in design mode, I see 5 dropdownlists, when I bind the data to the gridview, I only bind to 3 dropdownlists. How can the number of controls that are itemtemplates can be controlled? That is, if in fact I want to display 5 dropdownlists containing the same data ?
3
1656
by: RSH | last post by:
Hi, I am having this very bizarre occurance with 4 dropdown lists on my ASP .Net page. Each control has its own unique id. When the user selects a value from each of the dropdownlists it is written correctly to the database. HOWEVER...When setting the SelectedIndex property of each of the controls in the codebehind (.net 1.1) I get an exception "A dropdownlist can not have
12
2585
by: Premal | last post by:
Hi, I tried to make delete operator private for my class. Strangely it is giving me error if I compile that code in VC++.NET. But it compiles successfully on VC++6.o. Can anybody give me inputs about it. I wanted that on my class delete should not work. Object pointer should be deleted using my function only which is taking care of reference count for particular class. Thanx in advance for your inputs.
0
9810
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10442
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7997
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7150
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4647
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4251
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3256
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.