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

  • Home
  • SEARCH
  • 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 7602991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:33:16+00:00 2026-05-30T23:33:16+00:00

Suppose I have a DB of users and I have two main functions: to

  • 0

Suppose I have a DB of users and I have two main functions: to view or edit existing users.

A page will display a user using dl for example:

 <h1>Information</h1>
 <dl>
      <dt>Name:</dt>
      <dd>
        xyz
      </dd>
      <dt>Phone Number:</dt>
      <dd>
        (123)-424-2345
      </dd>
      <dt>Hobby:</dt>
      <dd>
        Fishing
      </dd>
</dl> 

There will also on the same page be a form to edit the existing information, for example:

<form action="#">
    <fieldset>
    <legend>Information</legend>

    <label>Name:</label><input type="text" name="name" />
    <label>Phone Number:</label><input type="text" name="phoneNumber" />
    <label>Hobby:</label>
    <select>
        <option value="1">Coding</option>
        <option value="2" selected="selected">Fishing</option>
        <option value="3">Reading</option>
    </select>

    <input type="submit" />
    </fieldset>
</form>

So, in the body of the HTML document both of these sections will be present within its own division (div). Which will be rendered to display in the browser will be determined client-side through JavaScript and use of the CSS display style setting the appropriate section to not display (be hidden).

AJAX, a popular thing these days, will reload each section after the form is submitted.

The end goal being that only one is present at a time to the user (either they view existing, or are able to toggle on the ability to edit, once editing is finished AJAX reloads and the view mode is restored to view and the form is hidden again).

So from HTML5 and accessibility point-of-view, is this type of thing common and acceptable? Or is it better to make AJAX change the contents of the div between the view and edit (e.g. more AJAX calls)? Or is there some other better solution?

  • 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-30T23:33:17+00:00Added an answer on May 30, 2026 at 11:33 pm

    Its better to go for ajax. Since it is mostly form elements, hope there is nothing interesting for a search crawler (SEO point of view).

    “display:none” make the content inaccessible to screen readers. So there is an accessibility issue when using hidden elements. Page will be heavier if we use so many hidden elements in one page.

    The benefit of using hidden elements is the user will get the sections more quickly. We can avoid more server pings & avoid storing data before submitting (if any).

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

Sidebar

Related Questions

Suppose I have a table of users. Something like: ID integer, USER text, POSITION
Suppose I have two collections/schemas. One is the Users Schema with username and password
Suppose I have two users with username 'AbA' and 'aBa' in the database. My
suppose we have two tables users and products table users has an accountBalance column
Suppose you have two models, User and City, joined by a third model CityPermission:
I have my main view, and when a user taps a 'Show' button I
Here is my problem in codeigniter MVC. Suppose I have 3 models: (users, email
Lets suppose that I have some pages some.web/articles/details/5 some.web/users/info/bob some.web/foo/bar/7 that can call a
Suppose I have a user defined type: CREATE OR REPLACE TYPE TEST_TYPE AS OBJECT
Suppose I have an order which has order lines and we have a multi-user

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.