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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:06:00+00:00 2026-06-06T02:06:00+00:00

I’m not a programmer, but I’ve done all the customizations for my web shop

  • 0

I’m not a programmer, but I’ve done all the customizations for my web shop myself. I use zen-cart. I’m trying to make it more user friendly for international customers and its become apparent that zen-cart is only “international” on a cursory level. it is very US-centric with some token nods to other “common” countries like Canada, UK, etc.

Anyway, I’m trying to re-do the sign-up sheet so the address is more sensical for any visitor regardless of their country. So they select the country and the “state” auto-populates… that’s built in already (just have to add all the “states” for each country manually to the database) but the problem is the JS gets rather huge. Further than that, I want to change how the labels are displayed. ie. “city” should read “municipality” for visitors from Argentina. An obvious one is “province” for Canada, etc. But then the JS just gets that much more huge.

You end up with a ginormous series of if statements covering some 260 countries with an average of some 8 to 10 “states” each and then each having its own wording for “street”, “suburb”, “city”, “state” and “postal” labels.

So my question is… can this be efficient? Can this be “lite”? Do we really have to populate the client browser with all that data or is there a better way (and still have it be dynamic without extraneous page loads)?

Or is it OK to just have it all piled in there? On my local server, it loads reasonably quick. I haven’t tried it on a web server and I really don’t have a way to test on a “slow” connection so I just want to code it properly from the beginning.

Thanks.

  • 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-06-06T02:06:04+00:00Added an answer on June 6, 2026 at 2:06 am

    That amount of data is not huge if you are going to improve the user interface with it.

    Your server should be implementing a gzip method to compress the data before being sent to the client, and repetitive data compresses really well.

    I expect you should be using a data structure something like this in JSON

    var countryData = [
      { name: "USA",
        provinceName: "City",
        suburbName: "Suburb"
      },
      { name: "Canada",
        provinceName: "Province",
        suburbName: "Suburb"
      }
    ]
    

    You could keep all that in a separate file to help keep your javascript organized, and use a script tag to load it before your main script runs.

    Also, to test the performance hit, I would use a tool like YSlow which runs inside the firebug extension for firefox browser. It is made by yahoo, and allows you to see the loading time for all the components of a page, with caching or without, and allows you to examine which files are compressed or not.

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I want to count how many characters a certain string has in PHP, but
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want use html5's new tag to play a wav file (currently only supported
I have a French site that I want to parse, but am running into

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.