473,395 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 1194
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*****@hotmail.com> wrote in message
news:ut**************@TK2MSFTNGP09.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*****@hotmail.com> wrote in message news:ut**************@TK2MSFTNGP09.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...useless 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
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...
1
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...
0
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...
3
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...
9
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...
8
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...
0
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...
3
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...
12
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.