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 have a web application that I am building using IDEA. There are some
I'm building a web application that will have access to PeopleSoft's database via jdbc.
I am building an application that will have web, windows and mobile (iPhone) client,
I am currently building a web application that will be using two databases at
I'm building a web application that will automatically complete user forms online for many
I'm building a web application with php and mysql. Web application will have 3-4
I am building a web application that will need to allow users to save
I am building an ASP.NET web application that will be deployed to a 4-node
I am building a web application with Spring Security that will live on Amazon
I am building a web application that is currently PHP with MySQL. There is

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.