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 6669427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:08:54+00:00 2026-05-26T03:08:54+00:00

Situation: you have a web page with a form that has a first name

  • 0

Situation: you have a web page with a form that has a first name and last name boxes. The application supports localization (e.g. the labels for these fields show up in the selected language, etc).

All is fine in the English version but when it comes to the Japanese one, they need the two fields reversed: first the last name and then the first name. Now you need to swap both the textboxes and the labels. In order to avoid clumsy server side logic like if (Japanese version) { lay out this way } else { lay out the other way } we’ve chosen a CSS based solution where a language specific css file is loaded for each version. In the Japanese CSS file you use such rules so that elements swap their places but what’s important is that the HTML that leaves the server is always the same.

Now the issue is with tab order… tab order will follow the order in DOM so it will jump un-naturally from the first name box to the last name box.

I wonder if there is a clean enough solution to fix both visual order and tab order that can be achieved mostly client-side, without server side hardcodings.

  • 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-26T03:08:54+00:00Added an answer on May 26, 2026 at 3:08 am

    The direction I would consider, if you don’t want “hardcoded” layouts is to use CSS for layout (done) and then JavaScript for tab order. Off the top of my head, this means setting/changing tab index values.

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

Sidebar

Related Questions

The situation is next: I have php file, which parses a web-page. on that
This is the situation I am facing. I have developed a web application that
Here's the situation: I have a web-based ticket application, multiple users. One problem that
I have a situation where in a web application a user may need a
I have a web page that pulls in several javascript files in the HEAD
Here's the situation: I have a web application which response to a request for
Here is my situation. I have a web page for users to create their
I have a situation where my web application sits and waits for a request
On several occations, I have faced the situation that the default.aspx page on a
I have a web page that accepts an excel file, reads data from it

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.