What database should I use in this condition? Or should I use them at all? [closed] - javascript

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have created a simple project with two HTML page 'home' and 'details'. I have a spreadsheet of some data I want to show as list in 'home' page and on clicking shows associated details. I tried searching in internet but I was left with even more question than before. The data consist of 10 column and 1000 rows and might reach 5000 rows.

If you are facing trouble while learning DataBase, there is an alternative you can try and it is very easy to understand and implement in your code.
You can learn about JSON (JavaScript Object Notation), Simply you have to create a JSON file in which you can store the detail of all those 1000-5000 rows and render them on your Web page using JavaScript

Related

Issue: Elements of an array are switching places on refresh [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 months ago.
Improve this question
So, in my admin dashboard, I'm calculating the revenue, and I basically have an array with the last two months and their revenue
But when a refresh the page a few times, the elements in the array change and so does the revenue. Btw I'm getting this income from my api.
Also when I'm trying to fetch the revenue for a particular product, for some reason, it fetches the whole revenue.
It's likely that your API gets the data in random order. Check the data you receive from your API. I think the array will have a different order on different requests.
Also, you should post code in code blocks, not images.

Real time website information/content updating [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
Since a year and a half I am trying to figure out how some websites update their content in real time without AJAX method.
Please see this example website: https://pro.btcturk.com/en/basic/exchange/BTC_TRY
That website is changing many texts within content in different timing.
It means that when the server is updated with new values in the database then the website is listening to database changes and then reflecting/delivering inside content without ajax calls.
Can someone give an example how to achieve such functionality possibly using Javascript or PHP normal hand-code appreciated?
Thank you
You can see the process here:
More information here: Websockets

passing vales across different HTML FILES [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
i have three HTML files with java script as well. Now i am interested to create a forth html file to display the result of three different variables declred and used in three different html files.
i tired to used form action to import files but was not able to solve the problem.
Can one one plese suggest the best option to tackle this situation.
You can share data between your pages in many ways, generally either trough your back-end or cookies/localStorage on your front-end. To save a variable you can use localStorage.setItem(key, value) and you can get that variable in another page with var my var = localStorage.getItem(key)

How to make next page link when document size reaches to specific length? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have built an Admin section where i can see all the contents from database in a table. everything is fine but if the database table has thousands of rows I have to scroll down very deep. is there any way I can make links like `1,2,3.Next the way google search results do? or is there any even better way?
Isn't is going to be something like:
if($(document).height>2000){
//what should i do?
}
Looks like you are using jquery. If you are going to implement everything on your own it may be time consuming - although it would be fun!
To save some time, there are quite a few plugins available to achieve this. Refer:
https://datatables.net/
http://www.jqueryscript.net/table/Client-side-HTML-Table-Pagination-Plugin-with-jQuery-Paging.html
Since you may have huge data you should be using server side pagination instead of client side. Here is another SO link which explains the difference between them : Pagination: Server Side or Client Side?

Load more when scroll to bottom like facebook(Jsp or Servlets) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Yes, I want something like Facebook post. But i'm unable to find any good resources for Java.
I'm making my project using Servlets and Jsp technologies. It has lots of contents in Database. I'm fetching it using Select *.. But i want to put something like Facebook for Loading more contents when scroll to bottom.
Problem is that i don't know anything about Ajax, So please how to implement it on my servlets project during fetching the data, At least give me an ideas.
HELP WOULD BE APPRECIATED!!
Regardless of technology/language, your process goes something like:
1) Request x records from service and display
2) When user reaches end of x records, fetch x more records from web service with offset = x
3) Display those records
Repeat.

Categories