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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:23:09+00:00 2026-05-25T12:23:09+00:00

Is it good to organize array of data in js file? I have about

  • 0

Is it good to organize array of data in js file? I have about 70 strings of data like (price sheet with id): 1,'LF5W13ZE0','289,19'

2,'BP0118110BKR5E11NGK','174,19'

And i want to load from it to html (using JQuery)? Using myArray[0] =.

Is it rational to load this big file via client? or better use PHP (server side)?

  • 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-25T12:23:10+00:00Added an answer on May 25, 2026 at 12:23 pm

    If you’d like to keep one place containing all products, you may use an external .js file.

    A possible format for that external js file:

    var products = [];
    // auto-generated below, use other array indices if needed
    products[0] = ['LF5W13ZE0', '289,19'];
    products[1] = ['BP0118110BKR5E11NGK', '174,19'];
    

    You can also use object literals like {id: 'LF5W13ZE0', price:'289,19'}, but the idea remains the same.

    Another points to consider is whether the inclusion of the product details in a separate js file is worth the effort. You may run in issues if the js file was cached for example and need some way to insert the values from JS in the HTML.

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

Sidebar

Related Questions

Good morning. I have an XML file which contains lists of warning and errors
How to design database and organize data if I have two or more domains
Anyone could recommend a good guide/tutorial/article with tips/guidelines in how to organize and partition
Good morning, I am about to start writing an Excel add-in for Excel 2002.
Good morgning, I would like to be able to analyze text where I am
I have the following problem. I need to organize automatic upload to deploy server
Let's suppose we have a DOM tree: <div id=rootNode> <span data-bind=... > </span> <div>
I have the following typical python project file structure packageA +----subpackage1 +----classa.py +----subpackage2 +----classb.py
I am trying to organize my JavaScript. What I would like to do is
I am currently in a couple of minds about how to organize local and

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.