Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6654163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:21:25+00:00 2026-05-26T01:21:25+00:00

I am building a web application that will have a fair bit of forms.

  • 0

I am building a web application that will have a fair bit of forms. The html forms are generated using php.

One of the things I came across is this:

I have a drop down box for the user to select his country. Once he selects the country, a call is made to the server to fetch a list of states within that country and populate it in a drop down box.

Initially, I thought I could provide 2 options:

  • An enhanced jquery version where ajax is used to fetch the states and the populate it in a drop down.
  • Where javascript is not availiable, the whole page is submitted to the server and then rerendered with the new states in the drop down.

However, onChange() requires javascript. So if someone where to visit the form without javascript enabled, there’s no way we can deal with the second option, since javascript is required to submit a form using onChange().

What are some ways to deal with this? My only solution at the moment is to just make javascript mandatory. Users without javascript enabled will see a message saying that the page will not work properly.

Some sites:

  • Hotmail.com – Refuses to show anything except a “javascript is required message”
  • Facebook.com – Tells us we should use the mobile version of the site.
  • Google Maps – Does not work. No message to say javascript is required.
  • Gmail – Falls back to basic html.
  • Google account – Does not work. No message to say javascript is required.

Is it acceptable to require users to have javascript enabled at the current state of the web (august 2011)?

Just came across this possible solution:
http://cita.disability.uiuc.edu/html-best-practices/auto/onchange.php

I could perhaps add a button which the user can use to select their country. This should allow us to reload and render the form with the states drop down without any javascript.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:21:26+00:00Added an answer on May 26, 2026 at 1:21 am

    What I ended up doing is to add a button beside the drop down that says “select country”. Users without javascript will see this button. Upon clicking it, the page will reload with the list of states rendered.

    For users without javascript, this button is hidden, and selecting a country will automatically render a new drop down containing the relevant states.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently building a small web application that includes a fair amount of JavaScript.
I'm using a lot of JQuery in a web application that I am building
I'm building a web application on .Net and it will run on 64 bit
I'm building a web application that guides my users through the configuration and installation
I am building a web application that uses the database for Users, Security/roles, and
I am building an application that queries a web service. The data in the
How do you go about building a complete keyboard-accessible web application? Assuming that this
I'm building an application that will require CouchDB's mobile syncing feature. So for each
I have a web application that allows users to upload certain documents relevant to
Is there a programming language suitable for building web applications, that is compiled, strongly-typed,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.